janh -> RE: Question about AI scripts (1/9/2016 5:04:30 PM)
|
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?
|
|
|
|