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
Trigger mechanisms
- TheBluePhoenix
- Posts: 1498
- Joined: Thu Jul 30, 2015 5:09 pm
Trigger mechanisms
BEWARE!!!!The long lost empire of phoenicia is rising- The world is but just near the golden age,wherein men played and frolicked,without any worries at all
-
Stratego (dev)
- Site Admin
- Posts: 15822
- Joined: Fri Apr 25, 2014 9:28 pm
Re: Trigger mechanisms
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?
- 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
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?
-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?
Thanks!
Josh
Josh
- TheBluePhoenix
- Posts: 1498
- Joined: Thu Jul 30, 2015 5:09 pm
Re: Trigger mechanisms
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
Similarly , NOT is triggered when none of the conditions are satisfied
BEWARE!!!!The long lost empire of phoenicia is rising- The world is but just near the golden age,wherein men played and frolicked,without any worries at all
-
Stratego (dev)
- Site Admin
- Posts: 15822
- Joined: Fri Apr 25, 2014 9:28 pm
Re: Trigger mechanisms
exactly!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?