| 06-29-2004, 05:29 PM | #1 |
Right now, i am having a problem with a trigger. There are 3 parts to the whole trigger category, but just one trigger isn't working. Code:
Redemption
Events
Unit - A unit Dies
Conditions
(battle arena <gen> contains (Triggering unit)) Equal to True
((Triggering unit) is A Hero) Equal to False
(Owner of (Triggering unit)) Equal to Neutral Hostile
(Killing unit) Equal to (Picked unit)
(Owner of (Killing unit)) Equal to (Picked player)
Actions
Unit - Pause all units
Game - Display to (All players) the text: The Hero has won! T...
Wait 10.00 seconds
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
Wait 3.00 seconds
Unit - Move (Killing unit) instantly to (Center of Transport end <gen>)
Special Effect - Destroy (Last created special effect)
Unit - Unpause all units
Trigger - Turn off Defeat <gen>
Trigger - Turn on Begin Duel <gen>
Trigger - Turn off (This trigger)I have tried several different things, but none have worked. If it helps, here is how the trigger works: A player's hero dies, and it is sent to the Redemption Arena. Depending on the level of the hero, a different opponite will spawn for it to kill. If the hero win, they are teleported back to Dalaran. However, if they lose, the go back to Dalaran, but all of their gold and lumber is taken away. The trigger i have above is the Redemption trigger, which is the trigger that is not working. The way i want it to work should right there, but for those who can't see it, i will tell you. With this trigger, it is the "winning" trigger. I want it to work so that when the monster that spawned dies, the hero that killed it will be teleported back to Dalaran. However, it is not working like that. When i test it, i kill the monster, and nothing after that happens. Can i please get a little help here? |
| 06-29-2004, 05:36 PM | #2 |
It's your use of "Picked Player" and "Picked Unit". your using that wrong, that's not what its for. Get rid of the stuff with picked player/unit in it, or replace it with Triggering/Killing/some-other-event-respone. |
| 06-29-2004, 06:00 PM | #3 |
Well, the problem is that the event is specifiying that hte unit owned by neutral hostile dies. That would make it neutral hostile unit the triggering unit. So, i can't use that. Right now, i am trying ot use the killing unit function, but... Hold on. i just had a lightbulb. brb. |
| 06-29-2004, 06:08 PM | #4 |
I got it to work. I figured out that 2 of the conditions were the cause. The 2 conditions; owner of killing unit is equal to picked player and killing unit equal to picked unit, were not working with the actions that i had. So, i removed them. Low and behold, it worked. Thanks for the help anyway ForgottenLight. |
| 06-29-2004, 06:16 PM | #5 |
That's what I was trying to tell you, there was no "picked player/unit" in those conditions, so they defaulted to false, meaning that the trigger could never run, I guess I should have been more specific, but you got it anyway. |
| 06-30-2004, 06:46 AM | #6 |
And, you got a rep for helping :-) |
