HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

even more help!

04-29-2003, 01:14 AM#1
SkylineGT[FB]
ok now i need help on this: ok, there is 8 players, 4 rings that they fight it. 2 people in each ring. now, they r randomly picked to fight eachother. this is what i need help on how do i get a trigger to reconize when each hero wins in the circle(when he killes the other hero/opponent)? then, the winning 4 will go back to there traing cell, and the loosing 4 will go to the hero arena part of the map.

also, does this work? when the heros life becomes equal to 1, it would replace that hero with a differnt unit, but same model, doing the dieing animation, and the hero that is HP=1, will be transported to the hero arena. how would i replace the hero with another of the same model? im pretty sure i can do the dieing action by myself.
04-29-2003, 05:35 AM#2
ChrydGod
You don't need to save your hero before he dies to keep all his stats, and also you can't use "when life becomes equal to 1" because it very rarely reaches 1.
This said, a trigger looking like this would work :

events :
A unit Owned by Player1 Dies
..............................................
A unit Owned by Player8 Dies

conditions :
(Dying unit is a Hero) Is Equal to True
(Dying unit is in Ring1) OR (Dying unit is in Ring2) OR (Dying unit is in Ring3) OR (Dying unit is in Ring4)

Actions :
Hero - Revive(Dying unit) at Center of(trainingcell[Player Number(triggering Player)] , Hide revival graphics
Unit - Move(Killing unit) instantly at Center of(Arena)

Note :
I supposed you created and initialized the trainingcell variable, a Region array containing the training cell of players's Heros.



I hope this helped,
Regards
04-29-2003, 09:57 PM#3
SkylineGT[FB]
well yes i can use the HP=1 cuase if he has 5 HP left and get hit by 27 DAM, and no armor, then i think that he will be move befor he dies to another place. but i havnt tested this so i dont know if its true.
04-29-2003, 10:34 PM#4
FyreDaug
Quote:
well yes i can use the HP=1 cuase if he has 5 HP left and get hit by 27 DAM, and no armor, then i think that he will be move befor he dies to another place. but i havnt tested this so i dont know if its true.

No you can't, chrydgod said it quite clearly that the hp rarely gets to 1 hp. If you have 5 and you take 27 away from it, do you get 1? No, you would get -22, but since you can't have a negative hp value, it would be 0.
04-29-2003, 10:46 PM#5
SkylineGT[FB]
o, then im wrong.
04-29-2003, 10:48 PM#6
Earth-Fury
lol so when hp reatches 0 wold work too, but there s the when unit dies functon.
04-29-2003, 10:51 PM#7
DaKaN
earth-fury, read above, thats exactly what ChrydGod said, + he even gave the trigger outline
04-30-2003, 01:45 AM#8
SkylineGT[FB]
when i did this, 1 hero was left in the ring.