| 01-14-2007, 10:15 AM | #1 |
I saw this awesome WoW style of hero revival somewhere in these forums. I was following it when i suddenly found myself stuck. I couldn't find the darn action trigger : Set TriggerDeath[(Player Number of (Triggering Player))] = Dying unit I know some parts of that trigger were probably changed for personal map use but, I really can't find the base action trigger for this. Help pleaseee? |
| 01-14-2007, 10:53 AM | #2 |
-> Actions -> Set Variable ---> Select TriggerDeath ---> Select the index array ------> Go in Player Number of Player --------> Select Triggering Player -> Go back -> Select (Dying unit) as value specified. Or simply in JASS : JASS:set udg_TriggerDeath[ConvertedPlayer(GetTriggerPlayer())]=GetTriggerUnit() |
| 01-14-2007, 11:00 AM | #3 |
Thanks Mister Chocobo but... Being a noob at map making,I really know nothing about implementing that JASS code up there. And I don't really know what to put in the Add New Variable to make TriggerDeath... |
| 01-14-2007, 11:03 AM | #4 |
First look for this action. ![]() Then click TriggerDeath as the variable. ![]() Then, as the Index, look for Player Number ![]() Once you have that, it should automaticly be Triggering Player ![]() Then you should have something that looks like this: ![]() Then on Value, look for this: ![]() Then your done! you should have: ![]() |
| 01-14-2007, 11:11 AM | #5 |
How do I make the Trigger death variable T_T |
| 01-14-2007, 11:13 AM | #6 |
When on the trigger editor, hold [Ctrl] and click X. Then, click the Add Variable button, call it whatever you wanted, click the Array box, set array size to 12, and Variable Type to Unit. |
| 01-14-2007, 12:22 PM | #9 |
Whenever I enter the region i set for revival, it doesn't do anything. I tried all i know (probably not enough...) but i just can't get my hero to revive... |
| 01-14-2007, 12:51 PM | #10 |
Set TriggerDeath[(Player number of (Triggering player))] = (Triggering unit) should be Set TriggerDeath[(Player number of (Owner of (Triggering unit)))] = (Triggering unit) |
| 01-14-2007, 02:05 PM | #11 |
It still won't work...the unit just stands there and stares blankly into space. No heroes revived. No units removed. Is this thing even possible ?? |
