| 01-12-2005, 12:12 PM | #1 |
ok i got a weird problem i made an aos map and i got the revival triggers goin on, they work perfectly but when i add a reincarnation ability to someone, he dies, comes back, and the second time he dies, the timer works and everything works ok but when the timer ends, he doesnt revive! help.. |
| 01-12-2005, 12:30 PM | #2 |
Post the trigger here, other way we can't help... |
| 01-12-2005, 12:49 PM | #3 | |
Quote:
its the simplest trigger.. Revive Hero Player 2 Events Unit - A unit owned by Player 2 (Blue) Dies Conditions ((Dying unit) is A Hero) Equal to True Actions Wait 15 seconds Hero - Instantly revive (Dying Unit) at (Center of HF Hero Spawn <gen>), Show revival graphics Camera - Pan camera for (Owner of (Dying Unit)) to (Center of HF Hero Spawn <gen>) over 1.00 seconds |
| 01-12-2005, 01:11 PM | #4 |
i think it has something to do with the gameplay constants.. |
| 01-12-2005, 02:06 PM | #5 |
alright i solved it myself LOL if anyone ever bumps into this, my mistake was basing the ability on Reincarnation (Neutral Hostile) gotta base it on the ability Reincarnation from the tauren chieftain. cheers |
| 01-13-2005, 02:41 AM | #6 |
I don't think you solved the problem :/ I think the problem wasn't using neutral hostile reincarnation, but rather how the trigger is written. Putting a wait statement, and then referring to "Dying Unit" can cause problems. Basically, think of it like this: when you add a wait, it will probably forget who started the event in the first place. That said, you may want to add a variable to your trigger. We'll call it Player2DyingHero (make it type "Unit"). Just change your trigger slightly to look like this: Code:
Revive Hero Player 2 Events Unit - A unit owned by Player 2 (Blue) Dies Conditions ((Dying unit) is A Hero) Equal to True Actions [color=orange]Set Player2DyingHero = Dying Unit[/color] Wait 15 seconds Hero - Instantly revive [color=orange]Player2DyingHero[/color] at (Center of HF Hero Spawn <gen>), Show revival graphics Camera - Pan camera for (Owner of ([color=orange]Player2DyingHero[/color])) to (Center of HF Hero Spawn <gen>) over 1.00 seconds I'm banking on the idea that you'll be back here. We'll see though. |
| 01-13-2005, 07:13 AM | #7 | |
Quote:
first, that wasn't my trigger, its just a sample cuz the trigger didnt really matter and it did solved the problem the hero didnt revive first, but now it does = solved the problem i did an advanced trigger, just posted a simple one cuz the trigger didnt matter the ability mattered. i use arrays and variables on my triggers since its a multiplayer map. |
| 01-13-2005, 01:13 PM | #8 | |
Quote:
|
| 01-13-2005, 04:59 PM | #9 |
Hmm, alright then sorry Vile: guess if you say it works, it works :). I really thought this was a problem, but I was wrong! Thanks to Anitarf for clearing up that it's just casting unit that's used as a global. Yesterday just wasn't my day! I posted a thread in the wrong forum, lost my parking ticket and had to pay a huge fee at the airport, and now this! Oh well, yesterday is already over. |
| 01-15-2005, 03:06 AM | #10 | |
Quote:
Event:a unit die Condition:And all condition equal to true -Dying unit is a hero equal to true -Item type of item carring by dying unit not equal to ank of reicarnation -Or multi condition -Level of reicarnation of dying unit not equal to 1 -Level of reicarnation of dying unit not equal to 2 ............................. Action: -Up to you ^_^ |
| 01-15-2005, 09:40 AM | #11 | |
Guest | Quote:
Reincarnation does not matter, because a dying unit with reincarnation is NOT counted as dead, and thus does not register the event. Blizzard's event responses do not all behave correctly, I recommend using local variables in certain cases, or global vars if the trigger is not multi instance. |
| 01-15-2005, 10:28 AM | #12 | |
Quote:
-Ong chuyen han sang day hoat dong luon ko vo gamevn nua ah?? |
| 01-15-2005, 03:58 PM | #13 |
@Vile: Lol man, if someone says you should post the trigger when you have trigger problems you have to post the EXACT TRIGGER, other way how could we help you find the error when you post something else? That's the same as asking "Why doesn't my PC start?" without giving any information. It could be a problem of Windows, Linux, your PC's hardware, a virus, it could be any shit... |
| 01-15-2005, 10:46 PM | #14 | |
Quote:
i would like to modify that: humm humm... "That's the same as asking "Why doesn't my PC start?" and when the the Dell Support(just for an example of a support thingy :P) asks if you can send in your pc, you send in your mac... ;) |
| 01-16-2005, 01:36 PM | #15 |
i have to agree with ondizz....... you can't ask for help and give out the simplified version of the trigger (because usually those triggers always work) :) its the complex ones where you get lost, and yeah, i also had trouble with the neutral reincarnation...... it seems that the neutral reincarnation never triggers the "unit dies" and does not follow all of the "Reincarnation" rules...... weird..... i tend to avoid it :) infact, i tend to avoid most of the neutral hostile spells that are based of an "playable" spell :)))) |
