Usage: set <variable> <value>
Set creates a variable without evaluating it. For example:
set foobar 15 - 5
Sets the variable foobar to the string "15 - 5"
* this example sets the value of result to '%self.hitp% * 100 / %self.maxhitp%'
set result %self.hitp% * 100 / %self.maxhitp%
* The %result% var now works as a 'function' every time it is accessed.
say My hitpoint percentage is %result%
%damage% %self% 30
say My hitpoint percentage is %result%
The set command is used to set (or create) the specified variable equal to
the provided expression, which will be evaluated when the variable is accessed.
There also exists an "eval" command, with the same syntax. Eval differs in that
the expression is evaluated immediately.
Example: TSTAT 49, 41005
See also:: SET-EXAMPLES, EVAL, OSETVAL, UNSET