View Single Post
Old 28.06.2006, 03:19   #2
Cardon
Архивный участник
 
Join Date: Apr 2006
Posts: 65
Default

In a nutshell...

Code:
class skillnpc : warrior
 {
 parameter:
     int Skill1 = 1234;
     int Skill2 = 1234;
     int Skill3 = 1234;
 handler:
     EventHandler SEE_CREATURE(creature) {
          i0 = Rand(3) + 1;
          if (i0 == 1) {
                    AddUseSkillDesire(creature, Skill1, @ST_HEAL, @AMT_MOVE_TO_TARGET, 1000);
          }
          else if (i0 == 1) {
                    AddUseSkillDesire(creature, Skill2, @ST_HEAL, @AMT_MOVE_TO_TARGET, 1000);
          }
          else if (i0 == 1) {
                    AddUseSkillDesire(creature, Skill3, @ST_HEAL, @AMT_MOVE_TO_TARGET, 1000);
          }
     }
 }
A very basic skilled mob AI based randomly. If you look around in ai_merged.txt and read other mob AI's you'll quickly see what can be added to make this much more useful.

That's the basics though.
Cardon is offline