• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Whats the problem with this trigger?

Status
Not open for further replies.
Level 3
Joined
May 12, 2008
Messages
28
This trigger doesn't seem to work

  • Hunter Attacks
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacked unit)) Equal to Farmer
      • (Unit-type of (Attacking unit)) Equal to Kurgath the Hunter
      • (Unit-type of (Attacking unit)) Equal to Jubai the Hunter
      • (Unit-type of (Attacking unit)) Equal to Tojara the Hunter
      • (Unit-type of (Attacking unit)) Equal to Kojima the Hunter
      • (Unit-type of (Attacking unit)) Equal to Mazuru the Hunter
    • Actions
      • Unit - Kill (Attacked unit)
      • Unit - Kill (Dying unit)
It's supposed to make it so that if the Farmer unit is attacked by one of the hunters it will instantly die rather than wait for its life to get to 0.
 
Level 6
Joined
Mar 15, 2005
Messages
112
  • Conditions
  • (Unit-type of (Attacked unit)) Equal to Farmer
  • Multiple ConditionsOr - Any (Conditions) are true
    • Conditions
    • (Unit-type of (Attacking unit)) Equal to Kurgath the Hunter
    • (Unit-type of (Attacking unit)) Equal to Jubai the Hunter
    • (Unit-type of (Attacking unit)) Equal to Tojara the Hunter
    • (Unit-type of (Attacking unit)) Equal to Kojima the Hunter
    • (Unit-type of (Attacking unit)) Equal to Mazuru the Hunter
Attacking Unit can't be all these units at the same time right? Use multiple OR conditions.
 
Level 9
Joined
Jan 23, 2008
Messages
384
OK first of all this trigger lacks hatred ... you cannot kill a dying unit ... sounds logic ...

  • Hunter Attacks
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacked unit)) Equal to Farmer
      • If Any (Conditions) are true
        • Conditions
          • (Unit-type of (Attacking unit)) Equal to Kurgath the Hunter
          • (Unit-type of (Attacking unit)) Equal to Jubai the Hunter
          • (Unit-type of (Attacking unit)) Equal to Tojara the Hunter
          • (Unit-type of (Attacking unit)) Equal to Kojima the Hunter
          • (Unit-type of (Attacking unit)) Equal to Mazuru the Hunter
    • Actions
      • Farmer = (Attacked unit)
      • Unit - Kill Hunter
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
  • Events
    • Unit - A unit Is attacked
  • Conditions
    • (Unit-type of (Attacked unit)) Equal to Farmer
    • If Any (Conditions) are true
      • Conditions
        • (Unit-type of (Attacking unit)) Equal to Kurgath the Hunter
        • (Unit-type of (Attacking unit)) Equal to Jubai the Hunter
        • (Unit-type of (Attacking unit)) Equal to Tojara the Hunter
        • (Unit-type of (Attacking unit)) Equal to Kojima the Hunter
        • (Unit-type of (Attacking unit)) Equal to Mazuru the Hunter
  • Actions
    • Unit - Kill (Attacked Unit)
 
  • Events
    • Unit - A unit Is attacked
  • Conditions
    • (Unit-type of (Triggering Unit)) Equal to Farmer
    • Or Any (Conditions) are true
      • Conditions
        • (Unit-type of (Attacking Unit)) Equal to Kurgath the Hunter
        • (Unit-type of (Attacking Unit)) Equal to Jubai the Hunter
        • (Unit-type of (Attacking Unit)) Equal to Tojara the Hunter
        • (Unit-type of (Attacking Unit)) Equal to Kojima the Hunter
        • (Unit-type of (Attacking Unit)) Equal to Mazuru the Hunter
  • Actions
    • Unit - Kill (Triggering Unit)
 
Status
Not open for further replies.
Top