• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

whats wrong with my trigger not working :S

Status
Not open for further replies.
Level 19
Joined
Feb 15, 2008
Messages
2,184
  • Good revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
      • (Owner of (Dying unit)) Equal to Player 2 (Blue)
      • (Owner of (Dying unit)) Equal to Player 3 (Teal)
      • (Owner of (Dying unit)) Equal to Player 4 (Purple)
      • (Owner of (Dying unit)) Equal to Player 5 (Yellow)
      • (Owner of (Dying unit)) Equal to Player 6 (Orange)
    • Actions
      • Wait 10.00 seconds
      • Hero - Instantly revive (Dying unit) at (Center of REVIVE Good <gen>), Show revival graphics
its pretty wierd but he not revive :S duno why can sum oen explain why the hero not coming back?
 
Level 17
Joined
May 6, 2008
Messages
1,598
Because it need to fill every conditions. So if the unit is owned by player 2,3,4,5,6 and is a hero.


  • Revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • Or - Any (Conditions) are true
        • Conditions
          • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
          • (all your conditions here)
    • Actions
      • -------- Your actions here --------
This should work.
 
Level 17
Joined
Apr 11, 2007
Messages
1,817
Likely thing is another unit is dying during the 10 second wait.

EDIT: Huurka, (Or - Conditions) would make it so ANY unit owned by the players would be revived. Say for example they had an item carrier and someone teamkilled that in the 10 seconds, the item carrier would revive.

You could try an IF/THEN/ELSE(Multiple Functions) for this aswell
 
Level 19
Joined
Feb 15, 2008
Messages
2,184
its still not working WTF

i made it liek this now...
  • Good revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
      • Or - Any (Conditions) are true
        • Conditions
      • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
      • (Owner of (Triggering unit)) Equal to Player 3 (Teal)
      • (Owner of (Triggering unit)) Equal to Player 4 (Purple)
      • (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
      • (Owner of (Triggering unit)) Equal to Player 6 (Orange)
    • Actions
      • Wait 10.00 seconds
      • Hero - Instantly revive (Dying unit) at (Center of REVIVE Good <gen>), Show revival graphics

omfg wtf
 
Level 17
Joined
May 6, 2008
Messages
1,598
Put them in the or conditions, like I did above. /facepalm.

Kaitech, if you even could read my trigger, it would check if the unit is a hero, if that is true it would do any of the under conditions.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
You didn't put the player conditions INSIDE the or statement so it's exactly the same thing like it was before.
Grab them onto the or line.

Other then that, do not use Dying Unit for triggers like this as it is a global and it is overwritten every time a unit dies. This means that if 2 units die with less then 10 seconds in between, it will only revive the second one.
Instead, use Triggering Unit which is a local and creates a new instance for each unit that dies.

Also, people tend to say that Center of Region leaks a location (point), so you'd better set a point variable to the center of your region, revive the unit with the variable's location, and then destroy the location with this custom script: call RemoveLocation(udg_YourVariableName).
 
Status
Not open for further replies.
Top