Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

AI Script Advice Needed

 
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] >> War in the Pacific: Admiral's Edition >> Scenario Design and Modding >> AI Script Advice Needed Page: [1]
Login
Message << Older Topic   Newer Topic >>
AI Script Advice Needed - 3/10/2010 1:48:44 AM   
Shark7


Posts: 7819
Joined: 7/24/2007
From: The Big Nowhere
Status: offline
OK, I need to write a naval surface action script and I'm lost. (Scripting has never been my strong suit).

Basically, I have added some ancient BBs to the Asiatic Fleet in Manila Harbor. What I'd like for the AI to do with these is form up a SAG or two and attempt to oppose the Japanese landings. And I have no clue on how to do it.

Can anyone help out?

My scripting level would be rated as beginner.

< Message edited by Shark7 -- 3/10/2010 1:59:02 AM >


_____________________________

Distant Worlds Fan

'When in doubt...attack!'
Post #: 1
RE: AI Script Advice - 3/10/2010 2:01:27 AM   
Andy Mac

 

Posts: 14124
Joined: 5/12/2004
From: Alexandria, Scotland
Status: offline
OK step one are there going to be enough assets to allow a TF to form i.e. are there a few DD's disbanded in the same port.

Allied AI ship teleporting to allow TF's to form is disabled for about the first 60 days to stop the Ai blatently teleporting ships into the wrong place so you need to allow the port to have at least 1 DD per BB ish as a rule of thumb or no TF will form.

So thats step one assume you have 3 or 4 DD's in the same port disbanded (can be existing ones in a TF just make sure they are disbanded)

(in reply to Shark7)
Post #: 2
RE: AI Script Advice - 3/10/2010 2:09:50 AM   
Shark7


Posts: 7819
Joined: 7/24/2007
From: The Big Nowhere
Status: offline
Assets Available:

5 Old BB
1 BC
12 DD

So that part should be well covered. These are all disbanded, and 5 of the DDs are newly added.

This is a No Washington/London Treaty mod, just wanted to play around with the ships that got scrapped due to those.

So looks like I got step 1 covered.

Should be able to form the Task force.

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to Andy Mac)
Post #: 3
RE: AI Script Advice Needed - 3/10/2010 2:11:23 AM   
Andy Mac

 

Posts: 14124
Joined: 5/12/2004
From: Alexandria, Scotland
Status: offline
OK this is how it would look if I was doing it

2 TF's based at Manila to go north and attack the landing zones




Attachment (1)

(in reply to Shark7)
Post #: 4
RE: AI Script Advice Needed - 3/10/2010 2:13:31 AM   
Andy Mac

 

Posts: 14124
Joined: 5/12/2004
From: Alexandria, Scotland
Status: offline
Then a second script a few days later based at Jolo or some other base to raid Legaspi or maybe Davao and retire on Java before Mrs Betty gets to them






Attachment (1)

(in reply to Andy Mac)
Post #: 5
RE: AI Script Advice Needed - 3/10/2010 2:16:04 AM   
Andy Mac

 

Posts: 14124
Joined: 5/12/2004
From: Alexandria, Scotland
Status: offline
Then a 3rd to keep them busy at Java to stop them going back into harms way

You need this script to keep their home base somewhere sensible.

As you have more ships than I thought the TF's could probably form as Normal sized best way is to play with the script in AI v AI mode until you get a size combination that works

Hope this helps




Attachment (1)

(in reply to Andy Mac)
Post #: 6
RE: AI Script Advice Needed - 3/10/2010 2:16:57 AM   
Shark7


Posts: 7819
Joined: 7/24/2007
From: The Big Nowhere
Status: offline
Thank you Andy Mac.

That is pretty much what I was looking for them to do.

And with the screenshots you provided, I can actually see it, that really helps.

Judging from the screenshots, assigning ships is not necessary, the AI will pull what it needs, correct?

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to Andy Mac)
Post #: 7
RE: AI Script Advice Needed - 3/10/2010 2:19:23 AM   
Andy Mac

 

Posts: 14124
Joined: 5/12/2004
From: Alexandria, Scotland
Status: offline
Yes but you will have to play about with size combinations sometimes two Large/Minimum will form more often than a single Large/Normal TF.

You can play with the options until you get one that works optimally - with the ship mix you are using I would maybe start with 1 TF of Large Size and Normal Composition or maybe even a Large/Max SCTF and see if it works

(in reply to Shark7)
Post #: 8
RE: AI Script Advice Needed - 3/10/2010 2:21:53 AM   
Andy Mac

 

Posts: 14124
Joined: 5/12/2004
From: Alexandria, Scotland
Status: offline
Also waypoint which I have used to make this a one run through then stop option may not be best you can use patrol in this kind of situation just dont leave it to open ended or to long as its a good way to get ships trashed.



(in reply to Andy Mac)
Post #: 9
RE: AI Script Advice Needed - 3/10/2010 2:22:27 AM   
Andy Mac

 

Posts: 14124
Joined: 5/12/2004
From: Alexandria, Scotland
Status: offline
p.s. dont forget to increase the VP's for some US base to compensate for the extra VP's you are probably giving Japan

(in reply to Andy Mac)
Post #: 10
RE: AI Script Advice Needed - 3/10/2010 2:28:56 AM   
Shark7


Posts: 7819
Joined: 7/24/2007
From: The Big Nowhere
Status: offline

quote:

ORIGINAL: Andy Mac

p.s. dont forget to increase the VP's for some US base to compensate for the extra VP's you are probably giving Japan


The Allies got some interesting new targets to shoot at as well, mostly the ships that never got built due to the treaties. I think I managed to keep the ratios fairly balanced as to what they were, but I may have to do some tweaking there.

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to Andy Mac)
Post #: 11
RE: AI Script Advice Needed - 3/10/2010 4:28:52 AM   
Shark7


Posts: 7819
Joined: 7/24/2007
From: The Big Nowhere
Status: offline
Just so you know the results, it did in fact work. Settings were Large/Normal and if formed a TF with 1 BB, 1 BC, 2 CA (I forgot about those being there), and 4 DDs. Unfortunately for the BB Florida, Miss Betty's dance card wasn't full...hehe.

_____________________________

Distant Worlds Fan

'When in doubt...attack!'

(in reply to Shark7)
Post #: 12
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> Scenario Design and Modding >> AI Script Advice Needed 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.172