Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:53.