Game cache not working with (triggering unit)

Status
Not open for further replies.
Level 2
Joined
Apr 10, 2018
Messages
13
Hey Guys so, im doing a campaign where you can chose your hero, so most triggers work with TRIGGERING UNIT instead of specific unit and i came to the first instance of map switching and well.... hit a wall. I managed to get the map switching correctly but hero wont load so if im missing something pls tell me cuz when i was trying this years ago the same way (but with specific unit not triggering) it used to work



first map triggers for saving game cache when i enter the zone that ports me into diffirent map
  • game cache MINES
    • Events
      • Unit - A unit enters Last Stand Cave <gen>
    • Condition
      • ((Triggering unit) is Hrdina) equals TRUE
    • Actions
      • Game Cache - Create a game cache from COHA-Chapter1.w3x
      • Game Cache - Store (Triggering unit) as Hero of Protagonists in Sealed_Mines_GAMECACHE
      • Set Sealed_Mines_GAMECACHE = (Last created game cache)
      • Game Cache - Save Sealed_Mines_GAMECACHE
      • Hra - Set the next level to Maps\COHA-Last_Stand_Mines.w3x
      • Animation - Zeslabit over 0.50 seconds using texture black mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
      • Wait 0.50 seconds
      • Game - Victory Hráč 1 (Červená) (Vynechat dialogs, Vynechat scores)
      • Wait 1.00 seconds
      • Trigger - Turn off (This trigger)
second map starting triggers
  • LOAD HERO
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Game Cache - Restore Hero of Protagonists from (Last created game cache) for Hráč 1 (Červená) at (Center of hero spawn <gen>) facing 0.00
      • Set HERO = (Last restored unit)
and inicialization
  • INICIALIZATO
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Viditelnost - Enable fog of war
      • Game Cache - Create a game cache from COHA-Chapter1.w3x
      • Set gameCache = (Last created game cache)
ohh and edit: you might notice some stuff like instead of player 1 red there is Hráč 1 (Červená) thats cuz my internet was down so when i was reinstalling wc3 it was from a cd with an old serial key and the version was in czech language for whatever reason which isnt my first but i can speak it etc so just ignore that, i reinstall it soon
 
Status
Not open for further replies.
Top