| Event | Fires When | |-------|-------------| | @OnStrike | Weapon hits a living target | | @OnParry | Blocking an attack perfectly | | @OnDeath | Entity dies (user = killer, target = victim) | | @OnForge | Creating an item at an anvil | | @OnSoulDrain | Absorbing soul essence from a corpse | | @OnHeat | Metal temperature exceeds threshold | | @OnBreak | Tool/weapon durability reaches 0 |
| Action | Syntax | Effect | |--------|--------|--------| | Set damage | damage = X | Override base damage | | Heal | heal = X | Restore HP | | Apply soul effect | soul_effect = "name" | Fear, Rage, Slow | | Spawn entity | spawn = "item_id" | Drop a resource | | Forge result | result = "weapon_id" | Crafting output | | Teleport | teleport = vector3 | Move entity | Mortem Metallum Script
| Predefined Soul Var | Meaning | |--------------------|---------| | %ferrum_essence | Base soul (physical damage) | | %aethel_metal | Magic resistance | | %umbra_alloy | Stealth/invisibility | | %mortem_force | Execution threshold bonus | | Event | Fires When | |-------|-------------| |
| Modifier | Syntax | Effect | |----------|--------|--------| | Bleed | \| bleed(seconds) | Damage over time | | Soul Leech | \| leech(percentage) | Heal % of damage dealt | | Shatter | \| shatter(chance%) | Destroy enemy armor | | Overheat | \| overheat(value) | Increase target's metal temp | | Chain | \| chain(targets) | Hit additional enemies | Mortem Metallum Script
%var = %var - (5 * seconds_out_of_combat)