SetVariable
Script function world.SetVariable Read about scripting Type Method Summary Sets the value of a variable Prototype `long SetVariable(BSTR VariableName, BSTR Contents);` View list of data type meanings 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");
Python example
    world.SetVariable("MyName", "Nick Gammon")
Lua example
    SetVariable ("MyName", "Nick Gammon")
Return value
    eInvalidObjectLabel: The variable name is not valid
    eOK: The variable contents were set
View list of return code meanings See Also ... Topics Arrays Plugins Scripting Variables Functions DeleteVariable (Deletes a variable) GetVariable (Gets the contents of a variable) GetVariableList (Gets the list of variables) (Help topic: function=SetVariable) Documentation contents page