documentation.txt 926 B

123456789101112
  1. Group Template AI:
  2. This folder contains AI scripts for group templates. That is, if many different mobs share the same behaviour,
  3. a group AI script can be created for all of them. Such group templates ought to be here.
  4. Group templates can be subclassed. In other words, a group may inherit from another group. For example,
  5. one group template might define mobs that cast spells. Another template may then define the AI for mobs
  6. that cast spells AND use shots. In that case, instead of rewriting all the attack and spell-use AI, we can
  7. inherit from the first group template, then add the new behaviours, and split up the NPC registrations appropriately.
  8. "NPC registrations" refers to the addition of NPCs in the various events of the scripts, such as onAttack, onKill, etc
  9. Those are done by using keywords such as "addKillId" etc. For more details on registrations, see
  10. "scripts/quests/documentation.txt"