Page 1 of 1

Please tell me 1939 events scripts USSR moves factories.Bug?

Posted: Sun Nov 24, 2019 1:38 am
by Isoko
I check events scripts.
//USSR moves factories
$GiveResource
if_Date=8/1/1941
xyControl=206,59,Allies
actionCountry=4
lifespan=once
xyArea=206,59,28
addReportTo=Allies
text=Soviet rails factories away from key industrial areas reducing production by 5.
$End

I changed it as follows.
if_Date=10/1/1939
Script didnt work.

Again I changed as follows.
if_Date=10/1/1939
lifespan=tillTrigger
Script worked.
Is lifespan=once a bug?

There is another script.(USSR moves factories)
//USSR moves factories
$GiveResource
if_Date=9/1/1941
xyControl=233,73,Allies
actionCountry=4
lifespan=once
xyArea=187,77,28
addReportTo=Allies
text=Soviet rails factories away from key industrial areas reducing production by 5.
$End

RE: Please tell me 1939 events scripts USSR moves factories.Bug?

Posted: Sun Nov 24, 2019 12:52 pm
by AlvaroSousa
Did you "load all scripts" when you saved

The once lifespan should check only one time after the date is reached and discard the script.

It doesn't seem to be working. I just tested myself. Thanks for spotting this. I will get it fixed.

RE: Please tell me 1939 events scripts USSR moves factories.Bug?

Posted: Sun Nov 24, 2019 1:19 pm
by Hoyt Burrass
Comment Deleted