EnteringTraderAI
From Elite Wiki
Revision as of 13:07, 2 January 2011 by Eric Walch (talk | contribs) (script example from Oolite -> scripting page)
The AI that entering 'trader-roles' entities get assigned, decides the route. Simple 2 state affair.
{ GLOBAL = { ENTER = (performIdle, "setStateTo: DECIDE_ROUTE"); };
"DECIDE_ROUTE" = { ENTER = ("rollD: 3"); "ROLL_1" = ("switchAITo: route1traderAI.plist"); "ROLL_2" = ("switchAITo: route1traderAI.plist"); "ROLL_3" = ("switchAITo: route2sunskimAI.plist"); }; }