Date: 2014/05/03 15:22:14 UTC-07:00
Type: Denizen Script
moneyLossOnDeath:
type: world
debug: true
events:
on entity killed:
- if <context.entity.is_player> {
- define loss <context.entity.money.mul[0.1].round>
- narrate "Weil du gestorben bist hast du %loss% Myr verloren." targets:<context.entity>
- take money qty:%loss% to:<context.entity>
- if <context.damager.is_player> {
- narrate "Du hast %loss% Myr erbeutet." targets:<context.damager>
- give money qty:%loss% to:<context.damager>
}
}