DSB/Monster Scripting
From DmWiki
Jump to navigationJump to searchThe printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Monster Scripting
See the base/monster.lua file for more information on functions called by objects (monsters!) but be careful of overriding them.
- special_attack(monster_arch, monster_id, target_position, target_char, damage_type, damage_amount)
- Adds a special_attack method to the monster's archetype. By default, it has a 50% chance of occurring, but you can set special_chance in the archetype to change this percentage. This function is executed after the character takes normal damage from an attack. Example