Name SetVariable
Type Method
Summary Sets the value of a variable
Prototype long SetVariable(BSTR VariableName, BSTR Contents);
Description Sets the contents of a variable. If the named variable already exists the contents are replaced. If the variable doesn't exist it is created. Variables are contained in the "world" configuration, and saved when the world is saved. You can use variables to "remember" data from one session of MUSHclient to the next.
VBscript example
world.SetVariable "MyName", "Nick Gammon"
Jscript example
world.SetVariable("MyName", "Nick Gammon");
PerlScript example
$world->SetVariable("MyName", "Nick Gammon");
Returns eInvalidObjectLabel: The variable name is not valid
eOK: The variable contents were set

See also ...