HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Addendum: Game Cache Heroes (2) from map 2 to map 4

08-08-2004, 11:48 PM#1
Black Knight
Can a mod add this to the FAQ or something? This is the trigger for caching -2- heroes as opposed to 1 and skipping a map.

Map 2 Triggers

The default melee trigger is creating two cached heroes from map 1, NOT 2 heroes added to the map via WE.

The default melee init triggers
Event
Melee Init (its default)
Conditions
Action
Game Cache - Create Game from GAMECACHE.w3v
Game Cache - Restore Jack1 of Hero from (Last created game cache) for Player 1 (Red) at (Center of Jack and Avenger <gen>) facing 0.00
Game Cache - Restore Avenger1 of Hero from (Last created game cache) for Player 1 (Red) at (Center of Jack and Avenger <gen>) facing 0.00

For two heroes create -two- triggers, one for each hero.

Jack Game Cache
Event
Unit - A unit enters Children <gen>

Condition
(Unit-type of (Triggering unit)) Equal to Jack

Action
Game Cache - Store (Entering unit) as Jack of Hero in (Last created game cache)

and

Avenger Game Cache

Event
Unit - A unit enters Children <gen>

Condition
(Unit-type of (Triggering unit)) Equal to Avenger (wielding father's sword)

Action
Game Cache - Store (Entering unit) as Avenger of Hero in (Last created game cache)

Now, the Melee Init trigger for map 4! ^_^

Event
Map initialization

Condition
Action
Game Cache - Create a game cache from GAMECACHE.w3v
Game Cache - Restore Jack of Hero from (Last created game cache) for Player 1 (Red) at (Center of Avenger and Jack <gen>) facing 0.00
Game Cache - Restore Avenger of Hero from (Last created game cache) for Player 1 (Red) at (Center of Avenger and Jack <gen>) facing 0.00


And there you are! In case your reading this and was stuck like I was! o_O