Saving Variables

Post Reply
kleon
Posts: 1
Joined: Mon Oct 19, 2009 6:25 pm

Saving Variables

Post 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!

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Saving Variables

Post 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

Post Reply