Page 1 of 1

Trigger mechanisms

Posted: Wed Mar 02, 2016 1:54 pm
by TheBluePhoenix
I write this topic to introduce a technique/mechanism which has vast benefits and will save a lot of time. Though this idea has been discussed, i am compiling everything and making a topic of its own
AND mechanism- it will be a trigger having multiple conditions and will come into effect iff all these become true simultaneously(this how the trigger editor works at present)
OR mechanism- it will also contain multiple conditions but the effects are triggered when any of the condn is fulfilled(this is what is new and needs to be implemented as a possible option to the AND mechanism)
NOT mechanism- reversing the condn of a specific trigger-eg if condn is object at spot x then not of it will be object anywhere but at spot x
I will be putting more as and when i feel i need them

Re: Trigger mechanisms

Posted: Wed Mar 02, 2016 7:19 pm
by Stratego (dev)
from this i imagine a choice list with 3 elements
- AND
- OR
- NOT

by default all conditions (and all existing conditions) are in AND mode

if designer changes one condition to NOT:
- all conditions will be evaluated as "AND"s and the one set to NOT also with AND but the check of that condition is negated.

if designer has A, B ,C conditions and one of them set to OR (B):
result will be true if (A=true and C=true) or B=true

also if designer has A, B ,C, D conditions and two of them set to OR (B and D):
result will be true if (A=true and C=true) or (B=true) or (D=true)


do i understand it correctly?

Re: Trigger mechanisms

Posted: Wed Mar 02, 2016 11:20 pm
by COOLguy
No I think the NOT is like a negative AND . So:
-A = AND
-B = NOT
-C = AND

then:

-A = true
-B = false
-C = true
-whole trigger then = true

Or is that what you were already saying? :)

Re: Trigger mechanisms

Posted: Thu Mar 03, 2016 4:49 am
by TheBluePhoenix
The OR one is that the effects are triggered if any one of them are true.so if a unit dies when it is at any of 5 areas can be triggered using or.for AND , the trigger will take 5 seperate triggers and lot more complications.
Similarly , NOT is triggered when none of the conditions are satisfied

Re: Trigger mechanisms

Posted: Thu Mar 03, 2016 7:25 am
by Stratego (dev)
COOLguy wrote:No I think the NOT is like a negative AND . So:
-A = AND
-B = NOT
-C = AND

then:

-A = true
-B = false
-C = true
-whole trigger then = true

Or is that what you were already saying? :)
exactly!