Page 1 of 1

Change order clarification

Posted: Wed Oct 19, 2022 9:45 am
by PanzerMike
Hi Alvaro,

In the _ChangeOrders.txt is this piece of script:
//North Africa remove Allied air holds in 1942 if no axis
$ChangeOrder
if_Date=1/1/1942
if_Country=7
if_Alliance=Axis
lifespan=tillTrigger
actionCountry=1
xyArea=193,10,0
xyArea=193,18,0
$End


If I read this correctly, it will start checking in 1942 whether Italy is part of the Axis. If Italy is part of the Axis, the two Allied air holds will be removed.

This makes no sense to me. I can imagine that the moment Italy is no longer part of the Axis (because it surrendered), these Allied air holds are no longer needed. But with the above script, it will fire on 1/1/1942 if Italy is Axis and remove the air holds and the event will never trigger again.

Am I misunderstanding it or is this script faulty?

Re: Change order clarification

Posted: Wed Oct 19, 2022 1:43 pm
by AlvaroSousa
Yea I think I meant surrender there no axis. I'll put it on the list. It is meant to help thwart an invasion.

Re: Change order clarification

Posted: Wed Oct 19, 2022 2:03 pm
by PanzerMike
Yeah, I figured as much :mrgreen:
Please keep a good record of the changes for the next patch so that we can keep mods in synch!

And I am changing it in my mod to:
//North Africa remove Allied air holds in 1942 if no axis
$ChangeOrder
if_Date=1/1/1942
if_Country=7
//if_Alliance=Axis
if_Surrender=true
lifespan=tillTrigger
actionCountry=1
xyArea=193,10,0
xyArea=193,18,0
$End

Re: Change order clarification

Posted: Wed Oct 19, 2022 2:54 pm
by AlvaroSousa
I copy the post directly so I can reread the issue in full.