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

Warplan is a World War 2 simulation engine. It is a balance of realism and playability incorporating the best from 50 years of World War 2 board wargaming.

Moderator: AlvaroSousa

Post Reply
Isoko
Posts: 84
Joined: Fri May 19, 2017 1:43 pm

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

Post 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
User avatar
AlvaroSousa
Posts: 12107
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

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

Post 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.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
Hoyt Burrass
Posts: 339
Joined: Tue Jun 29, 2004 9:27 pm
Location: Montgomery, Alabama

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

Post by Hoyt Burrass »

Comment Deleted
Roll Tide
Post Reply

Return to “WarPlan”