additem
Syntax: %additem(s,list)
Related: #ADDITEM, %delitem, #DELITEM, #DELNITEM
add the string s to the specified string list. Duplicate items are allowed.
Note: The variable is not changed when referenced with @. To change the variable holding the list, assign the result of this function to the variable using the #VAR command.
To add an item without allowing duplicates, use the #ADDITEM command.
Examples:
#VAR ToDo {kill orc|kill goblin}
#SHOW %addItem("kill orc",@ToDo)
#SHOW @ToDo
displays:
kill orc|kill goblin|kill orc
kill orc|kill goblin
#VAR SpellList %additem("cast 'armor' me",@SpellList)
Adds the armor spell to the SpellList variable. |