Questions about #VARIABLE_CONDITION

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

Questions about #VARIABLE_CONDITION

Post 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]
 }
User avatar
BillRunacre
Posts: 6890
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Questions about #VARIABLE_CONDITION

Post 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! [:)]
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

RE: Questions about #VARIABLE_CONDITION

Post 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?
Post Reply

Return to “Scenario Design and Modding”