Gamecache

Status
Not open for further replies.
Level 4
Joined
Mar 29, 2010
Messages
16
This is bugging me I have read like 4 tutorials and I just... I don't get it. It dosn't want to load the hero for me. Please point out something I've stupidly missed because im slow. :)

Map 1 Trigger
----
Player - Player 1 (Red) types a chat message containing -save as An exact match
----
Game Cache - Create a game cache from CAMPAIGN LOAD TEST 1.w3v
Set GameCache = (Last created game cache)
Game Cache - Store Paladin 0011 <gen> as Heros of SavedHeros in (Last created game cache)
Game Cache - Save GameCache
Game - Set the next level to CAMPAIGN LOAD TEST 2.w3x
Wait 2.00 seconds
Game - Victory Player 1 (Red) (Show dialogs, Show scores)

Map 2 Triggers
----
Time - Elapsed game time is 0.00 seconds
----
Game Cache - Create a game cache from CAMPAIGN LOAD TEST 1.w3v
Set GameCache = (Last created game cache)
----
--------
----
Time - Elapsed game time is 2.00 seconds
----
Game Cache - Restore Heros of SavedHeros from (Last created game cache) for Player 1 (Red) at (Center of Region 000 <gen>) facing 0.00
Set TEMP = (Last restored unit)
----
 
Level 29
Joined
Oct 24, 2012
Messages
6,545
plz use this.

http://www.hiveworkshop.com/forums/miscellaneous-tutorials-456/how-easily-post-triggers-163285/

u also leak a location / point here
  • Game Cache - Restore Heros of SavedHeros from (Last created game cache) for Player 1 (Red) at (Center of Region 000 <gen>) facing 0.00
u store the last created game cache here which is right
  • Set GameCache = (Last created game cache)
but u dont use it in the next lines which is the wrong way.

also dont u have to save the game cache w the save game cache action ?
 
Status
Not open for further replies.
Top