I am trying to make a campaign with a custom hero. The problem is it won't load/cache variables (unit and gold). THere are two maps - cpg1.w3x and cpg2.w3m. Here are the triggers:
Initialization
Initialization
-
Events
- Map Initialization
- Conditions
-
Actions
- Game Cache - Create a game cache from cpg1.w3x
- Set Aascache = (Last created game cache)
-
Events
- Unit - A unit enters Region 001 <gen>
-
Conditions
- ((Entering unit) is A Hero) Equal to True
-
Actions
- Set Aasgold = (Player 1 (Red) Current gold)
- Game Cache - Store Aasgold as Gold of Resources in Aascache
- Game Cache - Store Mortar team 0001 <gen> as Mortar team of Heroes in Aascache
- Game Cache - Save Aascache
- Game - Set the next level to cpg2.w3m
- Game - Victory Player 1 (Red) (Skid dialogs, Skip scores)
-
Events
- Map Initialization
- Conditions
-
Actions
- Game Cache - Create a game cache from cpg2.w3m
- Game Cache - Reload all game cache data from disk
- Set Aascache = (Last created game cache)
- Set Aasgold = (Load Gold of Resources from Aascache)
- Player - Set Player 1 (Red) Current gold to Aasgold
- Game Cache - Restore Mortar Team of Heroes from Aascache for Player 1 (Red) at (Player 1 (Red) start location) facing (Center of (Playable map area))