Hero won't load in next map (Game cache issue)

ROTS19

TH.net Regular
Reaction score
12
Been reading the tutorials and other threads about this so I'm farily sure I understood what to do, but for some reason it doesn't work.


Trigger:
  • ZOMBIEDEAD
    • Events
      • Unit - Zombie 0010 <gen> Dies
    • Conditions
    • Actions
      • Wait 5.00 game-time seconds
      • Trigger - Run Save The Hero <gen> (checking conditions)



Trigger:
  • Save The Hero
    • Events
    • Conditions
    • Actions
      • Game Cache - Create a game cache from Forum01.w3v
      • Set Forum01 = (Last created game cache)
      • Game Cache - Store Muradin Bronzebeard 0004 <gen> as Muradin of SavedHeroes in Forum01
      • Trigger - Run NextMissionRun <gen> (checking conditions)


Then the next mission is run, which works fine. Here's the loading trigger for map 2.

Trigger:
  • Load Hero
    • Events
      • Time - Elapsed game time is 0.25 seconds
    • Conditions
    • Actions
      • Camera - Pan camera for Player 1 (Red) to (Player 1 (Red) start location) over 0.00 seconds
      • Game Cache - Restore Muradin of SavedHeroes from Forum01 for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing
      • Game - Display to (All players) the text: This should work


I can't figure out where I went wrong here, but the hero won't load in map 2. Please help.
 

dorbian

New Member
Reaction score
1
Now i'm not really knowledgeable on this subject, but don't you need to use the save cache option after creating
Trigger:
  • Game Cache - Save Last created game cache

Just trying to think with you :)

edit:

after some thoughts, i think you could try this:

Trigger:
  • Save The Hero
    • Events
    • Conditions
    • Actions
      • Game Cache - Create a game cache from Forum01.w3v
      • Set Forum01 = (Last created game cache)
      • Game Cache - Store Muradin Bronzebeard 0004 <gen> as Muradin of SavedHeroes in Forum01
      • Game Cache - Save (Forum01)
      • Trigger - Run NextMissionRun <gen> (checking conditions)



Trigger:
  • Load Hero
    • Events
      • Time - Elapsed game time is 0.25 seconds
    • Conditions
    • Actions
      • Camera - Pan camera for Player 1 (Red) to (Player 1 (Red) start location) over 0.00 seconds
      • Game Cache - Create a game cache from Forum01.w3v
      • Set Forum01 = (Last created game cache)
      • Game Cache - Restore Muradin of SavedHeroes from Forum01 for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing
      • Game - Display to (All players) the text: This should work


as the loaded map probably doesn't know Forum01 yet

again just my two cents :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top