Forum Archive. A read-only snapshot of the Warfare Incorporated forums (2003–2020), preserved for historical purposes.  ·  warfareincorporated.com
Warfare Incorporated Forum

Make AND operator
Author Message
yanjchan
Developing Poster
Joined: 17 Jan 2009
Posts: 12
 Post Posted: Sun Jan 18, 2009 7:24 pm  Post subject: Make AND operator

How can i use the AND operator for conditions in a trigger?
For example:

Pvar City = 1
AND Countdown Timer = 0

not

Pvar City = 1
OR Countdown Timer = 0

which is how it is by default?
Is there any way?
Callex
Established Forum User


Joined: 17 Dec 2008
Posts: 65
Location: United Kingdom
 Post Posted: Sun Jan 18, 2009 11:06 pm  

By default all the conditions are treated as AND. I haven't found a way to use OR operators for conditions yet which is a real pain when making trigger-heavy maps.
There is a workaround using switches though; just make each OR condition in a seperate trigger and each trigger set to turn a switch on. When the switch turns on a final trigger can run the desired functions.
yanjchan
Developing Poster
Joined: 17 Jan 2009
Posts: 12
 Post Posted: Mon Jan 19, 2009 10:13 am  

Really?
That's strange.

Ha, that's the opposite of my case.
My map needs for multiple conditions to be satisfied, but for some reason it seems to be OR on mine.
Callex
Established Forum User


Joined: 17 Dec 2008
Posts: 65
Location: United Kingdom
 Post Posted: Mon Jan 19, 2009 12:24 pm  

Hmm, that IS weird :? ... maybe there is an AND/OR toggle but its very discreet? Are the little checkboxes next to your conditions ticked? I haven't found a use for them so far, maybe they work as a toggle or something...