Trigger mechanisms

Suggestions about the gameplay, the controls, buttons and so on.
Post Reply
User avatar
TheBluePhoenix
Posts: 1498
Joined: Thu Jul 30, 2015 5:09 pm

Trigger mechanisms

Post by TheBluePhoenix » Wed Mar 02, 2016 1:54 pm

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
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: 9418
Joined: Fri Apr 25, 2014 9:28 pm

Re: Trigger mechanisms

Post by Stratego (dev) » Wed Mar 02, 2016 7:19 pm

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?

User avatar
COOLguy
Posts: 4005
Joined: Sat Jul 12, 2014 2:58 am
Location: Nenuial, Arnor

Re: Trigger mechanisms

Post by COOLguy » Wed Mar 02, 2016 11:20 pm

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? :)
Thanks!
Josh

User avatar
TheBluePhoenix
Posts: 1498
Joined: Thu Jul 30, 2015 5:09 pm

Re: Trigger mechanisms

Post by TheBluePhoenix » Thu Mar 03, 2016 4:49 am

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
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: 9418
Joined: Fri Apr 25, 2014 9:28 pm

Re: Trigger mechanisms

Post by Stratego (dev) » Thu Mar 03, 2016 7:25 am

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!

Post Reply

Return to “Gameplay & UI”