Why my popup script does not fire ?
Posted: Sun Dec 07, 2025 3:39 pm
I am trying to implement a popup message script in my mod.
The function of the popup is to ask player to verify victory conditions (These conditions are special, and explained in the readme : they are external of the game, because in battles, victory conditions depend of moral + losses)
I have written this script :
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; POPUP EVENTS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;VICTORY CONDITIONS VERIFICATION
;
{
#NAME= VICTORY CONDITIONS VERIFICATION
#POPUP= <<TAG_1>>
#MESSAGE= VERIFY IF VICTORY CONDITIONS OF CURRENT ARE SATISFIED (See readme of the mod)
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0 ; Level game has to be at least "green"
#GV= 1[1,100]
#LINK= 0[0]
#COUNTRY_ID= 59 ; Italy is Roman army
#TRIGGER= 100
#PRIVATE= 0
#DISPLAY_ORDER= 1
#DISPLAY_TURN= 1
#DISPLAY_STYLE= 0
#MESSAGE_STYLE= 0
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
#MAP_POSITION=25,25 ; center of screen
#DATE= 0001/05/1
#ALIGNMENT_POSITION= 50,10 [1] ; coordinates of the army roman camp, that is Italy (Axis)
#VARIABLE_CONDITION= 59 [1] [100] [0] ; Italy in Axis side and not surrended
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0] ; dummy condition, always satisfied
}
But it does not "fire". What is wrong in my text script ? (I suspect that my date is wrong : I should have set the date of beginning and not the date of end battle. But when I change the date and set 1 in place of 3, I have same result : script does not "fire", and it should, I think)
I have verified thet the box of the script was checked in scripts window : it's not the origin of pb
I tried to change the type of the script (3 in place of 2, but same result : script does not fire
The script appears ok in the editor when I use the button "View"
The function of the popup is to ask player to verify victory conditions (These conditions are special, and explained in the readme : they are external of the game, because in battles, victory conditions depend of moral + losses)
I have written this script :
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; POPUP EVENTS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;VICTORY CONDITIONS VERIFICATION
;
{
#NAME= VICTORY CONDITIONS VERIFICATION
#POPUP= <<TAG_1>>
#MESSAGE= VERIFY IF VICTORY CONDITIONS OF CURRENT ARE SATISFIED (See readme of the mod)
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 0
#LEVEL= 0 ; Level game has to be at least "green"
#GV= 1[1,100]
#LINK= 0[0]
#COUNTRY_ID= 59 ; Italy is Roman army
#TRIGGER= 100
#PRIVATE= 0
#DISPLAY_ORDER= 1
#DISPLAY_TURN= 1
#DISPLAY_STYLE= 0
#MESSAGE_STYLE= 0
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
#MAP_POSITION=25,25 ; center of screen
#DATE= 0001/05/1
#ALIGNMENT_POSITION= 50,10 [1] ; coordinates of the army roman camp, that is Italy (Axis)
#VARIABLE_CONDITION= 59 [1] [100] [0] ; Italy in Axis side and not surrended
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0] ; dummy condition, always satisfied
}
But it does not "fire". What is wrong in my text script ? (I suspect that my date is wrong : I should have set the date of beginning and not the date of end battle. But when I change the date and set 1 in place of 3, I have same result : script does not "fire", and it should, I think)
I have verified thet the box of the script was checked in scripts window : it's not the origin of pb
I tried to change the type of the script (3 in place of 2, but same result : script does not fire
The script appears ok in the editor when I use the button "View"