%setVar()

Aliases%setVar( )
Parametersstring @varName, mixed @value

    Sets the value of the variable with name varName that is owned by the
script owner. If the variable does not exist then a new one is created in
the context of the script owner. This function is better than using the
"setvar" mud command since it guarantees the variable's value is update
immediately. Commands issued by the owner to the mud interpreter are
queued for each execution window a script's process is given and evaluated
when the execution window closes.

Example:

%setVar( lastVisitor, @n )