- Joined
- Jan 22, 2010
- Messages
- 115
I have created a series of linked maps with transitions. When loading a new map the game will make a specific save file: "Saves\Map1.w3z" and load the file for the next map. The problem is that a player can make a normal save ingame. When this file "(Custom Save).w3z" is loaded it reloads data from the gamecache that is already in the game.
The simple solution is to detect the name/path of the save, and either run the load trigger or do nothing. But in GUI I can only compare the "string of saved game" and not of the "loaded game".
So how do I detect which file is loaded?
The simple solution is to detect the name/path of the save, and either run the load trigger or do nothing. But in GUI I can only compare the "string of saved game" and not of the "loaded game".
So how do I detect which file is loaded?
-
Events
- Game - A saved game is loaded
-
Actions
- Game Cache - Create a game cache from CommonCache.w3v
- Set CommonCache = (Last created game cache)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Saved-game filename) Equal to Map1.w3z
-
Then - Actions
- Trigger - Run Load <gen> (ignoring conditions)
- Else - Actions
-
If - Conditions