Difference between revisions of "OnActivate"
Applies to all inventory items
imported>Elim Garak |
imported>Haama (Applies to all inventory items) |
||
Line 19: | Line 19: | ||
*Locked doors, containers and books are activated a second time automatically when you open the lock or take the book. To find out when a door was unlocked, for example, you can wait for '''[[GetLocked]] == 0''' in the OnActivate-block. | *Locked doors, containers and books are activated a second time automatically when you open the lock or take the book. To find out when a door was unlocked, for example, you can wait for '''[[GetLocked]] == 0''' in the OnActivate-block. | ||
* | *Selecting an item in inventory will ''equip'' it (except for enchanted scrolls) and run onEquip blocks instead of the onActivate block. | ||
==See Also== | ==See Also== |