Darkhole54321 wrote:I have put together a basic guide for your tips thread. Enjoy:
My guide to advanced AI:
All advanced AI is is a checklist: it does what is at the top. If it can't do whats on the top, it goes to the next command. It goes down commands until it finds something to do, or does nothing.
This gives you the opportunity to do near anything.For example:You want Creature A to attack Creature B in a small space. Creature A is team Red(enemy) while Creature B is Green(allie). Your captain will also be in the space, so you need to make the Creature A's AI advanced so it dosen't attack you. Set creature A to aggresive, then press down ctrl, and the advanced AI will pop up. Get rid of the commands saying attack all, and attack if attacked. Then change their command of attack Green Team always to attack Creature B always.
Now when you play, Creature A will no longer acknowledge your existance, even if you attack them. This will allow you to create an adventure where you walk across a battlefield unnoticed.
Another example, you can create a command to say" Move to (alarm) if (player) is in line of sight. Line of sight is another popular advanced command, similar to awareness, but depending on where the creature is looking, a good template for making a "sneak" type adventure.
The Shoot command is popular if you hate when your soldiers go into a biting rampage. Put "Shoot", and "Always" and your soldiers will always shoot, as long as another command isn't in the way.
Advanced AI has been used to solve many mysteries, including building awareness, building walking, water awareness, water swimming/walking, bridge awareness/walking, why only six creatures can attack something at once and how to fix it, AI command lists getting stuck, ect, proved by advanced AI.
Some commands are completely corrupt, like the timer command, which does literaly nothing. If you command a creature's AI to do something it can do by itself it, like walking or making emotes, it can stay like that, though that is not a glitch.
If you command a group of Creature A to attack a Creature B, only six will attack at once. Once one is killed, another will take over...sometimes. The other half the creatures may just stand there, there AI list stuck at the default Idle command, on the bottom of the list. This can be fixed by having an infinite command on the bottom, like Idle with an emotion.
This message was edited 1 time. Last update was at 11/09/2010 19:45:35