Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Question about AI scripts

 
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 >> Question about AI scripts Page: [1]
Login
Message << Older Topic   Newer Topic >>
Question about AI scripts - 12/30/2015 12:08:16 PM   
Sardaukar


Posts: 9847
Joined: 11/28/2001
From: Finland/Israel
Status: offline
Is it possible for AI script part to have an end date and then AI switches to another part of script? That would prevent AI repeatedly trying to invade place it cannot capture. Or is this a feature already?

_____________________________

"To meaningless French Idealism, Liberty, Fraternity and Equality...we answer with German Realism, Infantry, Cavalry and Artillery" -Prince von Bülov, 1870-

Post #: 1
RE: Question about AI scripts - 12/30/2015 12:31:40 PM   
Oberst_Klink

 

Posts: 4778
Joined: 2/10/2008
From: Germany
Status: offline

quote:

ORIGINAL: Sardaukar

Is it possible for AI script part to have an end date and then AI switches to another part of script? That would prevent AI repeatedly trying to invade place it cannot capture. Or is this a feature already?

Scipts have a start and end date, but there is no such thing AFAIK as an event editor if script a ends, then start script b.

Klink, Oberst




Attachment (1)

_____________________________

My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.

(in reply to Sardaukar)
Post #: 2
RE: Question about AI scripts - 1/9/2016 5:04:30 PM   
janh

 

Posts: 1216
Joined: 6/12/2007
Status: offline
quote:

ORIGINAL: Sardaukar
Is it possible for AI script part to have an end date and then AI switches to another part of script? That would prevent AI repeatedly trying to invade place it cannot capture. Or is this a feature already?


Not perfectly sure what exactly you are aiming at, but the "Previous" Field in the AI scripts allows linking scripts. The manual says:
"Previous is used to chain scripts together. Before the next script can become active the previous script must be in defend mode or dead."

A while ago I was also wondering whether that together with the "Trigger Base" set and the "Rear Guard" test conditions (as these are among the few things the script AI can effectively "be asked to test" for smartly running or stopping scripts) could be used to create some sort of basic "if then or do while" logic in order to control the offensive and defensive scripts.

Kind of loop an active "rearguard" script for a couple of weeks, transit to a passive one for reconsolidation for a few more weeks, and switch back to the active "rearguard" script if one of the assault bases is still enemy owned.

However, there is no such alternative like setting a running duration instead of a fixed end date, right? And no way to allow a script to branch either of two (or more) paths, depending on some sort of trigger (e.g. Assault base still enemy owned by end date?), or has anyone found a means to do this?

(in reply to Sardaukar)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> Scenario Design and Modding >> Question about AI scripts 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.750