• 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] [GUI] Why not working?

Status
Not open for further replies.
Level 12
Joined
Feb 11, 2008
Messages
809
Heres my trigger:
  • noheroattk
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Owner of (Attacked unit)) Equal to Player 1 (Red)
      • (Owner of (Attacking unit)) Equal to Player 2 (Blue)
      • (Owner of (Attacking unit)) Equal to Player 3 (Teal)
      • (Owner of (Attacking unit)) Equal to Player 4 (Purple)
      • (Owner of (Attacking unit)) Equal to Player 5 (Yellow)
    • Actions
      • Unit - Order (Attacking unit) to Stop
yet it does not stop them from attacking each other this trigger has worked in other maps why not mine?
 
Level 7
Joined
Jan 18, 2007
Messages
180
I don't know exactly what the story is is behind the purpose of this trigger, but your conditions do not make sense, so a unit is never ordered to stop attacking.
  • (Owner of (Attacked unit)) Equal to Player 1 (Red)
  • (Owner of (Attacking unit)) Equal to Player 2 (Blue)
  • (Owner of (Attacking unit)) Equal to Player 3 (Teal)
  • (Owner of (Attacking unit)) Equal to Player 4 (Purple)
  • (Owner of (Attacking unit)) Equal to Player 5 (Yellow)
This says that the attacking unit must be owned by four different players, which is impossible. You should put those last 4 conditions in one of these:
  • Or - Any (Conditions) are true
    • Conditions
 
Level 9
Joined
Oct 17, 2007
Messages
547
If you use those conditions without the "Or" then the trigger won't run unless all of those players get attacked at once.. which is pretty much impossible at the instant the trigger checks for those conditions.
 
Status
Not open for further replies.
Top