Here is my trigger for restoring game cache and units so far:
It seems that the Party_Order[1] unit is being restored upon starting the campaign. I'm trying to test my campaign from the start but the Party_Order[1] unit keeps being restored. Is this because the game cache isn't deleted upon exiting the campaign from the last time I tested? And so next time I open it, the units and gold are still saved and restored?
If that is the case, theoretically a player could never use the "save game" option in the menu and save the cache instead? That could work, but what if the player ever wanted to start a new campaign? The old cache would somehow need to be removed? Would saving the game through the options menu save the game cache as well if the player ever decided get back his old characters, progress, gold, etc.
New to campaigns, if someone could explain whats going on and perhaps an idea on how to resolve the problem that would be awesome thanks. How do you guys prefer to save your campaign progress?
-
Init Cache
- Events
- Conditions
-
Actions
- Game Cache - Create a game cache from bof2.w3v
- Set bof2 = (Last created game cache)
- Game Cache - Restore 1 of party from bof2 for Player 1 (Red) at (Center of Village 1 Church Ryu Start <gen>) facing 0.00
- Set Party_Order[1] = (Last restored unit)
- Game Cache - Restore 2 of party from bof2 for Player 9 (Gray) at (Center of Village 1 Church Ryu Start <gen>) facing 0.00
- Set Party_Order[2] = (Last restored unit)
- Game Cache - Restore 3 of party from bof2 for Player 9 (Gray) at (Center of Village 1 Church Ryu Start <gen>) facing 0.00
- Set Party_Order[3] = (Last restored unit)
- Game Cache - Restore 4 of party from bof2 for Player 9 (Gray) at (Center of Village 1 Church Ryu Start <gen>) facing 0.00
- Set Party_Order[4] = (Last restored unit)
- Set Cache_Gold = (Load gold of resources from bof2)
- Player - Set Player 1 (Red) Current gold to Cache_Gold
- If (Party_Order[1] Not equal to No unit) then do (Skip remaining actions) else do (Do nothing)
- Unit - Create 1 Ryu (Child) for Player 9 (Gray) at (Center of Village 1 Church Ryu Start <gen>) facing Default building facing degrees
- Set Party_Order[1] = (Last created unit)
- Unit Group - Add Party_Order[1] to Party_Group
If that is the case, theoretically a player could never use the "save game" option in the menu and save the cache instead? That could work, but what if the player ever wanted to start a new campaign? The old cache would somehow need to be removed? Would saving the game through the options menu save the game cache as well if the player ever decided get back his old characters, progress, gold, etc.
New to campaigns, if someone could explain whats going on and perhaps an idea on how to resolve the problem that would be awesome thanks. How do you guys prefer to save your campaign progress?