Add a scripted effect to the ingredient and attach what script you want. If you're wanting the eating of the ingredient to cause some sort of visual effect, like lightning striking the player from above, you would need to use a persistent, named, activator which is moved above player to act as the source of this visual effect. For magic effect scripts, the thing which is the target of that effect (in this case, the one who ate it) is what the script is being run on, and thus can be acquired with a
getself function. Meaning that the mentioned lightning effect script would look something like
scn aoihdaoihref targetshort zposbegin scripteffectstartset target to getself.moveto targetset zpos to target.getpos zset zpos to zpos + 256.cast targetend
Replacing the
. with an invisible activator, and replacing with a spell containing an empty script effect (no script attached) with the desired visual. If you need the script to handle effects that you want present from consumption (which aren't from some other spell effect on the consumed object) you would need to add these to the script above within a scripteffectupdate block.