Game appears to be mis-counting units when using #CONDITION_POSITION=
Posted: Tue Aug 01, 2023 8:37 am
I have 4 seperate script blocks in popup.txt that update map symbols based on number of units within 10 hexes of Warsaw.
However, it appears to get confused on the number units within range. (or it is not updating map symbols after each unit is moved)
The pertinent script sections are:
; Blue Hash, Red Exclamation
#DISPLAY_STYLE= 2.14
; Axis have 0-3 units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [4,4] [1] [0] [<]
...
; Blue Hash, Blue Exclamation
#DISPLAY_STYLE= 2.15
; Axis have 4-15 units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [4,15] [1] [0]
...
; Blue Hash, Yellow Exclamation
#DISPLAY_STYLE= 2.16
; Axis have 16-18 units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [16,18] [1] [0]
...
; Blue Hash, Red Exclamation
#DISPLAY_STYLE= 2.14
; Axis have 19+ units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [19,19] [1] [0]
EDIT: Based on feedback from El Dorado, previous has been fixed as follows:
; Blue Hash, Red Exclamation
#DISPLAY_STYLE= 2.14
; Axis have 0-3 units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [4,4] [1] [0] [<]
...
; Blue Hash, Blue Exclamation
#DISPLAY_STYLE= 2.15
; Axis have 4+ units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [4,4] [1] [0]
...
; Blue Hash, Yellow Exclamation
#DISPLAY_STYLE= 2.16
; Axis have 16+ units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [16,16] [1] [0]
...
; Blue Hash, Red Exclamation
#DISPLAY_STYLE= 2.14
; Axis have 19+ units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [19,19] [1] [0]
NOTE: When it is done this way, it may be dependent on ordering within popup.txt
However, it appears to get confused on the number units within range. (or it is not updating map symbols after each unit is moved)
The pertinent script sections are:
; Blue Hash, Red Exclamation
#DISPLAY_STYLE= 2.14
; Axis have 0-3 units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [4,4] [1] [0] [<]
...
; Blue Hash, Blue Exclamation
#DISPLAY_STYLE= 2.15
; Axis have 4-15 units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [4,15] [1] [0]
...
; Blue Hash, Yellow Exclamation
#DISPLAY_STYLE= 2.16
; Axis have 16-18 units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [16,18] [1] [0]
...
; Blue Hash, Red Exclamation
#DISPLAY_STYLE= 2.14
; Axis have 19+ units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [19,19] [1] [0]
EDIT: Based on feedback from El Dorado, previous has been fixed as follows:
; Blue Hash, Red Exclamation
#DISPLAY_STYLE= 2.14
; Axis have 0-3 units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [4,4] [1] [0] [<]
...
; Blue Hash, Blue Exclamation
#DISPLAY_STYLE= 2.15
; Axis have 4+ units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [4,4] [1] [0]
...
; Blue Hash, Yellow Exclamation
#DISPLAY_STYLE= 2.16
; Axis have 16+ units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [16,16] [1] [0]
...
; Blue Hash, Red Exclamation
#DISPLAY_STYLE= 2.14
; Axis have 19+ units within 10 hexes of Warsaw(188,76)
#CONDITION_POSITION= 188,76 [10,10] [19,19] [1] [0]
NOTE: When it is done this way, it may be dependent on ordering within popup.txt