Help with AI wanted
Posted: Fri Jun 13, 2008 10:02 pm
Code: Select all
{
"ATTACK_SHIP" = {
"ENERGY_LOW" = ("setStateTo: FLEE");
ENTER = (performAttack);
EXIT = ();
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
"TARGET_DESTROYED" = ("setStateTo: DOCK_WITH_STATION");
"TARGET_LOST" = ("setStateTo: DOCK_WITH_STATION");
UPDATE = ();
};
"DOCK_WITH_STATION" = {
"ACCEPT_DISTRESS_CALL" = (setTargetToFoundTarget, "commsMessage: [policecondor-plea]", "setAITo: NavyInterceptAI.plist");
ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
ENTER = (setTargetToStation, "setDesiredRangeTo: 5000.0", performIntercept);
"DESIRED_RANGE_ACHIEVED" = ("setAITo: dockingAI.plist");
EXIT = ();
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
UPDATE = ();
};
FLEE = {
"ENERGY_FULL" = ("setStateTo: ATTACK_SHIP");
"TARGET_LOST" = ("setStateTo: DOCK_WITH_STATION");
"TARGET_DESTROYED" = ("setStateTo: DOCK_WITH_STATION");
ENTER = (performFlee);
EXIT = ();
"INCOMING_MISSILE" = (fightOrFleeMissile, "setStateTo: FLEE");
UPDATE = ();
};
GLOBAL = {ENTER = (setUpEscorts, "commsMessage: [policecondor-plea]", "setStateTo: ATTACK_SHIP"); EXIT = (); UPDATE = (); };
}
this is the SwatCondorAI.plist ...
Found a typo in there, want to be sure not to overlook anything else.
Could someone in the know have a quick glance at this and tell me if all is OK?
Work on Realistic Shipyards 3.02 has started, can use a bit of help here and there while bugfixing ...
Thanks in advance
L