world.savestate

Posted by Helpless on Sat 08 Mar 2008 02:35 AM — 4 posts, 20,712 views.

#0
i read the help on the SaveState function but i dont know what im suppose to be putting in the parenthesis of "world.savestate ();"...i tried the save state file name itself but it just got an error and i also tried the name of the plugin file, wish i knew what i was doing wrong :(

..unless im not suppose to put anything in the parenthesis?
Australia Forum Administrator #1
It takes no arguments, so don't put anything there. See:

http://www.gammon.com.au/scripts/doc.php?function=SaveState
#2
ok but which "current plugin" is it talking about? all of them that i have loaded? cause im using an alias to do world.savestate(); every time and i want it to save all of them not just whatever it thinks is the current
Australia Forum Administrator #3
SaveState has to be executed from within a plugin (in which case that plugin's state is saved), otherwise it does nothing.

Your original question didn't make it clear that you wanted all plugins to save their state.

When the main MUSHclient world file is saved, all plugins are also forced to save their state (ie. File menu -> Save).

If you want to script that, you need the straight "Save" function:

http://www.gammon.com.au/scripts/doc.php?function=Save