Jump to content

BSL:Inventory management: Difference between revisions

m
Line 154: Line 154:
==Associated stuff==
==Associated stuff==
===Commands===
===Commands===
====chr_inv_reset (modifier)====
====chr_inv_reset====
*this takes all items away from a character (weapons, ammo, hypos, Force Shield, Phase Cloak, lsi)
*this takes all items away from a character (weapons, ammo, hypos, Force Shield, Phase Cloak, lsi)
*as for most "character" commands, valid arguments are an "AI name" and a "script ID"
*as for most "character" commands, valid arguments are an "AI name" and a "script ID"
*chr_inv_reset(0) resets the inventory of the character with script ID 0 i.e. Konoko.
*chr_inv_reset(0) resets the inventory of the character with script ID 0 i.e. Konoko.
*chr_inv_reset(SomeAI) would reset the inventory of an AI called SomeAI.
*chr_inv_reset(SomeAI) would reset the inventory of an AI called SomeAI.
===Predicates===
===Predicates===
i.e. small functions returning a boolean (YES/NO) value informing you on the current state of the characters' inventory  
i.e. small functions returning a boolean (YES/NO) value informing you on the current state of the characters' inventory