[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?
 
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
 
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.
Back
Top