1°/ I did learn that concerning strength scripts, the negative reductions or positive adjustements are set in relative values (%)
2°/ It seems that it's not the same for supply scripts : these scripts cause reductions to resources, but these reduction are not exprimed in relative values, they are exprimed in absolute values
Example :
{
#NAME= Norwegian Forces Damage The Rail Network As They Retire Into The Hinterland
#POPUP= <<TAG_1>>
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 643[1]
#COUNTRY_ID= 112
#ALIGNMENT_ID= 0
#FLAG_ID= 78
#TRIGGER= 100
#SEASON_FLAG= 0
#DATE= 1940/04/14
#SOURCE_POSITION=
#DESTINATION_RESOURCE= 167,48 [1,3]
#DESTINATION_RESOURCE= 174,28 [1,3]
#VARIABLE_CONDITION= 112 [2] [100] [0]
#VARIABLE_CONDITION= 78 [2] [100] [1]
I suppose that 1,3 values can not be 1% and 3%
Am I right ?
In addition, I have please another question here : (oil, oil, oil... I am swimming in the oil
https://forums.matrixgames.com/viewtopi ... 6#p5294206
I am also studying the brillant system created By Crispy in Fall Weiss mod to represent the lack of oil for Axis, that is reproduced here : (combination of decision scripts and supply scripts)
DECISIONS SCRIPTS
{
#NAME= DE 382 - Germany: Synthetic Oil (AI - 50% Yes)
#POPUP=
#MESSAGE= Führerhauptquartier %N%NSynthetic Oil Production %N%NMein Führer, despite being one of the most powerful industrial nations on earth, we entirely lack oil reserves for the war ahead. %N%NWe have two choices: increase our production of synthetic oil from coal of which our nation has an abundance or secure oil through conquest. %N%NIf we are to significantly ramp up our production of synthetic oil to support our long term strategic aims we must invest in these refineries. Failing to do so may hamper our war efforts in the future. %N%NMein Führer, we await your orders, should we significantly invest in synthetic oil production (YES) or rely on capturing accessible oil fields incase of an extended period of war? The investment will cost 15 MPP for 15 turns.
#IMAGE=
#SOUND= teletype_1.ogg, teletype_2.ogg
#FLAG= 1
#TYPE= 1
#AI= 0
#LEVEL= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
#LINK= 0[0]
#COUNTRY_ID= 45
#TRIGGER= 100
#DISPLAY_ORDER= 0
; Set decision value
#DECISION= 382
#MPP_UPDOWN= -15
#MPP_TURNS= 15
#MPP_TEXT= Synthetic Oil
#NOTES= %N%NIf you select (NO) to this decision, should Germany fail to capture the Soviet oil fields in the Caucasus region by the end of 1942, the frequency of Axis oil shortages which will hamper German income will increase in frequency until the oil fields are secured.
#NOTES_POSITION= 173,74
; Set AI acceptance % (AI will accept 50% of the time)
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP=
#DATE= 1939/12/31
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
;Set Friendly Position (Berlin)
#ALIGNMENT_POSITION= 173,74 [1]
;Set National Morale Trigger (dummy value)
#NATIONAL_MORALE_TRIGGER= 0 [0]
; Set variable conditions:
; 1st Line - Germany politically aligned with Axis and Fully Active
#VARIABLE_CONDITION= 45 [1] [100] [0]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
{
#NAME= DE 871 - Russia: Dummy Event To Allow Axis Oil Shortages (AI - 100% Yes)
#POPUP=
#MESSAGE=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#COUNTRY_ID= 116
#TRIGGER= 100
#DISPLAY_ORDER= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
; Set link value to always trigger (dummy value)
#LINK= 382[0]
; Set decision value (1st internally stored decision)
#DECISION= 871
#MPP_UPDOWN= 0
#MPP_TURNS= 0
#MPP_TEXT=
#NOTES=
#NOTES_POSITION=
; Set AI acceptance % (AI will accept 100% of the time)
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP=
#DATE= 1943/01/01
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; Baku is in Allied hands
#ALIGNMENT_POSITION= 243,104 [2]
; Baku is in Allied hands
#ALIGNMENT_POSITION= 244,105 [2]
; Grozny is in Allied hands
#ALIGNMENT_POSITION= 235,97 [2]
;Set National Morale Trigger (dummy value)
#NATIONAL_MORALE_TRIGGER= 0 [0]
; Set variable conditions:
; 1st Line - USSR politically aligned with Allies and Fully Active
#VARIABLE_CONDITION= 116 [2] [100] [0]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
{
#NAME= DE 381 - Russia: Dummy Event To Allow Axis Oil Shortages (AI - 100% Yes)
#POPUP=
#MESSAGE=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#COUNTRY_ID= 116
#TRIGGER= 100
#DISPLAY_ORDER= 0
; Set global variable condition to always trigger (dummy value)
#GV= 1[1,100]
; Set link value to always trigger (dummy value)
#LINK= 382[1]
; Set decision value (1st internally stored decision)
#DECISION= 381
#MPP_UPDOWN= 0
#MPP_TURNS= 0
#MPP_TEXT=
#NOTES=
#NOTES_POSITION=
; Set AI acceptance % (AI will accept 100% of the time)
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP=
#DATE= 1943/01/01
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; Baku is in Allied hands
#ALIGNMENT_POSITION= 243,104 [2]
; Baku is in Allied hands
#ALIGNMENT_POSITION= 244,105 [2]
; Grozny is in Allied hands
#ALIGNMENT_POSITION= 235,97 [2]
;Set National Morale Trigger (dummy value)
#NATIONAL_MORALE_TRIGGER= 0 [0]
; Set variable conditions:
; 1st Line - USSR politically aligned with Allies and Fully Active
#VARIABLE_CONDITION= 116 [2] [100] [0]
; Dummy condition position (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
SUPPLY SCRIPTS
{
#NAME= Oil Shortages Hamper Axis Economies
#POPUP= Oil Shortages Hamper Axis Economies
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 871[1]
#COUNTRY_ID= 116
#ALIGNMENT_ID= 0
#FLAG_ID= 45
#TRIGGER= 15
#SEASON_FLAG= 0
#DATE= 1943/01/01
#SOURCE_POSITION=
#DESTINATION_RESOURCE= 161,77 [2,5]
#DESTINATION_RESOURCE= 162,78 [2,5]
#DESTINATION_RESOURCE= 161,83 [2,5]
#DESTINATION_RESOURCE= 174,82 [2,5]
#DESTINATION_RESOURCE= 160,79 [2,3]
#DESTINATION_RESOURCE= 173,79 [2,3]
#DESTINATION_RESOURCE= 180,79 [2,3]
#DESTINATION_RESOURCE= 168,83 [2,3]
#VARIABLE_CONDITION= 116 [2] [100] [0]
#VARIABLE_CONDITION= 45 [1] [100] [0]
}
{
#NAME= Oil Shortages Hamper Axis Economies
#POPUP= Oil Shortages Hamper Axis Economies
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 381[1]
#COUNTRY_ID= 116
#ALIGNMENT_ID= 0
#FLAG_ID= 45
#TRIGGER= 10
#SEASON_FLAG= 0
#DATE= 1943/01/01
#SOURCE_POSITION=
#DESTINATION_RESOURCE= 161,77 [2,5]
#DESTINATION_RESOURCE= 162,78 [2,5]
#DESTINATION_RESOURCE= 161,83 [2,5]
#DESTINATION_RESOURCE= 174,82 [2,5]
#DESTINATION_RESOURCE= 160,79 [2,3]
#DESTINATION_RESOURCE= 173,79 [2,3]
#DESTINATION_RESOURCE= 180,79 [2,3]
#DESTINATION_RESOURCE= 168,83 [2,3]
#VARIABLE_CONDITION= 116 [2] [100] [0]
#VARIABLE_CONDITION= 45 [1] [100] [0]
}
I noticed that Crispy had to use 2 combinated systems of decisions, to be able to use ALIGNEMENT POSITION (concerning Caucasian oil in allied hands). He dis use DE 382 for initial decision (to invest or not in synthetic oil), and he dis use DE 381 and DE 871 to envisage DECISION = YES and DECISION = NO
And then, he did use 381 (YES to 382) and 871 (NO to 382) in 2 supply scripts
He had to do that because supply scripts do not contain "ALIGNEMENT POSITION" line, and these lines were needed to modelize the fact that caucasian oil was in allied hands and not in Axis hands : so, Crispy had to solve this lack with the tip of "double decision"
Reading this system, I asked me a question : Why did Hubert disperse all "CONDITIONS/EFFECTS line #" in lot of different type scripts ? It would have been more interesting and easy for users to create one unic type of script, that would have contained all "lines #" that are in the script system : user would have just let empty the "lines #" he wanted not to use (scripts would have been more polyvalents, or he could have insert after "=" a specific symbol that would have neutralized the line = more flexibility for users)
In the actual situation , user has to disperse his scripts in lot of files : DECISIONS, SUPPLY, STRENGTH, etc
But perhaps is it due to the fact it's more easy for the program to read scripts in lot of different script files, than in one unique script file ?