| 08-04-2003, 07:16 AM | #1 |
k.. so I have a coffin that appears when a hero dies, and I have a spell that can only be cast on the coffin... now is there a way to make a trigger that will instantly revive the hero, for the player of the coffin, at the position of the coffin -- when the spell is cast on it? Any help would be appreciated. |
| 08-04-2003, 07:30 AM | #2 |
You would need to set Hero into a size (number of players) unit array (DeadHero). And then. Untitled Trigger 001 Events Unit - A unit Is issued an order targeting an object Conditions (Issued order) Equal to (Order(x)) (Unit-type of (Targeted unit)) Equal to Coffin Actions Hero - Instantly revive DeadHero[(Player number of (Owner of (Targeted unit)))] at (Position of (Targeted unit)), Hide revival graphics |
| 08-04-2003, 07:45 AM | #3 |
Okay, sorry for being a newb but, I understand everything except the "set hero into variable" .. I know how to make the variable.. but what do I set it to..? They also have the option to select from 5 heros (so far) so it could be any of those 5... if that matters. |
| 08-04-2003, 07:54 AM | #4 |
Make an array for units. Then, when the unit dies (in the other trigger I gave you) set the first action as Set Variable - DeadHero[owner of (dying unit)] = (Dying unit) I edited my previous post, hopefully this will work (I did not test it, I do not see why it wouldn't.) Edit: Just im me at ConsumerWhr if you need further help. |
