Couple editing questions

Post new scenarios and mods here to share with other gamers.

Moderator: AlvaroSousa

Post Reply
User avatar
stjeand
Posts: 1675
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

Couple editing questions

Post 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?
User avatar
ago1000
Posts: 863
Joined: Fri Aug 06, 2004 7:12 am
Location: Canada

RE: Couple editing questions

Post 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.

Image
Attachments
LoadAllScripts.jpg
LoadAllScripts.jpg (133.23 KiB) Viewed 48 times
User avatar
stjeand
Posts: 1675
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

RE: Couple editing questions

Post by stjeand »

I was wondering what that button was for. Okay will try that thanks.
User avatar
stjeand
Posts: 1675
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

RE: Couple editing questions

Post by stjeand »

Loops work...event does not.

Still working on it.

Thanks.
User avatar
ago1000
Posts: 863
Joined: Fri Aug 06, 2004 7:12 am
Location: Canada

RE: Couple editing questions

Post 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

User avatar
AlvaroSousa
Posts: 10220
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Couple editing questions

Post by AlvaroSousa »

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

addReportTo=Axis
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
stjeand
Posts: 1675
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

RE: Couple editing questions

Post 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.

User avatar
ago1000
Posts: 863
Joined: Fri Aug 06, 2004 7:12 am
Location: Canada

RE: Couple editing questions

Post 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?
User avatar
stjeand
Posts: 1675
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

RE: Couple editing questions

Post by stjeand »

setLandingCraft does not appear to be allowed in the event file.
User avatar
AlvaroSousa
Posts: 10220
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Couple editing questions

Post by AlvaroSousa »

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

It goes in "events.txt" file.
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
stjeand
Posts: 1675
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

RE: Couple editing questions

Post 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?
User avatar
Blond_Knight
Posts: 998
Joined: Sat May 15, 2004 3:52 am

RE: Couple editing questions

Post by Blond_Knight »

Maybe "setlandingCraft=20" isnt a valid command, where "landingCraft=20" is.
User avatar
AlvaroSousa
Posts: 10220
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Couple editing questions

Post by AlvaroSousa »

ORIGINAL: Blond_Knight

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

correct
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
ago1000
Posts: 863
Joined: Fri Aug 06, 2004 7:12 am
Location: Canada

RE: Couple editing questions

Post 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?
User avatar
Blond_Knight
Posts: 998
Joined: Sat May 15, 2004 3:52 am

RE: Couple editing questions

Post by Blond_Knight »

Oh like creating a function? That would be cool but Alvaro isnt building a scripting language. :)
User avatar
stjeand
Posts: 1675
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

RE: Couple editing questions

Post 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.
Post Reply

Return to “Scenario Design and Modding”