How does that new script function work? Forcing the world as changed to save the internal variable.
World Save?
Posted by David Berthiaume on Sat 01 Jan 2005 06:11 PM — 4 posts, 20,025 views.
All it does is set the "document has changed" flag, so that when you go to close the world it says "Save changes to (world name)?".
This is to remind you to save changes to things your script might have changed, which would otherwise not be saved.
This is to remind you to save changes to things your script might have changed, which would otherwise not be saved.
Basically, I have a timer that saves the world ever 3 minutes, by adding this world changed thing, it should force the save even if nothings changed. How does it work?
I.E. what's the Lua script for it?
I.E. what's the Lua script for it?
See:
http://www.gammon.com.au/scripts/doc.php?function=SetChanged
Also:
http://www.gammon.com.au/scripts/doc.php?function=GetInfo
You could use GetInfo (111) to see if the "changed" flag is set, and if so, save the world (in a timer).
http://www.gammon.com.au/scripts/doc.php?function=SetChanged
Also:
http://www.gammon.com.au/scripts/doc.php?function=GetInfo
You could use GetInfo (111) to see if the "changed" flag is set, and if so, save the world (in a timer).