HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

a noob is requesting your help..

12-02-2009, 11:28 PM#1
kain188
hello.
I'm kinda new so i will try to explain my problem the best i can.

I'm stuck with game cache.
I can transfer a hero from one map to another with no problem
as long as i created the hero myself in the map..but..
if the player hire a new hero in the ''hero tavern'',
i don't know how to store this hero in my cache..

anyone here could tell me how to do it please ?
thanks. :)
12-03-2009, 02:22 AM#2
Anitarf
First, you need to create a unit variable in the variable editor (click the yellow X icon in the trigger editor). Then, have a trigger that runs when a player trains a unit, check if the unit is a hero, if it is set the variable to that unit. Then, in your gamecache triggers, use that variable instead of a preset hero.