Jump to content

Recommended Posts

Posted

Does anyone here know if it's possible to check if the player consumes a specific potion/ingredient, without attaching anything to the potion or ingredient (effects from them also) directly?

Posted

Yes, you can use a reference alias that points at the player, or put a spell ability on the player. Attach a script to either with the onObjectEquipped event.

 

Potion Property SomePotion Auto 

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference) 
    If akBaseObject == SomePotion 
        ;do something 
    Endif 
EndEvent
Posted (edited)

 

Yes, you can use a reference alias that points at the player, or put a spell ability on the player. Attach a script to either with the onObjectEquipped event.

 

Potion Property SomePotion Auto 

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference) 
    If akBaseObject == SomePotion 
        ;do something 
    Endif 
EndEvent

 

 

Thanks you are amazing, I attached it to a magic effect on a new spell.

Can't believe it was that easy.

Edited by EddieTheEagle
  • Recently Browsing   0 members

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