Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: LoneCipher on May 13, 2024, 11:59:08 AM
-
Hello all!
I'm looking to set up save slots to my game. My ideas are getting complicated, so I'm sure there's a simpler method that where I'm headed.
The idea was to use the save slot number as a global variable, and prefix to save and load keys. Each key would have "Slot1_" added using the build string action to every save and load call.
This means that I have to have states where I build these strings, and extra variables (slot number, key, key with slot number appended).
It would be easier if I could just use the save slot to point to another file, and leave all my keys alone. Is that a possibility?
-
Hi.
Turn on Override Default Settings and use 'Path' "Slot_1 / Slot_2 / ...
this will create separate save files.
Also place load save actions on 1 game object if there is a chance that you will build for console platforms.
(use send events to trigger load/save)
-
Thank you for the reply.
If I append the path setting to something like Slot1\SaveFile.es3 that will use a file at that location.
How would I append this programmatically? Would I need to build a string and use that as path?
Slot number + save file name with slot number being a global variable?
-
its best just to do direct files you can do SaveFile1 / SaveFile2
you can set the a global GameObject ( where you handle all Load / Save )
Then use Set Fsm String to set the Path for example, set variable Name as : currentSaveSlot
and use that for all load / save actions