I have gotten a game cache to transfer between two maps. The first map saves correctly and changes the level to the second map. However, when the second map is done, it does one of two things:
1: The game crashes and goes to the main screen
2: It lags for a second, but doesn't change levels.
I'm using the save and load actions because when the player goes back to the first map, the game needs to start off where it saved before going to the second map.
Here is the trigger that goes from the first to the second map.
The next trigger is in the second map. It is after you win the second map. I believe this is where the problem is.
Please could someone try to figure out what's wrong with these triggers?
rtatpi
1: The game crashes and goes to the main screen
2: It lags for a second, but doesn't change levels.
I'm using the save and load actions because when the player goes back to the first map, the game needs to start off where it saved before going to the second map.
Here is the trigger that goes from the first to the second map.
Code:
Events
Player - Player 1 (Red) Selects a unit
Conditions
(Unit-type of (Triggering unit)) Equal to Blane
((Region centered at (Position of blane) with size (500.00, 500.00)) contains hero_unit) Equal to True
Actions
Cinematic - Turn cinematic mode On for (All players)
Cinematic - Disable user control for (All players)
Cinematic - Turn on letterbox mode (hide interface) for (All players): fade out over 0.00 seconds
Camera - Apply Camera 005 <gen> for Player 1 (Red) over 2.00 seconds
Unit - Make blane face hero_unit over 0.00 seconds
Unit - Make hero_unit face blane over 0.00 seconds
Cinematic - Send transmission to (All players) from blane named blanename: Play No sound and display Oh, great you're he.... Modify duration: Add 3.50 seconds and Wait
Game Cache - Create a game cache from siege.w3v
Set siegecache = (Last created game cache)
Game Cache - Store hero_unit as hero of player in siegecache
Game Cache - Save (Last created game cache)
Game - Save game as karinsiege.w3z and change level to Maps\Scenario\siegeofsilibi.w3x (Skip scores)
The next trigger is in the second map. It is after you win the second map. I believe this is where the problem is.
Code:
victory
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Bandit Lord
Actions
Game - Display to (All players) the text: Karin is saved!
Wait 3.00 seconds
Game Cache - Store hero_unit as one of player in siegecache
Game Cache - Save siegecache
Game - Save game as siege.w3z and load karinsiege.w3z (Skip scores)
Please could someone try to figure out what's wrong with these triggers?
rtatpi