Alright so I've been working on a custom campaign lately and for some reason can't get the level transition to work. I tried doing this on 2 empty maps and I successfully carried a hero from one to the other. When I try to do the same thing in the actual campaign it just doesn't work and I can't figure out why. And yes, I have read the tutorials on this topic. Here is the trigger I use to save in the first leve:
- Set Jaina = Jaina 0026 <gen>
- Game Cache - Create a game cache from Cache.w3v
- Set Cache = (Last created game cache)
- Game Cache - Store Jaina as Jaina of Level2 in Cache
- Game Cache - Save Cache
- Game - Show custom campaign button 2
- Game - Set the next level to Dead Men Walking.w3x
- Game - Victory Player 1 (Red) (Show dialogs, Show scores)
- Game Cache - Create a game cache from Cache.w3v
- Set Cache = (Last created game cache)
- Trigger - Run Load Jaina <gen> (ignoring conditions)
- Game Cache - Restore Jaina of Level2 from Cache for Player 1 (Red) at (Center of Jaina intro start <gen>) facing 90.00
- Set Jaina = (Last restored unit)
- Game - Display to (All players) the text: Works
- If (Jaina Not equal to No unit) then do (Skip remaining actions) else do (Do nothing)
- Unit - Create 1 Jaina for Player 1 (Red) at (Center of Jaina intro start <gen>) facing 90.00 degrees
- Set Jaina = (Last created unit)
- Hero - Set Jaina Hero-level to 3, Hide level-up graphics
- Hero - Learn skill for Jaina: Frost Bolt
- Hero - Learn skill for Jaina: Ice Explosion
- Game - Display to (All players) the text: Works
- Set Arthas = Arthas (wielding Frostmourne) 0000 <gen>
- Game Cache - Create a game cache from Cache.w3v
- Set Cache - (Last created game cache)
- Game Cache - Store Arthas as Arthas of Hero in Cache
- Game Cache - Save Cache
- Game - Show custom campaign button 2
- Game - Set the next level to Test2.w3m
- Game - Victory Player 1 (Red) (Skip Dialogs, Skip scores)
- Game Cache - Create a game cache from Cache.w3v
- Set Cache = (Last created game cache)
- Game Cache - Restore Arthas of Hero from Cache for Player 1 (Red) at (Center of Region 000 <gen>) facing 0.00
- Set Arthas = (Last restored unit)
- If (Arthas Not equal to No unit) then do (Skip remaining actions) else do (Do nothing)
- Unit - Create 1 Footman for Player 1 (Red) at (Center of Region 000 <gen>) facing Default building facing degrees
Last edited: