Thread: AI scripts
View Single Post
Old 11-15-2002, 08:00 AM   #18
Radek
Red Dragon
 

Join Date: April 3, 2001
Location: Prague, Czech Republic
Posts: 1,586
I create scripts for all my characters, too. I keep the scripts as simple as possible. In fact, they contain only fight blocks with a few improvements:
- If the character sees no enemies then he tries to approach the protagonist.
- The trap detecting character has a block "if (the air is clear) then detect traps - otherwise fight" in his script. This makes the trap detecting character a monster detecting character a bit: if the air is clear then he activates the "detect trap" icon. If the air smells then he activates the "fight" icon.
I use the scripts for "everyday work". About 85% of fights are done by AI only. If the fight is a bit complicated then I use AI and issue a few additional commands myself. About 10% of fights are done this way. If the fight is difficult then I switch AI off and control the characters myself.
__________________
My name is Demon\'s Last Day. Yes, the last one.
Radek is offline   Reply With Quote