Simple Script Call Help

● ARCHIVED · READ-ONLY
Started by 1favor 5 posts View original ↗
  1. This is my first post on this site, so sorry if this is the wrong section.

    In my game, I only want there to be one game file. I am getting rid of the save / load menus, and instead I want to use events where a player can either save to Game File 0 or load Game File 0. How can I do this with a script?

    For loading, I tried StorageManager.loadFromLocalFile(0) but it does nothing.

    So I guess there's 2 things I need help with:

    1. Script call to save to Game File 0
    2. Script call to load to Game File 0

    Any help appreciated!
  2. I think you will need a plugin to do this, in which case this thread should be in Plugin Requests. However, we'll wait and see what replies are posted in case I am wrong. If people say you need a plugin, please Report this post and ask for the thread to be moved.
    Thanks.
  3. Code:
    DataManager.isAnySavefileExists();
    DataManager.latestSavefileId();
    DataManager.saveGame( fileID );
    DataManager.loadGame( fileID );

    Those should be enough :)
  4. Thank you for the responses! I got it working now. Awesome community!