Why does my save/load trigger not work?

Joccaren

You can change this now in User CP.
Reaction score
54
Hi. I'm using a basic save/load trigger for a campaign I am making. Here are the triggers for map one:
Create Game Cache
Trigger:
  • Game Cache
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Game Cache - Create a game cache from Stormhaven.w3v


Save Hero
Trigger:
  • End Cinematic
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
      • Gameend Equal to True
    • Actions
      • Game Cache - Store Anverii 0212 <gen> as Anverii of Heroes in (Last created game cache)
      • Set Gameend = False
      • Unit - Set mana of Grull Hellmark 0216 <gen> to 400.00
      • Unit - Reset ability cooldowns for Grull Hellmark 0216 <gen>
      • Cinematic - Turn cinematic mode On for (All players)
      • Camera - Apply Look up road <gen> for Player 1 (Red) over 0.00 seconds
      • Unit - Move Grull Hellmark 0216 <gen> instantly to (Center of Move Blademaster to Cinematic <gen>), facing 0.00 degrees
      • Unit - Move Anverii 0212 <gen> instantly to (Center of Move Anverii to <gen>), facing 180.00 degrees
      • Unit - Make Anverii 0212 <gen> Invulnerable
      • Unit - Make Grull Hellmark 0216 <gen> Invulnerable
      • Cinematic - Send transmission to (All players) from Grull Hellmark 0216 <gen> named Grull Hellmark: Play No sound and display You fools. This is .... Modify duration: Add 5.00 seconds and Wait
      • Wait 5.00 seconds
      • Cinematic - Send transmission to (All players) from Anverii 0212 <gen> named Anverii: Play No sound and display We will never surre.... Modify duration: Add 3.00 seconds and Wait
      • Wait 3.00 seconds
      • Animation - Play Anverii 0212 <gen>'s attack animation
      • Wait 0.50 seconds
      • Unit - Order Grull Hellmark 0216 <gen> to Orc Blademaster - Mirror Image
      • Wait 1.00 seconds
      • Unit - Order Grull Hellmark 0216 <gen> to Move To (Position of Forest Troll 0238 <gen>)
      • Wait 2.00 seconds
      • Cinematic - Turn cinematic mode Off for (All players)
      • Unit - Make Anverii 0212 <gen> Vulnerable
      • Wait 1.00 seconds
      • Game - Save game as Mission 1.w3z and change level to Maps\New Campaign\Mission 2.w3x (Skip scores)


And here are the Triggers for map 2:

Create Game Cache
Trigger:
  • Game Cache
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Game Cache - Create a game cache from Stormhaven.w3v


Load Hero
Trigger:
  • Restore Anverii
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Game Cache - Restore Anverii of Heroes from (Last created game cache) for Player 1 (Red) at (Center of Anverii Restore <gen>) facing 90.00


My Hero doesn't load on the second map though. I have imported all custom object data and model files. Could someone help me find why this is happening.
 

Xorifelse

I'd love to elaborate about discussions...........
Reaction score
87
A gamecache only keeps it's values in the same game, unless it's a scenario.

Secondly, your trigger that returns the hero to the game is runned 0.04 seconds before the hero is actually saved in the game cache.
 

Joccaren

You can change this now in User CP.
Reaction score
54
Only in the same game?? Its worked for my other maps. All that I am doing is saving a hero in one map then loading it in the next. I have made other map swaps with game caches and the work, but not this one.
 

Joccaren

You can change this now in User CP.
Reaction score
54
bump. Can someone see an error in my triggers? I have done similar triggers for my other maps and they all work, so why not this one.
 

Joccaren

You can change this now in User CP.
Reaction score
54
Bump. I've added it to a campaign and it still doesn't work. Anyone able to help me?
 

Joccaren

You can change this now in User CP.
Reaction score
54
Bump. Does anyone know why its not working?
Is there a game cache limit?
Do I have to create the game cache off a real file or a different type of file?
Is there anything I'm forgetting?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top