Page 1 of 1

Saving Variables

Posted: Mon Oct 19, 2009 6:28 pm
by kleon
Hi.

i know to use lua variables, how to save between session?

i have variable 'totalgold' for lua. when restart, there is set to 0 again.
Do mudlet allow for variable to stay for after disconnect?

Sorry for english, am learning still!

Re: Saving Variables

Posted: Mon Oct 19, 2009 9:02 pm
by Heiko
Yes, you can save variables. Have a look at the table.save() & table.load() functions here: http://mudlet.git.sourceforge.net/git/g ... b=HEAD#api