Ark lSavepoint

From EncyclopAtys

Revision as of 16:35, 30 November 2023 by Ulukyn (talk | contribs) (Created page with "'''Manage savepoints of the script''' This module '''saves the state''' of a running script (i.e. save the position for later) This module is the only one that really does t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Manage savepoints of the script

This module saves the state of a running script (i.e. save the position for later)

This module is the only one that really does this. You can use a Database, but this module are more simple.

Keep in mind that any player who crash or relog will reset the script. Only this module can really continue the pogression.

You can :

  • Jump to savepoint: Continue the script at last saved position
  • Save the point: The current running stage will be saved. Using Jump to Savepoint, the player will able to continue the pogress of the script.
  • Get the savepoint: The variable $D:<stage>:SavePoint will get the name of the stage currently saved
  • Reset the savepoint: The script will be reset and will start from begin.
  • Reset the savepoint of the event: All the savepoints of all the scripts in the event will be deleted. So, all the scripts in event will start from begin.