Variables Reset

Posted by Terry on Sun 09 Sep 2007 01:49 AM — 3 posts, 19,325 views.

USA #0
When I set up a set of triggers and aliases, they worked fine and did exactly what I wanted. However, when I closed MUSHclient and reopened it the next time, the variables showed up as "nil". Is there any way I can fix that?
Australia Forum Administrator #1
Are they script (Lua) variables, or MUSHclient variables? MUSHclient variables are saved when you save your world file. Script variables are not saved unless you "serialize" them prior to closing the session.
USA #2
If you're talking about scripting variables, see the SetVariable and GetVarialbe functions.

http://www.gammon.com.au/scripts/function.php?name=SetVariable
http://www.gammon.com.au/scripts/function.php?name=GetVariable