Skip to main content

MOB_TGIVE

Keywords: MOB_TGIVE, MOB_TREMOVE, MOB_TTIMER, OBJ_TYPE_TOKEN
Syntax: MOB TTIMER [victim] [token] [time] MOB TREMOVE [token] [victim] MOB TGIVE [token] [victim] Those commands are used to work with a new object type called token. Tokens are items created expressly for use in mobile programs. They are totally undetectable unless for immortals. These tokens can be used as budget variables on mobiles programs, for such things as marking killers, adding people on to the healer's list of not welcome players, etc. It is recommended to name the tokens in a uniform way so they are easier to identify with their proper mobprogs. long desc: TOKEN##### <string> Where ##### would be the vnum of the mobile program and the string would be a short description of its use. When a player dies, a set flag (v0 dropdeath) will decide whether the token dissolves of the token is stripped from the corpse and reset in the mortal's inventory. They are weightless, invisible and can't be handled amongst mortals. The mob tgive command is used to give a mortal a token. Since players may not receive what they cannot see, the normal give command won't work correctly, the mob tremove command is used to easily remove the token from the chosen player's inventory without having to steal it from them, and the mob ttimer command puts a timer on a token that's in the inventory of the designated player. After the set number of ticks, the token will automatically disintegrate and vanish from the inventory of who ever happens to be carrying it. Remember that the mobile will only be able to use the mob tgive commands after have loaded the proper token on its inventory. Examples: MOB TGIVE token5008 $n This command will give the token5008 which is in the mobile's inventory to the player who has activated the program. MOB TREMOVE token5009 $n This command will remove the token5009 from a player's inventory who has activated the program. MOB TTIMER token5020 $n 10 This command will set a timer on the token5020 which the player who has activated the program is carrying, after the 10 ticks the token will disappear from the player's inventory.