Your mod seems veryy interessant and complete, I will learn in scripting...
The false loop to convert BB is brillant, I have to say it's a little bit diabolic
Another brillant idea is the construction by engineers : I am reading your script below.
Lines that are in red (and blue at end) have attracted my attention : the <8> precision is not provided in the documentation of decision event : It's really interessant to know this, the precision of the effects is more better
In the documentation (that is at the beginning of the file, we find that :
#CONDITION_POSITION= Map positions that will serve to trigger the event as well as distance and
; number of Axis/Allied unit ranges as specified by 'alignment' flag
; Format: x,y [min_range, max_range] [min_units, max_units] [alignment] [aligned_country_id]
and that :
More than one #CONDITION_POSITION can be set. Distance or range checks will be based on the
; specified x,y position. For example if the x,y position is a coastal hex then range checks will
; be made on sea hexes, otherwise if it is a land hex range checks will be made on land hexes only.
; If the 'aligned_country_id' flag is set to 0 then it will check for any Axis or Allied country as
; determined by the alignment flag.
; Each #CONDITION_POSITION line will be read using OR logic.
Howewer, there is no any mention of this <8> in the documentation
I did a quick verification, that corresponds to engineers
#UNIT_ID_8= Engineer (in localization file)
How and where did you find information about this <8> ? I would be really interrested if you could share some knowledges in scripting, because I will probably need them in my attempts to mod the game in another way you do, I am interrested by tactical battles and I plane to convert the game to this direction
And in addition : with what is materialized the construction after the decision ? A ground convoy ? I noticed no any grAph modification in your mod, I suppose it's that sort of thing, no ?
your script hability is very impressive
Do you have any document note about scripting that you could communicate ? (in my own case, I take somes notes about the tips I use, to avoid to forget them)
{
#NAME= DE 88 - Japan: Build Railroad Near Nanning
#POPUP=
#MESSAGE= <<TAG_485>>
#IMAGE=
#SOUND= teletype_1.ogg, teletype_2.ogg
#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= 60
#TRIGGER= 100
#DISPLAY_ORDER= 0
; Set decision value
#DECISION= 88
#MPP_UPDOWN= -15
#MPP_TURNS= 1
#MPP_TEXT= Nanning Railroad
#NOTES=
#NOTES_POSITION= 75,45
;Set AI acceptance %
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP=
#DATE= 1941/12/07
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 228,221,198
; Railroad hex is neutral
#ALIGNMENT_POSITION= 75,45 [0]
;Set National Morale Trigger (dummy value)
#NATIONAL_MORALE_TRIGGER= 0 [0]
;Set variable conditions:
;2nd Line - Japan politically aligned with Axis and not surrendered
#VARIABLE_CONDITION= 60 [1] [100] [0]
; 1 Japanese engineer within 1 hex of railroad
#CONDITION_POSITION= 75,45 [1,1] [1,1] [1] [60] <8>
}
{