CLASS
Command: #class {name} {option} {arg}
The class command is primarily used to assign groups of triggers and
variables a label so they can be easily removed.
#class {<name>} {assign} {<argument>}
Will open the class, execute argument, and close afterwards.
#class {<name>} {clear}
Will delete all triggers associated with the given class.
#class {<name>} {close}
Close the given class, opening the last open class, if any.
#class {<name>} {kill}
Will clear, close, and remove the class.
#class {<name>} {list}
List all triggers associated with the given class.
#class {<name>} {load}
Will load the saved copy of the class from memory.
#class {<name>} {open}
Open a class, closing a previously opened class. All triggers
added afterwards are assigned to this class.
#class {<name>} {read} {<filename>
Will open the class, read the file, and close afterwards.
#class {<name>} {save}
Will save all triggers of the given class to memory.
#class {<name>} {size} {<variable>}
Will store the size of the class in a variable.
#class {<name>} {write} {<filename>}
Will write all triggers of the given class to file.
Keep in mind that you need to use #class save before using
#class clear and #class load
Example: #class rich kill;#class rich read poor.tin
Deletes all triggers of 'rich' class if any. Read 'poor.tin' file,
all triggers loaded will be assigned to the 'rich' class.
Related: config, debug, ignore, info, kill, line and message.
|