Age of Mythology. Scripting Guide. Outline. Game overview Adding your agent to the game Renaming your agent AI vs. AI: we’re almost there AI vs. AI setup Setting up the AI debugger Scripting overview AI library reference Sample code from default AI Explanation of sample code
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
<script>the name of your xs file without the file extension</script>
<name> the name of your agent</name>
<name>the name of your agent</name>
<aiscript>name of your xml file without the file extension</aiscript>
map ("alt-shift-d", "root","gadgetToggle(\"XSDebugger\")")
int aiPlanCreate( string planName, int typeName )
Creates a plan of the given name and type.
Creates an explore plan. An explore plan merely assigns living units to exploration, which is different from creating units for exploration. Plans know how to perform specific tasks such as exploring, gathering, attacking, defending, fishing, and many more. Each plan created generates a plan ID number. Line 18 assigns the plan’s ID number to the variable gLandExplorePlanID. You will need the plan ID later on when you set the plan’s behavior in lines 21 and 22.
Assigns a unit of type gLandScout to the explore plan. The unit assigned to the plan is the unit that will explore. The arguments 1, 1, 1 represent the need, want, and max values for the assigned unit.
Activates the explore plan. At this point a unit of type gLandScout is exploring the map.