Alexander's Blog

Sharing knowledge with the global IT community since November 1, 2004

Mortem - Metallum Script

%var = %var - (5 * seconds_out_of_combat)

| 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 | Mortem Metallum Script

| 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 | %var = %var - (5 * seconds_out_of_combat) |

@OnStrike $victim => damage = 25 | bleed(2); Inside {} braces, you can set or modify properties. damage = 25 | bleed(2)