Page 1 of 1

Questions about #VARIABLE_CONDITION

Posted: Tue Dec 18, 2018 9:37 am
by Kossatx
Hi, I have some questions about this variable:

- If I would set a #VARIABLE_CONDITION saying some country must not be at war, which would be the correct way?
- If more than 1 #VARIABLE_CONDITION are included in the same script they are supposed to be connected by the command "and"... is it possible to connect two or more #VARIABLE_CONDITION with the command "or" in the same script?
- With this script, what would happen if Persia finally join the Axis? The script will continue triggering but without effect because Persia would have reached the maximum Axis alignement?

Code: Select all

; Persia turns Axix
 {
 #NAME= Persia -> Axis
 #POPUP= Persia turns Axis
 #IMAGE=
 #SOUND=
 #FLAG= 1
 #TYPE= 2
 #AI= 0
 #LEVEL= 0
 #GV= 1[1,100]
 #LINK= 0[0]
 #TRIGGER= 1
 #COUNTRY_ID= 82
 #DATE= 1939/09/01
 ;5% mobilization increase towards Axis
 #MOBILIZATION= [5,5] [1]
 ; Set variable conditions:
 ; Germany at war
 #VARIABLE_CONDITION= 45 [1] [100] [0]
 #CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
 }

RE: Questions about #VARIABLE_CONDITION

Posted: Tue Dec 18, 2018 12:17 pm
by BillRunacre
ORIGINAL: Kossatx

Hi, I have some questions about this variable:

- If I would set a #VARIABLE_CONDITION saying some country must not be at war, which would be the correct way?

Hi Kossatx

This would signify that Germany is pro-Axis but neutral:

#VARIABLE_CONDITION= 45 [1] [0] [0]
- If more than 1 #VARIABLE_CONDITION are included in the same script they are supposed to be connected by the command "and"... is it possible to connect two or more #VARIABLE_CONDITION with the command "or" in the same script?

No, but you can have two different scripts, with one Variable in one, and the other in the other script.
- With this script, what would happen if Persia finally join the Axis? The script will continue triggering but without effect because Persia would have reached the maximum Axis alignement?

Yes, but I would suggest using the setting #TYPE= 1 unless you might want Persia to keep entering and then leaving the war.

I hope this helps! [:)]

RE: Questions about #VARIABLE_CONDITION

Posted: Tue Dec 18, 2018 1:27 pm
by Kossatx
Thanks again for your reply BillRunacre [:)]
This would signify that Germany is pro-Axis but neutral:

#VARIABLE_CONDITION= 45 [1] [0] [0]

With this setting if Germany, for example, is 10 points pro Axis, the event will trigger? I want to set the #VARIABLE_CONDITION command in order to specify "not at war", regardless its alignment would be 0 or 99 towards Axis or Allies.
- With this script, what would happen if Persia finally join the Axis? The script will continue triggering but without effect because Persia would have reached the maximum Axis alignement?

Yes, but I would suggest using the setting #TYPE= 1 unless you might want Persia to keep entering and then leaving the war.

The way I have written the script, each time it is triggered increases in 5 points the persian alignement towards Axis, but if it is changed to "TYPE 1", will only increase one time in the game this alignement, not?