Flag is not triggered
Posted: Mon Jan 10, 2022 5:23 pm
What's wrong with this code?
//Germany Annexes Poland
$ChangeTerritory
if_Date=1/1/1939
if_Country=42
if_Surrender=true
actionCountry=42
targetCountry=6
lifespan=tillTrigger
xyArea=allHexes
changeBorders
addReportTo=All
text=Germany annexes Western Poland into Greater Germany.
flag=1
$End
This second event is not triggered despite the first one is working:
//USSR moves factories
$GiveResource
if_Flag=1
xyControl=233,73,Allies
actionCountry=4
lifespan=tillTrigger
xyArea=237,74,62
addReportTo=All
text=Soviet railed factories come online in the Urals.
$End
Is it a problem in the event writing?
//Germany Annexes Poland
$ChangeTerritory
if_Date=1/1/1939
if_Country=42
if_Surrender=true
actionCountry=42
targetCountry=6
lifespan=tillTrigger
xyArea=allHexes
changeBorders
addReportTo=All
text=Germany annexes Western Poland into Greater Germany.
flag=1
$End
This second event is not triggered despite the first one is working:
//USSR moves factories
$GiveResource
if_Flag=1
xyControl=233,73,Allies
actionCountry=4
lifespan=tillTrigger
xyArea=237,74,62
addReportTo=All
text=Soviet railed factories come online in the Urals.
$End
Is it a problem in the event writing?