documentation.txt 1.1 KB

12345678910111213
  1. Individual AI:
  2. This folder contains AI scripts for single npc templates (one npc ID, but possibly many instances).
  3. That is, if a particular NPC/mob has a unique AI or something slightly different from all other generic NPCs,
  4. an individual AI script can be created for all occurences of that npc/mob. Such individual scripts ought to be here.
  5. Individual AI scripts can be subclassed. In other words, an individual may inherit from a group or other individual.
  6. For example, one group template might define mobs that cast spells. A particular mob may cast spells but may also
  7. talk whenever it gets attacked. In that case, instead of writing all the AI for attacking and casting spells, it may
  8. inherit from a group template that defines AI for ALL mobs that cast spells, then add behaviours for talking onAttack.
  9. "NPC registrations" refers to the addition of NPCs in the various events of the scripts, such as onAttack, onKill, etc
  10. Those are done by using keywords such as "addKillId" etc. For more details on registrations, see
  11. "scripts/quests/documentation.txt"