Difference between revisions of "EquipItem"

283 bytes added ,  08:40, 15 June 2007
no edit summary
imported>DragoonWraith
(adding a link to Preventing Messages)
imported>Haama
Line 23: Line 23:
endif</pre>
endif</pre>


*By default, using this function on the player will display a message informing the player that the item in question has been equipped. In almost all 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 equipped. 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.EquipItem "item ID"</pre>
player.EquipItem "item ID"</pre>
This seems to shortcircuit the message display and will prevent any other messages from being queued or displayed for a couple of seconds, so please use it only if you are sure no other messages will be disrupted, or you would create a lot of message spam otherwise.


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