- Joined
- Jul 5, 2014
- Messages
- 556
I'm trying to make map crossing work. I could cross to a submap but when attempting to go back, the game just exits to the campaign screen. That happened before when I had wrong extension given but I don't think it's the case now. After hours of trying to make this work, I just don't have the focus and the idea what went wrong.
Map 1's cache triggers:
Map 1's cache triggers:
-
Cache Setups
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


-------- Cache Data --------
-


Game Cache - Create a game cache from HallCache.w3v
-


Set HallCache = (Last created game cache)
-


-------- Captain Reload --------
-


Set Hero1Return[2] = Hero1FromSpiders <gen>
-


Set Hero1Return[3] = Hero1AllianceConversation <gen>
-


-------- Celeste Reload --------
-


Set Hero2Return[2] = Hero2FromSpiders <gen>
-


Set Hero2Return[3] = Hero2AllianceConversation <gen>
-


Trigger - Turn off (This trigger)
-
-
-
Go to Spider Lair
-

Events
-


Unit - A unit enters Submap Spider Lair <gen>
-
-

Conditions
-


((Triggering unit) Equal to Hero1) or ((Triggering unit) Equal to Hero2)
-
-

Actions
-


Set Leftfrommap = 1
-


Game Cache - Clear all labels of HeroData in HallCache
-


Game Cache - Store Leftfrommap as Leftfrommap of MapData in HallCache
-


-------- Heroes --------
-


Game Cache - Store Hero1 as Hero1 of HeroData in HallCache
-


Game Cache - Store Hero2 as Hero2 of HeroData in HallCache
-


-------- Hero Life n' Mana --------
-


Game Cache - Store (Life of Hero1) as Hero1Life of HeroData in HallCache
-


Game Cache - Store (Mana of Hero1) as Hero1Mana of HeroData in HallCache
-


Game Cache - Store (Life of Hero2) as Hero2Life of HeroData in HallCache
-


Game Cache - Store (Mana of Hero2) as Hero2Mana of HeroData in HallCache
-


-------- Gold --------
-


Game Cache - Store (Player 2 (Blue) Current gold) as Gold of Money in HallCache
-


-------- Rest --------
-


Game Cache - Save HallCache
-


Wait 1.00 seconds
-


Unit - Remove Hero1 from the game
-


Unit - Remove Hero2 from the game
-


Wait 1.00 seconds
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




SpiderMapFirst Equal to True
-
-



Then - Actions
-




Game - Save game as Saves\HallMap.w3z and change level to Spider Cave.w3x (Skip scores)
-
-



Else - Actions
-




Game - Save game as Saves\HallMap.w3z and load Saves\SpiderCave.w3z (Skip scores)
-
-
-
-
-
Load Heroes
-

Events
-

Conditions
-

Actions
-


Game Cache - Reload all game cache data from disk
-


Set Leftfrommap = (Load Leftfrommap of MapData from HallCache)
-


Set SpiderMapFirst = (Load SpiderMapFirst of MapData from HallCache)
-


-------- Restore Hero1 --------
-


Game Cache - Restore Hero1 of HeroData from HallCache for Player 2 (Blue) at (Center of Hero1Return[Leftfrommap]) facing 180.00
-


Set Hero1 = (Last restored unit)
-


Unit - Set life of (Last restored unit) to (Load Hero1Life of HeroData from HallCache)
-


Unit - Set mana of (Last restored unit) to (Load Hero1Mana of HeroData from HallCache)
-


-------- Restore Hero2 --------
-


Game Cache - Restore Hero2 of HeroData from HallCache for Player 2 (Blue) at (Center of Hero2Return[Leftfrommap]) facing 180.00
-


Set Hero2 = (Last restored unit)
-


Unit - Set life of (Last restored unit) to (Load Hero2Life of HeroData from HallCache)
-


Unit - Set mana of (Last restored unit) to (Load Hero2Mana of HeroData from HallCache)
-


-------- Gold --------
-


Player - Set Player 2 (Blue) Current gold to (Load Gold of Money from HallCache)
-
-
-
Save Game is Loaded
-

Events
-


Game - A saved game is loaded
-
-

Conditions
-

Actions
-


Game Cache - Create a game cache from HallCache.w3v
-


Set HallCache = (Last created game cache)
-


Trigger - Run Load Heroes <gen> (ignoring conditions)
-
-
-
Cache Setup
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Game Cache - Create a game cache from HallCache.w3v
-


Set HallCache = (Last created game cache)
-


Set Hero1Return[1] = Hero1 <gen>
-


Set Hero2Return[1] = Hero2 <gen>
-


-------- Variables --------
-


Set SpiderMapFirst = False
-


Trigger - Turn off (This trigger)
-


Trigger - Run Load Heroes <gen> (ignoring conditions)
-
-
-
Go to Hall
-

Events
-


Unit - A unit enters Back to Hall <gen>
-
-

Conditions
-


((Entering unit) Equal to Hero1) or ((Entering unit) Equal to Hero2)
-
-

Actions
-


Set Leftfrommap = 2
-


Game Cache - Clear all labels of HeroData in HallCache
-


Game Cache - Store Leftfrommap as Leftfrommap of MapData in HallCache
-


-------- Heroes --------
-


Game Cache - Store Hero1 as Hero1 of HeroData in HallCache
-


Game Cache - Store Hero2 as Hero2 of HeroData in HallCache
-


-------- Hero Life n' Mana --------
-


Game Cache - Store (Life of Hero1) as Hero1Life of HeroData in HallCache
-


Game Cache - Store (Mana of Hero1) as Hero1Mana of HeroData in HallCache
-


Game Cache - Store (Life of Hero2) as Hero2Life of HeroData in HallCache
-


Game Cache - Store (Mana of Hero2) as Hero2Mana of HeroData in HallCache
-


-------- Gold --------
-


Game Cache - Store (Player 2 (Blue) Current gold) as Gold of Money in HallCache
-


-------- Rest --------
-


Game Cache - Store SpiderMapFirst as SpiderMapFirst of MapData in HallCache
-


Game Cache - Save HallCache
-


Wait 1.00 seconds
-


Unit - Remove Hero1 from the game
-


Unit - Remove Hero2 from the game
-


Wait 1.00 seconds
-


Game - Save game as Saves\SpiderCave.w3z and load Saves\HallMap.w3z (Skip scores)
-
-
-
Load Heroes
-

Events
-

Conditions
-

Actions
-


Game Cache - Reload all game cache data from disk
-


Set Leftfrommap = (Load Leftfrommap of MapData from HallCache)
-


-------- Restore Hero1 --------
-


Game Cache - Restore Hero1 of HeroData from HallCache for Player 2 (Blue) at (Center of Hero1Return[Leftfrommap]) facing 0.00
-


Set Hero1 = (Last restored unit)
-


Unit - Set life of (Last restored unit) to (LoadHero1Life of HeroData from HallCache)
-


Unit - Set mana of (Last restored unit) to (Load Hero1Mana of HeroData from HallCache)
-


-------- Restore Hero2 --------
-


Game Cache - Restore Hero2 of HeroData from HallCache for Player 2 (Blue) at (Center of Hero2Return[Leftfrommap]) facing 0.00
-


Set Hero2 = (Last restored unit)
-


Unit - Set life of (Last restored unit) to (Load Hero2Life of HeroData from HallCache)
-


Unit - Set mana of (Last restored unit) to (Load Hero2Mana of HeroData from HallCache)
-


-------- Gold --------
-


Player - Set Player 2 (Blue) Current gold to (Load Gold of Money from HallCache)
-
-
-
Save Game is Loaded
-

Events
-


Game - A saved game is loaded
-
-

Conditions
-

Actions
-


Game Cache - Create a game cache from HallCache.w3v
-


Set HallCache = (Last created game cache)
-


Trigger - Run Load Heroes <gen> (ignoring conditions)
-
-
Last edited: