| 09-25-2009, 12:04 AM | #1 |
For some strange reason the trigger to revive a hero does not work. I have tried everything I can think of and I cannot fix the problem. Does anyone know why the trigger will not revive a hero(the hero is assigned as a variable unit)? Another issue, is that I cannot revive heroes the normal way either(altars), again I do not know why this is happening and I've tried everything I can think of and am out of ideas. This is a very big problem for my map and I need to fix it. Any help would be greatly appreciated. Thank you. |
| 09-25-2009, 03:25 AM | #2 |
Hmmm.. what kind of problem are you talking about? The trigger doesn't fire? Can you post the code so I can take a look at it? |
| 09-26-2009, 04:00 AM | #4 |
Are you absolutely sure your hero is assigned to General[1]? What other triggers are associated with it? |
| 09-26-2009, 04:08 AM | #5 |
Yes the hero is definantely assigned to General[1] because the death trigger(to spawn the spirit) involves the General[1] variable and works fine, as does any other trigger involving the General[1] variable. |
| 09-26-2009, 04:15 AM | #6 |
Mmmm... try this, perhaps it works.. Sometimes the GUI cannot refer to the same trigger unit repeatedly, so maybe saving the unit into a temp variable could help.. this happens to me several times before Trigger: ![]() Revive![]() Events![]() Unit - A unit comes within 150.00 of Shrine of Athena 0554 <gen>![]() Unit - A unit comes within 150.00 of Shrine of Ares 0555 <gen>![]() Unit - A unit comes within 150.00 of Shrine of Artemis 0582 <gen>![]() Unit - A unit comes within 150.00 of Shrine of Hermes 0154 <gen>![]() Unit - A unit comes within 300.00 of Shrine of Poseidon 0570 <gen>![]() Unit - A unit comes within 150.00 of Shrine of Apollo 0155 <gen>![]() Unit - A unit comes within 150.00 of Shrine of Hephaestus 0212 <gen>![]() Unit - A unit comes within 150.00 of Healing Shrine 0253 <gen>![]() Conditions![]() (Unit-type of (Triggering unit)) Equal to Spirit![]() Actions![]() set udg_temp_Unit = Triggering unit![]() If (All Conditions are True) then do (Then Actions) else do (Else Actions)![]() If - Conditions![]() (Triggering unit) Equal to General_Ghost[1]![]() Then - Actions![]() set udg_temp_Loc = Position of (udg_temp_Unit)![]() Special Effect - Create a special effect at (udg_temp_Loc) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl![]() Hero - Instantly revive General[1] at (udg_temp_Loc), Show revival graphics![]() call RemoveLocation(udg_temp_Loc)![]() Wait 0.70 seconds![]() Unit - Remove General_Ghost[1] from the game![]() Else - Actions![]() Do nothingEDIT: holy hell, that is messy... just ask me if you don't understand anything. |
| 09-26-2009, 07:32 AM | #7 |
That didn't fix the problem, for some reason the actual action for reviving the hero isn't working for some reason. Also alternatively, i can't get it so that altars revive heroes either, does anyone know how to remedy that problem either? |
| 10-07-2009, 04:57 AM | #8 |
Please, more input people, this is a very big problem for my map. |
| 10-20-2009, 07:06 AM | #9 |
I need someone to help me with this it is imperative for my map. For some reason neither altars can revive, nor the revive trigger works whatsoever. Please help. |
| 10-20-2009, 07:35 AM | #10 |
Before I will help you, you elaborate what you are trying to do and if you need it MUI, MPI or if it doesn't matter. |
| 10-20-2009, 09:20 AM | #11 |
What do you mean MUI. Its quite simple, i've tried it many different ways, its the only part of the trigger that does not work is the (Hero - revive) action. I've changed the rest of the trigger itself around(the event, and the actions etc.) Every other part of the trigger works fine, except the revive action. Also, i cannot seem to get altars to revive the hero either. I am totally confounded, i have never had this problem before and I've created hero revive triggers countless times. |
| 10-20-2009, 09:25 AM | #12 | |
You are still saying that you fail, not what you REALLY want. Do you want a Ghost System when your hero falls you will be instantly revived if your ghost reaches your dead body? If yes, check "Blizzards Candy War". They made it before. To your problem: For me it seems that the captain really isn't setted, else it should work fine. Or maybe you added reincarnation to the hero, so he can't be revived,... Guess what, before I will help you more, just CLEARY elaborate what you want to reach, not what you tried to do. Edit: Quote:
There are other possibilities as well, but those are the most important. |
| 10-20-2009, 09:44 AM | #13 |
Ahah!! So it was because i had a reincarnation ability that the hero wasnt able to be revived. My problem is fixed. Thank you! |
| 10-20-2009, 09:49 AM | #14 |
Good, to fix it I would check if an unit is really death, so I suggest checking if the live is 0.00, not higher. (.045 or something like that is the amount of life of reincarnating units) |
| 10-20-2009, 10:27 AM | #15 |
The unit had the reincarnation ability, but it wasnt available yet(it needed a upgrade to work) why does that still deny revival? |
