Jump to content

Is there an event for eating?


antstubell

Recommended Posts

Eat / Use / Equip all have the same keybind thus the OnEquipped event on a player alias script may catch when an ingredient is consumed. It is at least worth testing.

 

If it is a custom ingredient, you can apply a scripted effect and use the OnEffectStart event. But that effect may also show up in the Alchemy crafting menu which could be undesired.

Link to comment
Share on other sites

Thank you.

 

EDIT

 

So I made a copy of the Magic Effect AlchParalysis and placed this script on it.

 

MiscObject Property MyMiscObj Auto

Event OnEffectStart(Actor Target, Actor Caster)
Debug.Notification ("I’m Drunk")
Game.GetPlayer().AddItem(MyMiscObj, 1)

EndEvent

 

 

Effect works as expected but the script does nothing. What have I messed up?

Edited by antstubell
Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...