• 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.

Help me with my Logic Error

Status
Not open for further replies.
Level 9
Joined
Sep 28, 2004
Messages
365
  • Set Ally = False
  • Set Enemy = True
  • Set Buildings = False
When i copy text, it cuts off here. Does this mean it won't even read the rest in game when the trigger is executed?
  • Set victimGroup = (Units within pRadius of Pos matching (((((Matching unit) is alive) Equal to True) and ((Matching unit) Not equal to TargetUnit)) and ((((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to Enemy) or ((((Matching uni
Heres the full code i wrote myself.
  • Set victimGroup = (Units within Radius of Pos matching (((((Matching unit) is alive) Equal to True) and ((Matching unit) Not equal to TargetUnit)) and ((((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to Enemy) or ((((Matching unit) belongs to an ally of (Owner of Caster)) Equal to Ally) or (((Matching unit) is A structure) Equal to Building)))
The problem i encounter is. Ally units will still go into the group. What is wrong with my logic?
 
Status
Not open for further replies.
Top