Why did you guys do these Mobilization 2 scripts this way?
Posted: Fri Nov 22, 2024 5:00 pm
Hope I can catch one of you before the weekend. From the vanilla scripts:
;
; This Event will apply if the triggers for the Event beneath it aren't met
{
#NAME= 2 Axis Units Near Warsaw From January 1940 (USSR->Allies)
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#GV= 1[1,100]
#LINK= 0[0]
#LEVEL= 0
#COUNTRY_ID= 116
#TRIGGER= 100
#DATE= 1940/01/01
; 2-2% mobilization increase towards Allies
#MOBILIZATION= [2,2] [2]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
; 2nd Line - Poland politically aligned with Allies and surrendered
#VARIABLE_CONDITION= 85 [2] [100] [1]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
;
; This event is to counteract the one above
{
#NAME= 2 Axis Units Near Warsaw From January 1940 (USSR->Axis)
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#GV= 1[1,100]
#LINK= 0[0]
#LEVEL= 0
#COUNTRY_ID= 116
#TRIGGER= 100
#DATE= 1940/01/01
; 2% mobilization increase towards Axis
#MOBILIZATION= [2,2] [1]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
; 2nd Line - Poland politically aligned with Allies and surrendered
#VARIABLE_CONDITION= 85 [2] [100] [1]
; 2 Axis units are within 10 hexes of Warsaw
#CONDITION_POSITION= 188,76 [10,10] [2,2] [1] [0]
}
Why is the 1st script even needed? Just make one script for +2% towards the Allies by
; 2-2% mobilization increase towards Allies
#MOBILIZATION= [2,2] [2]
[old fashioned way]
#CONDITION_POSITION= 188,76 [10,10] [0,1] [1] [0]
[new fashioned way]
#CONDITION_POSITION= 188,76 [10,10] [2,2] [1] [0] [<]
The reason I ask is because welp if I try it either of the two latter ways (without the dummy script), they don't work. This is for the Russians note, where I have required them to have their own garrisons along the border, avoiding the autospawns upon the DoW (tho for now I am autospawning their planes in a separate set of Unit scripts):
{
#NAME= Fewer than 4 Russian Units Near Warsaw From January 1940 (USSR->Axis)
#POPUP=
#IMAGE=
#SOUND= report.ogg
#FLAG= 1
#TYPE= 2
#AI= 0
#GV= 1[1,100]
#LINK= 0[0]
#LEVEL= 0
#COUNTRY_ID= 116
#TRIGGER= 100
#DATE= 1940/01/01
; 2-4% mobilization increase towards Axis
#MOBILIZATION= [2,4] [1]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
; 2nd Line - Poland politically aligned with Allies and surrendered
#VARIABLE_CONDITION= 85 [2] [100] [1]
; 3rd Line - France politically aligned with Allies and surrendered
#VARIABLE_CONDITION= 40 [2] [100] [1]
; Fewer than 4 Russian units within 7 hexes of Warsaw
#CONDITION_POSITION= 188,76 [7,7] [0,3] [2] [0]
***OR***
#CONDITION_POSITION= 188,76 [7,7] [4,4] [2] [0] [<]
}
[Corresponding Popup scripts for the on-map symbol warnings]
{
#NAME= Soviet Front Garrison Report Warsaw 1940-1942 Yes to Pact
#POPUP=
#MESSAGE= <<TAG_191>>
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
; Set link value to always trigger (dummy value)
#LINK= 0[0]
#COUNTRY_ID= 116
#TRIGGER= 100
#PRIVATE= 1
#DISPLAY_ORDER= 1
#DISPLAY_TURN= 2
#DISPLAY_STYLE= 2.13
#MESSAGE_STYLE= 0
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
#MAP_POSITION= 192,71
#MAP_POSITION= 195,72
#MAP_POSITION= 195,79
#DATE= 1940/01/01
; Berlin is in Axis hands
#ALIGNMENT_POSITION= 173,74 [1]
#VARIABLE_CONDITION= 116 [2] [0] [0]
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 40 [2] [100] [1]
; Dummy Condition Position
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
{
#NAME= Soviet Front Garrison Report Warsaw 1940-1942 Yes to Pact
#POPUP=
#MESSAGE= <<TAG_191>>
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
; Set link value to always trigger (dummy value)
#LINK= 0[0]
#COUNTRY_ID= 116
#TRIGGER= 100
#PRIVATE= 1
#DISPLAY_ORDER= 1
#DISPLAY_TURN= 2
#DISPLAY_STYLE= 2.12
#MESSAGE_STYLE= 0
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
#MAP_POSITION= 192,71
#MAP_POSITION= 195,72
#MAP_POSITION= 195,79
#DATE= 1940/01/01
; Berlin is in Axis hands
#ALIGNMENT_POSITION= 173,74 [1]
#VARIABLE_CONDITION= 116 [2] [0] [0]
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 40 [2] [100] [1]
; Fewer than 4 Russian units within 7 hexes of Warsaw
#CONDITION_POSITION= 188,76 [7,7] [4,4] [2] [0] [<]
}
So, I move at least one unit out of a given zone, the symbols dutifully and instantly flip to the warning ones, click end turn-and Russian mobilization stubbornly remains @ 28%. 2 of them depend on DEs note (Baltic States and Bessarabia), but the other two (one of which is the one above) do not.
What am I missing?
;
; This Event will apply if the triggers for the Event beneath it aren't met
{
#NAME= 2 Axis Units Near Warsaw From January 1940 (USSR->Allies)
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#GV= 1[1,100]
#LINK= 0[0]
#LEVEL= 0
#COUNTRY_ID= 116
#TRIGGER= 100
#DATE= 1940/01/01
; 2-2% mobilization increase towards Allies
#MOBILIZATION= [2,2] [2]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
; 2nd Line - Poland politically aligned with Allies and surrendered
#VARIABLE_CONDITION= 85 [2] [100] [1]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
;
; This event is to counteract the one above
{
#NAME= 2 Axis Units Near Warsaw From January 1940 (USSR->Axis)
#POPUP=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#GV= 1[1,100]
#LINK= 0[0]
#LEVEL= 0
#COUNTRY_ID= 116
#TRIGGER= 100
#DATE= 1940/01/01
; 2% mobilization increase towards Axis
#MOBILIZATION= [2,2] [1]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
; 2nd Line - Poland politically aligned with Allies and surrendered
#VARIABLE_CONDITION= 85 [2] [100] [1]
; 2 Axis units are within 10 hexes of Warsaw
#CONDITION_POSITION= 188,76 [10,10] [2,2] [1] [0]
}
Why is the 1st script even needed? Just make one script for +2% towards the Allies by
; 2-2% mobilization increase towards Allies
#MOBILIZATION= [2,2] [2]
[old fashioned way]
#CONDITION_POSITION= 188,76 [10,10] [0,1] [1] [0]
[new fashioned way]
#CONDITION_POSITION= 188,76 [10,10] [2,2] [1] [0] [<]
The reason I ask is because welp if I try it either of the two latter ways (without the dummy script), they don't work. This is for the Russians note, where I have required them to have their own garrisons along the border, avoiding the autospawns upon the DoW (tho for now I am autospawning their planes in a separate set of Unit scripts):
{
#NAME= Fewer than 4 Russian Units Near Warsaw From January 1940 (USSR->Axis)
#POPUP=
#IMAGE=
#SOUND= report.ogg
#FLAG= 1
#TYPE= 2
#AI= 0
#GV= 1[1,100]
#LINK= 0[0]
#LEVEL= 0
#COUNTRY_ID= 116
#TRIGGER= 100
#DATE= 1940/01/01
; 2-4% mobilization increase towards Axis
#MOBILIZATION= [2,4] [1]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 45 [1] [100] [0]
; 2nd Line - Poland politically aligned with Allies and surrendered
#VARIABLE_CONDITION= 85 [2] [100] [1]
; 3rd Line - France politically aligned with Allies and surrendered
#VARIABLE_CONDITION= 40 [2] [100] [1]
; Fewer than 4 Russian units within 7 hexes of Warsaw
#CONDITION_POSITION= 188,76 [7,7] [0,3] [2] [0]
***OR***
#CONDITION_POSITION= 188,76 [7,7] [4,4] [2] [0] [<]
}
[Corresponding Popup scripts for the on-map symbol warnings]
{
#NAME= Soviet Front Garrison Report Warsaw 1940-1942 Yes to Pact
#POPUP=
#MESSAGE= <<TAG_191>>
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
; Set link value to always trigger (dummy value)
#LINK= 0[0]
#COUNTRY_ID= 116
#TRIGGER= 100
#PRIVATE= 1
#DISPLAY_ORDER= 1
#DISPLAY_TURN= 2
#DISPLAY_STYLE= 2.13
#MESSAGE_STYLE= 0
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
#MAP_POSITION= 192,71
#MAP_POSITION= 195,72
#MAP_POSITION= 195,79
#DATE= 1940/01/01
; Berlin is in Axis hands
#ALIGNMENT_POSITION= 173,74 [1]
#VARIABLE_CONDITION= 116 [2] [0] [0]
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 40 [2] [100] [1]
; Dummy Condition Position
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
{
#NAME= Soviet Front Garrison Report Warsaw 1940-1942 Yes to Pact
#POPUP=
#MESSAGE= <<TAG_191>>
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
; Set link value to always trigger (dummy value)
#LINK= 0[0]
#COUNTRY_ID= 116
#TRIGGER= 100
#PRIVATE= 1
#DISPLAY_ORDER= 1
#DISPLAY_TURN= 2
#DISPLAY_STYLE= 2.12
#MESSAGE_STYLE= 0
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
#MAP_POSITION= 192,71
#MAP_POSITION= 195,72
#MAP_POSITION= 195,79
#DATE= 1940/01/01
; Berlin is in Axis hands
#ALIGNMENT_POSITION= 173,74 [1]
#VARIABLE_CONDITION= 116 [2] [0] [0]
#VARIABLE_CONDITION= 45 [1] [100] [0]
#VARIABLE_CONDITION= 40 [2] [100] [1]
; Fewer than 4 Russian units within 7 hexes of Warsaw
#CONDITION_POSITION= 188,76 [7,7] [4,4] [2] [0] [<]
}
So, I move at least one unit out of a given zone, the symbols dutifully and instantly flip to the warning ones, click end turn-and Russian mobilization stubbornly remains @ 28%. 2 of them depend on DEs note (Baltic States and Bessarabia), but the other two (one of which is the one above) do not.
What am I missing?