How do i get it so when a unit enters a region it loads another one of my campaign maps (like a submap). I have this, i have no idea if its right, was just messing around seeing if i could get it.
Trigger 1
Trigger 1
-
To C2
-
Events
-
Unit - A unit enters Cave Exit 2 <gen>
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering unit) Equal to Leader of the Light 0019 <gen>
-
-
Then - Actions
-
Dialog - Change the title of DialogBox to Go to Xaoliq's lair...
-
Dialog - Create a dialog button for DialogBox labelled Yes
-
Set DialogButton[1] = (Last created dialog Button)
-
Dialog - Create a dialog button for DialogBox labelled Not yet
-
Set DialogButton[2] = (Last created dialog Button)
-
Dialog - Show DialogBox for Player 1 (Red)
-
-
Else - Actions
-
-
-
-
Dialog C2
-
Events
-
Dialog - A dialog button is clicked for DialogBox
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to DialogButton[1]
-
-
Then - Actions
-
Dialog - Hide DialogBox for Player 1 (Red)
-
Game Cache - Create a game cache from TheHeartOfTheIsland.w3v
-
Game Cache - Store Leader of the Light 0019 <gen> as Quintin of Hero in Cache[1]
-
Game Cache - Save Cache[1]
-
Game Cache - Store (Player 1 (Red) Current gold) as Gold of Property in Cache[2]
-
Game Cache - Save Cache[2]
-
Game Cache - Store (Player 1 (Red) Current lumber) as Lumber of Property in Cache[3]
-
Game Cache - Save Cache[3]
-
Game - Load sub - cave.w3z (Skip scores)
-
-
Else - Actions
-
-
-
-
Melee Initialization
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Game Cache - Restore Quintin of Hero from Cache for Player 1 (Red) at (Center of Enter Exit <gen>) facing 0.00
-
Player - Set Player 1 (Red) Current gold to (Load Gold of Property from Cache)
-
Player - Set Player 1 (Red) Current lumber to (Load Lumber of Property from Cache)
-
-