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
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)
-
-
-
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)
-
-
-
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)
-
-