Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Couple editing questions

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Warplan Pacific >> Scenario Design and Modding >> Couple editing questions Page: [1]
Login
Message << Older Topic   Newer Topic >>
Couple editing questions - 6/5/2021 12:07:48 AM   
stjeand


Posts: 1363
Joined: 1/10/2021
From: Aurora, NC
Status: online
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?
Post #: 1
RE: Couple editing questions - 6/5/2021 5:13:50 AM   
ago1000


Posts: 843
Joined: 8/6/2004
From: Canada
Status: offline
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.




Attachment (1)

< Message edited by ago1000 -- 6/5/2021 5:26:18 AM >


_____________________________


(in reply to stjeand)
Post #: 2
RE: Couple editing questions - 6/5/2021 10:22:35 AM   
stjeand


Posts: 1363
Joined: 1/10/2021
From: Aurora, NC
Status: online
I was wondering what that button was for. Okay will try that thanks.

(in reply to ago1000)
Post #: 3
RE: Couple editing questions - 6/5/2021 7:36:28 PM   
stjeand


Posts: 1363
Joined: 1/10/2021
From: Aurora, NC
Status: online
Loops work...event does not.

Still working on it.

Thanks.

(in reply to stjeand)
Post #: 4
RE: Couple editing questions - 6/5/2021 9:25:55 PM   
ago1000


Posts: 843
Joined: 8/6/2004
From: Canada
Status: offline
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



_____________________________


(in reply to stjeand)
Post #: 5
RE: Couple editing questions - 6/6/2021 12:55:05 PM   
AlvaroSousa


Posts: 9704
Joined: 7/29/2013
Status: offline
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

(in reply to ago1000)
Post #: 6
RE: Couple editing questions - 6/6/2021 3:31:15 PM   
stjeand


Posts: 1363
Joined: 1/10/2021
From: Aurora, NC
Status: online
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.


(in reply to AlvaroSousa)
Post #: 7
RE: Couple editing questions - 6/6/2021 10:42:28 PM   
ago1000


Posts: 843
Joined: 8/6/2004
From: Canada
Status: offline
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?

_____________________________


(in reply to AlvaroSousa)
Post #: 8
RE: Couple editing questions - 6/8/2021 11:28:30 AM   
stjeand


Posts: 1363
Joined: 1/10/2021
From: Aurora, NC
Status: online
setLandingCraft does not appear to be allowed in the event file.

(in reply to ago1000)
Post #: 9
RE: Couple editing questions - 6/8/2021 12:56:30 PM   
AlvaroSousa


Posts: 9704
Joined: 7/29/2013
Status: offline
It's correct. I am looking at the code.

It goes in "events.txt" file.

< Message edited by AlvaroSousa -- 6/8/2021 12:58:36 PM >


_____________________________

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

(in reply to stjeand)
Post #: 10
RE: Couple editing questions - 6/8/2021 1:28:50 PM   
stjeand


Posts: 1363
Joined: 1/10/2021
From: Aurora, NC
Status: online
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?

(in reply to AlvaroSousa)
Post #: 11
RE: Couple editing questions - 6/9/2021 3:14:47 AM   
Blond_Knight


Posts: 1031
Joined: 5/15/2004
Status: offline
Maybe "setlandingCraft=20" isnt a valid command, where "landingCraft=20" is.

(in reply to stjeand)
Post #: 12
RE: Couple editing questions - 6/9/2021 11:30:19 AM   
AlvaroSousa


Posts: 9704
Joined: 7/29/2013
Status: offline

quote:

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

(in reply to Blond_Knight)
Post #: 13
RE: Couple editing questions - 6/9/2021 12:25:34 PM   
ago1000


Posts: 843
Joined: 8/6/2004
From: Canada
Status: offline

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?

_____________________________


(in reply to AlvaroSousa)
Post #: 14
RE: Couple editing questions - 6/9/2021 5:02:01 PM   
Blond_Knight


Posts: 1031
Joined: 5/15/2004
Status: offline
Oh like creating a function? That would be cool but Alvaro isnt building a scripting language. :)

(in reply to ago1000)
Post #: 15
RE: Couple editing questions - 6/9/2021 5:08:21 PM   
stjeand


Posts: 1363
Joined: 1/10/2021
From: Aurora, NC
Status: online
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.

(in reply to Blond_Knight)
Post #: 16
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Warplan Pacific >> Scenario Design and Modding >> Couple editing questions Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.516