Difference between revisions of "RemoveMe"

Jump to navigation Jump to search
229 bytes added ,  19:18, 3 January 2007
don't call within onEquip or onUnequip
imported>JOG
(Changed layout, edited one note, added another.)
imported>Scruggs
(don't call within onEquip or onUnequip)
Line 17: Line 17:


*When RemoveMe can be called inside the barter-menu (e.g. within an OnAdd Block) then the game will crash when the item with the script is stackable, you sell more than one of them and then switch from "sell" to "buy". To prevent this, either wait until the barter-screen closes (Menumode=1009) before removing the item or don't use such a script on stackable non-unique items.  
*When RemoveMe can be called inside the barter-menu (e.g. within an OnAdd Block) then the game will crash when the item with the script is stackable, you sell more than one of them and then switch from "sell" to "buy". To prevent this, either wait until the barter-screen closes (Menumode=1009) before removing the item or don't use such a script on stackable non-unique items.  
*This function preserves script variables, health, and charges associated with the item.
*Calling this function within blocks like [[onEquip]] and [[onUnequip]] can cause those blocks to loop repeatedly and is not recommended.


==See Also==  
==See Also==  
Anonymous user

Navigation menu