AI Data Question

Please post here for questions and discussion about scenario design, art and sound modding and the game editor for WITP Admiral's Edition.

Moderators: wdolson, MOD_War-in-the-Pacific-Admirals-Edition

Post Reply
User avatar
Dereck
Posts: 3303
Joined: Mon Sep 06, 2004 10:43 pm
Location: Romulus, MI

AI Data Question

Post by Dereck »

Can someone explain why for certain AI Scripts the assault base doesn't make any sense?

Examples are:

#146 Raid SWPAC - assault base is Aden
#230 Trigger Lunga - assault base is Auckland
#231 IJN Lunga - assault base is Aden

There are a number of scripts like the above 3.

Thanks
PO2 US Navy (1980-1986);
USS Midway CV-41 (1981-1984)
Whidbey Island, WA (1984-1986)
Naval Reserve (1986-1992)
Buck Beach
Posts: 1974
Joined: Sun Jun 25, 2000 8:00 am
Location: Upland,CA,USA

RE: AI Data Question

Post by Buck Beach »

ORIGINAL: dereck

Can someone explain why for certain AI Scripts the assault base doesn't make any sense?

Examples are:

#146 Raid SWPAC - assault base is Aden
#230 Trigger Lunga - assault base is Auckland
#231 IJN Lunga - assault base is Aden

There are a number of scripts like the above 3.

Thanks


Maybe that sneaky AndyMac had his fingers in that pie also. [:D]
Andy Mac
Posts: 12578
Joined: Wed May 12, 2004 8:08 pm
Location: Alexandria, Scotland

RE: AI Data Question

Post by Andy Mac »

Scripts have 4 modes
 
ACTIVE
DEFEND
NOT ACTIVE
DEAD
 
While a script is active any follow on scripts chained to it do not operate
If a script goes to DEFEND then its still operating (to allow air groups to move around or TF's to patrol or LCU Garrisons to move) but scripts chained from it will move to ACTIVE MODE
 
In order for the 'landmine' scripts to work I need to keep them active because I want the trigger to be the fall of base x 
 
So in this example 230 is chained to 231.
 
230 has two end criteria 430301 or the base Falling to the allies in order to keep the trigger script 230 in active mode until one of these conditions arises I have a statc unit attacking an out of the way base
 
So this one has a static border fort attacking Aukland i.e. an attack that cannot beconsummated thus keeping the script active but incomplete.
 
So when base x falls  falls script 231 activates because now 230 is DEAD.
 
This is how I make it appear the AI is reacting so 230 is the landmine 231 the explosion
Post Reply

Return to “Scenario Design and Modding”