Actions
UIDisplayMessage((PlayerGroupAll()), c_messageAreaSubtitle, "All Units Dead")
I cannot for the life of me work out where im going wrong... both of those conditions work seperately but when i try them together it just wont work. Im guessing im just not using the AND operator right.
Im trying to use the AND operator to specifiy two conditions before an event is fired.
AllSpineCrawlersDead
Events TriggerAddEventUnitDied(null)
Local Variables deadUnit = (EventUnit()) <unit>
Conditions And() cond Comparison((UnitGroupHasUnit(spineCrawlerGroup, deadUnit)), ==, true) Comparison(spineCrawlerDeath, ==, 3)
Actions UIDisplayMessage((PlayerGroupAll()), c_messageAreaSubtitle, "All Units Dead")
I cannot for the life of me work out where im going wrong... both of those conditions work seperately but when i try them together it just wont work. Im guessing im just not using the AND operator right.
Any help would be appriciated!
Just add these conditions one after another. No need to use a stupid And().
Event:
- Any time something stupid happens D:
Condition:
- Cond1 == true
- Cond2 == true
Action:
- Blow up the world
It'll only trigger if Cond1 and Cond2 are true.
By default all the conditions you add in your trigger will be united with a AND, so you don't have to put one explicit.
Oh right, so no AND... makes you wonder what the heck its actually for. Thanks alot guys :)
@Debe2233: Go
simply it is for :
(X1 || X2) && (X1 || (X3 && X2) )
:)
It is only united in things like Conditions "root" (iirc)