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.