Page 1 of 1
Couple editing questions
Posted: Fri Jun 04, 2021 9:07 pm
by stjeand
Trying to gift the Japanese some LC on turn 2...
Added:
$ModifyCountry
if_Date=12/21/1941
lifespan=once
actionCountry=8
text=Landing Craft available after return from use.
landingCraft=20
$End
To the event file but it kicks off...I tried the lifespan=tillTrigger too and still no.
Loop file
Changed to:
//loop construct. Auto adapts for land/air/naval
//enter x, y .... exit x, y ..... delay in turns..... which side can use 0=all, 1=axis, 2=allies
0,51,104,2,2,2
104,0,2,51,2,2
106,0,188,86,2,2
188,80,106,2,2,2
But both sides can still use it and it takes 1 turn.
What am I missing?
RE: Couple editing questions
Posted: Sat Jun 05, 2021 2:13 am
by ago1000
Did you "load all scripts" before saving in the editor? Simply changing the files and starting the game won't load the changes into the game.
I know this works for gifting the landing craft.
$ModifyCountry
if_Date=12/7/1941
actionCountry=8
lifespan=tillTrigger
landingCraft=20
addReportTo=Axis
text=20 landing craft added to Japanese pool
$End
$ModifyCountry
if_Date=12/21/1941
actionCountry=8
lifespan=tillTrigger
landingCraft=20
addReportTo=Axis
text=20 landing craft added to Japanese pool
$End
Your loops syntax is correct.

RE: Couple editing questions
Posted: Sat Jun 05, 2021 7:22 am
by stjeand
I was wondering what that button was for. Okay will try that thanks.
RE: Couple editing questions
Posted: Sat Jun 05, 2021 4:36 pm
by stjeand
Loops work...event does not.
Still working on it.
Thanks.
RE: Couple editing questions
Posted: Sat Jun 05, 2021 6:25 pm
by ago1000
I'm wondering if the date needs to be 12/7/1941 for turn 2. The commands I gave worked for me. I changed the starting LC from 200 to 20. Then typed in the above code I gave above. I simply changed the dates.
Here is the vid:
https://www.youtube.com/watch?v=cgKcq7V ... dgamer0100
RE: Couple editing questions
Posted: Sun Jun 06, 2021 9:55 am
by AlvaroSousa
Add this line to the script. Then the text appears.
addReportTo=Axis
RE: Couple editing questions
Posted: Sun Jun 06, 2021 12:31 pm
by stjeand
OKAY I figured out what I was doing wrong...
The Date is "after"...so when I put 12/21 I thought that is when they would arrive...but actually it was the turn after.
So 12/7/41 says...this event will trigger next turn.
RE: Couple editing questions
Posted: Sun Jun 06, 2021 7:42 pm
by ago1000
ORIGINAL: AlvaroSousa
Add this line to the script. Then the text appears.
addReportTo=Axis
You wouldn't happen to have any set scripts? setLandingCraft = 20. set value to 20 independent of the previous value?
RE: Couple editing questions
Posted: Tue Jun 08, 2021 8:28 am
by stjeand
setLandingCraft does not appear to be allowed in the event file.
RE: Couple editing questions
Posted: Tue Jun 08, 2021 9:56 am
by AlvaroSousa
It's correct. I am looking at the code.
It goes in "events.txt" file.
RE: Couple editing questions
Posted: Tue Jun 08, 2021 10:28 am
by stjeand
So it should work?
Below fails:
$ModifyCountry
if_Date=12/7/1941
actionCountry=8
lifespan=tillTrigger
setlandingCraft=20
addReportTo=Axis
text=20 landing craft added to Japanese pool
$End
//$ModifyCountry
//if_Date=12/7/1941
//actionCountry=8
//lifespan=tillTrigger
//landingCraft=20
//addReportTo=Axis
//text=20 landing craft added to Japanese pool
//$End
Below works:
//$ModifyCountry
//if_Date=12/7/1941
//actionCountry=8
//lifespan=tillTrigger
//setlandingCraft=20
//addReportTo=Axis
//text=20 landing craft added to Japanese pool
//$End
$ModifyCountry
if_Date=12/7/1941
actionCountry=8
lifespan=tillTrigger
landingCraft=20
addReportTo=Axis
text=20 landing craft added to Japanese pool
$End
Could it be spelling or order?
RE: Couple editing questions
Posted: Wed Jun 09, 2021 12:14 am
by Blond_Knight
Maybe "setlandingCraft=20" isnt a valid command, where "landingCraft=20" is.
RE: Couple editing questions
Posted: Wed Jun 09, 2021 8:30 am
by AlvaroSousa
ORIGINAL: Blond_Knight
Maybe "setlandingCraft=20" isnt a valid command, where "landingCraft=20" is.
correct
RE: Couple editing questions
Posted: Wed Jun 09, 2021 9:25 am
by ago1000
ORIGINAL: AlvaroSousa
ORIGINAL: Blond_Knight
Maybe "setlandingCraft=20" isnt a valid command, where "landingCraft=20" is.
correct
What I was implying above was, "Is it possible to make a setLandingCraft" script command?
RE: Couple editing questions
Posted: Wed Jun 09, 2021 2:02 pm
by Blond_Knight
Oh like creating a function? That would be cool but Alvaro isnt building a scripting language.

RE: Couple editing questions
Posted: Wed Jun 09, 2021 2:08 pm
by stjeand
Correct...that was my question.
OR if Alvaro could add a check to keep you from going to negative numbers.
I can -500 LC and the Japanese would be -300 to start the game and not be able to get out of that hole.
BUT that might be on purpose.
Though a check to say...IF less than zero set to zero would be perfect.