Couple editing questions (Full Version)

All Forums >> [New Releases from Matrix Games] >> Warplan Pacific >> Scenario Design and Modding



Message


stjeand -> Couple editing questions (6/5/2021 12:07:48 AM)

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?




ago1000 -> RE: Couple editing questions (6/5/2021 5:13:50 AM)

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.

[image]local://upfiles/13464/8F5295F103E84A04B6306174ED78CCE8.jpg[/image]




stjeand -> RE: Couple editing questions (6/5/2021 10:22:35 AM)

I was wondering what that button was for. Okay will try that thanks.




stjeand -> RE: Couple editing questions (6/5/2021 7:36:28 PM)

Loops work...event does not.

Still working on it.

Thanks.




ago1000 -> RE: Couple editing questions (6/5/2021 9:25:55 PM)

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=cgKcq7VaRsY&ab_channel=WW2Boardgamer0100





AlvaroSousa -> RE: Couple editing questions (6/6/2021 12:55:05 PM)

Add this line to the script. Then the text appears.

addReportTo=Axis




stjeand -> RE: Couple editing questions (6/6/2021 3:31:15 PM)

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.





ago1000 -> RE: Couple editing questions (6/6/2021 10:42:28 PM)

quote:

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?




stjeand -> RE: Couple editing questions (6/8/2021 11:28:30 AM)

setLandingCraft does not appear to be allowed in the event file.




AlvaroSousa -> RE: Couple editing questions (6/8/2021 12:56:30 PM)

It's correct. I am looking at the code.

It goes in "events.txt" file.




stjeand -> RE: Couple editing questions (6/8/2021 1:28:50 PM)

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?




Blond_Knight -> RE: Couple editing questions (6/9/2021 3:14:47 AM)

Maybe "setlandingCraft=20" isnt a valid command, where "landingCraft=20" is.




AlvaroSousa -> RE: Couple editing questions (6/9/2021 11:30:19 AM)


quote:

ORIGINAL: Blond_Knight

Maybe "setlandingCraft=20" isnt a valid command, where "landingCraft=20" is.


correct




ago1000 -> RE: Couple editing questions (6/9/2021 12:25:34 PM)


quote:

ORIGINAL: AlvaroSousa


quote:

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?




Blond_Knight -> RE: Couple editing questions (6/9/2021 5:02:01 PM)

Oh like creating a function? That would be cool but Alvaro isnt building a scripting language. :)




stjeand -> RE: Couple editing questions (6/9/2021 5:08:21 PM)

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.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.6401367