And/Or condition for RUS EvalUnqUnit event
Posted: Sun Oct 19, 2014 3:03 am
I have a question on an event I am creating for RUS. Basically I have created a locked 2 star general in Moscow. If any unlocked 2 star general is killed or wounded in the game, then I want to unlock the 2 star general in Moscow. He represents a replacement for the killed or wounded 2 star general.
Here is the event:
-----------------------------------------------
Conditions
EvalUnqUnit = uni_RED_Kork2; 0; [NOT]
EvalUnqUnit = uni_RED_Mezheninov2; 0; [NOT]
EvalUnqUnit = uni_RED_Uborevich2; 0; [NOT]
EvalUnqUnit = uni_RED_Gorodovikov2; 0; [NOT]
EvalUnqUnit = uni_RED_Sollogub2; 0; [NOT]
Actions
SelectUnqSubUnits = I.I. Vatzetis
ChangeFixing = 0
DescEvent = xxxx
EndEvent
-------------------------------------------------
My question has to do with the conditions. I am checking the condition of five 2 star general which I have listed using EvalUnqUnit. For example, "uni_RED_Kork2; 0;" is a check to see if General Kork is present and unlocked. The [NOT] indicates the condition is false if General Kork is present and unlocked. So all conditions will read false if each general is present and unlocked, thus not dead or wounded. All conditions reading as false will not activate the action.
My question is whether one single True condition is enough to activate the action or if all conditions must be true to activate the condition?
I can't see how the script differentiates between an "And" command or an "Or" command. If the script reads as "And", then all conditions must be true to activate the action. If the script reads as "Or", then only one condition must be true to activate the action. And I want the conditions read as an "Or". If any one general is dead or wounded, I want the action activated to unlock the replacement 2 star general.
Can anyone help me out on this one? What am I missing here?
Here is the event:
-----------------------------------------------
Conditions
EvalUnqUnit = uni_RED_Kork2; 0; [NOT]
EvalUnqUnit = uni_RED_Mezheninov2; 0; [NOT]
EvalUnqUnit = uni_RED_Uborevich2; 0; [NOT]
EvalUnqUnit = uni_RED_Gorodovikov2; 0; [NOT]
EvalUnqUnit = uni_RED_Sollogub2; 0; [NOT]
Actions
SelectUnqSubUnits = I.I. Vatzetis
ChangeFixing = 0
DescEvent = xxxx
EndEvent
-------------------------------------------------
My question has to do with the conditions. I am checking the condition of five 2 star general which I have listed using EvalUnqUnit. For example, "uni_RED_Kork2; 0;" is a check to see if General Kork is present and unlocked. The [NOT] indicates the condition is false if General Kork is present and unlocked. So all conditions will read false if each general is present and unlocked, thus not dead or wounded. All conditions reading as false will not activate the action.
My question is whether one single True condition is enough to activate the action or if all conditions must be true to activate the condition?
I can't see how the script differentiates between an "And" command or an "Or" command. If the script reads as "And", then all conditions must be true to activate the action. If the script reads as "Or", then only one condition must be true to activate the action. And I want the conditions read as an "Or". If any one general is dead or wounded, I want the action activated to unlock the replacement 2 star general.
Can anyone help me out on this one? What am I missing here?