BrutusMUD help

SCRIPT VALID FUNCTION

Level: 61

Important function valid:
~~~~~~~~~~~~~~~~~~~~~~~~~
When you remeber some mob/player and use wait command, mob can die and player
can logout. When it happens, your variables become invalid. Using such
variable causes you script to instantly end with error message to the syslog.
You can test for validity of a variable by valid function:
if (valid(variable_name))
or simply:
if (variable_name)
Note: player variable is valid when player is playing. If player isn't logged
or is in the menu, variable is invalid. When player dies variable is invalid
only when player is in menu. Mob variable is valid only till the mob's death.
After that it never becomes valid again.

 

Back to index

 
 

© Michal Kumžák 2011 | Provozováno na CMS E4E | Mapa webu