Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recruiting for an AI Editor
#8
Whiteboy Wrote:By basic, I just mean to the level that the computer actually makes the new units
First, just make a taskforce which defines what units will be in the team. This is extremely simple.

Then, write a script that says what the units will do. Usually this needs to be refined as you playtest. But a simple script could be: gather at friendly base (distance determined by AISafeDistance); gather at enemy base (again distance is determined by AISafeDistance); attack anything.

Then write a teamtype that gives behavior properties to the team. Naturally it helps to know what the properties mean. This can become second nature in a relatively short time. Point the team at the taskforce and the scripttype you wrote.

Write the AI trigger that calls the team. A clone of a similar trigger for the same side or faction can suffice at first, until you are comfortable in writing your own. It is important to understand that unlike map triggers, AI triggers can only have one 'event' defined, which sets the required condition that must be true before the trigger can be used. If the units you are using should require significant teching up before they can be built, then your trigger event will most often have to be that the AI house itself owns the required structure (else the AI may appear to cheat even more than it already does by building the units too early).

C-GEN: The site with the 'log the f*ck in' forum. And now we make you validate your f*cking e-mail address too.
CannisRules: It's a YR mod.


Messages In This Thread
Recruiting for an AI Editor - by Whiteboy - 11.03.2005, 13:32:00
Recruiting for an AI Editor - by (XT*Chris*TX) - 13.03.2005, 15:26:00
Recruiting for an AI Editor - by Whiteboy - 14.03.2005, 07:03:00
Recruiting for an AI Editor - by mrruben5 - 14.03.2005, 10:47:00
Recruiting for an AI Editor - by Whiteboy - 15.03.2005, 06:31:00
Recruiting for an AI Editor - by CannisRabidus - 15.03.2005, 07:16:00
Recruiting for an AI Editor - by Whiteboy - 15.03.2005, 11:55:00
Recruiting for an AI Editor - by CannisRabidus - 15.03.2005, 18:46:00
Recruiting for an AI Editor - by (XT*Chris*TX) - 15.03.2005, 23:35:00
Recruiting for an AI Editor - by ctcdmb - 16.03.2005, 00:18:00
Recruiting for an AI Editor - by MooMan65 - 16.03.2005, 03:45:00
Recruiting for an AI Editor - by DCoder - 16.03.2005, 06:55:00
Recruiting for an AI Editor - by Rattus - 16.03.2005, 07:09:00
Recruiting for an AI Editor - by Sypher_5 - 16.03.2005, 07:30:00
Recruiting for an AI Editor - by Whiteboy - 16.03.2005, 10:37:00
Recruiting for an AI Editor - by Sypher_5 - 16.03.2005, 11:21:00
Recruiting for an AI Editor - by Rattus - 16.03.2005, 11:32:00
Recruiting for an AI Editor - by DCoder - 16.03.2005, 14:50:00
Recruiting for an AI Editor - by Whiteboy - 17.03.2005, 09:25:00
Recruiting for an AI Editor - by Entith2290 - 19.03.2005, 13:17:00
Recruiting for an AI Editor - by Whiteboy - 20.03.2005, 13:02:00
Recruiting for an AI Editor - by Entith2290 - 24.03.2005, 00:34:00
Recruiting for an AI Editor - by Whiteboy - 24.03.2005, 05:35:00
Recruiting for an AI Editor - by Entith2290 - 24.03.2005, 12:16:00
Recruiting for an AI Editor - by Whiteboy - 24.03.2005, 21:10:00
Recruiting for an AI Editor - by Entith2290 - 25.03.2005, 01:07:00
Recruiting for an AI Editor - by Whiteboy - 25.03.2005, 01:24:00
Recruiting for an AI Editor - by CannisRabidus - 25.03.2005, 03:14:00
Recruiting for an AI Editor - by Whiteboy - 25.03.2005, 10:40:00
Recruiting for an AI Editor - by DCoder - 25.03.2005, 12:45:00
Recruiting for an AI Editor - by (XT*Chris*TX) - 25.03.2005, 17:53:00
Recruiting for an AI Editor - by Entith2290 - 25.03.2005, 19:59:00
Recruiting for an AI Editor - by Whiteboy - 26.03.2005, 06:25:00
Recruiting for an AI Editor - by ctcdmb - 27.03.2005, 09:35:00
Recruiting for an AI Editor - by Whiteboy - 27.03.2005, 09:47:00
Recruiting for an AI Editor - by Entith2290 - 27.03.2005, 20:34:00
Recruiting for an AI Editor - by Whiteboy - 28.03.2005, 11:13:00



Users browsing this thread: 1 Guest(s)