Difference between revisions of "RemoveItem"

269 bytes added ,  08:28, 15 June 2007
no edit summary
imported>DragoonWraith
(adding a link to Preventing Messages)
imported>Haama
Line 24: Line 24:
*If ObjectID is a leveled list, the leveled item generated from the leveled list will be removed.
*If ObjectID is a leveled list, the leveled item generated from the leveled list will be removed.


*By default, using this function on the player will display a message informing the player that the item in question has been removed. In many situations, this is very annoying, but you can use a blank [[Message]] call to prevent it from happening, like so:
*By default, using this function on the player will display a message informing the player that the item in question has been removed. In many situations, this is very annoying, but you can use a pair of blank [[Message]] calls to prevent it from happening, like so:
<pre>Message ""
<pre>Message " "
Message " "
player.RemoveItem "item ID" 1</pre>
player.RemoveItem "item ID" 1</pre>
This seems to shortcircuit the message display and will prevent any other messages from being queued or displayed for a couple of seconds. There are other methods that don't disrupt other messages that can be found [[Avoiding Message Spam|here]].


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