skill_nonearnpc_db.txt 1.1 KB

123456789101112131415161718192021222324252627282930
  1. // Skill Distance-to-NPC Database
  2. // Prevents skills from being used near NPC types using INF2_NO_NEARNPC.
  3. //
  4. // Structure of Database:
  5. // SkillName,AdditionalRange{,NPC Type}
  6. //
  7. // AdditionalRange:
  8. // Number of cells from an NPC where the skill can be cast.
  9. // If zero, this will read the splash range value from skill_db;
  10. // if that is also zero, range+layout's range from skill_unit_db will be used.
  11. //
  12. // NPC Type (bitmask):
  13. // 1 = warp portal, 2 = shop NPC, 4 = normal NPC script, 8 = tomb
  14. //
  15. // Examples:
  16. // MG_SAFETYWALL,2
  17. // Safety Wall can't be placed within 2 ground cells of an NPC.
  18. // (MG_SAFETYWALL doesn't have splash, layout range, and range value,
  19. // so we must add the 'additional_range', or it will be pointless.)
  20. //
  21. // GS_DESPERADO,2
  22. // Desperado can't be casted if the caster is standing within 5 cells of an NPC.
  23. // (Why? GS_DESPERADO has 3 cells of splash range +2 'additional_range' here.)
  24. //
  25. // SC_CHAOSPANIC,0,1
  26. // Chaos Panic can't be placed within 2 ground cells of a warp portal.
  27. // (Because SC_CHAOSPANIC doesn't have splash range, it uses layout range.)
  28. SC_CHAOSPANIC,0,1
  29. SC_MAELSTROM,0,1