When the callback is executed, the following parameters are passed to it:
- (string) name of the character that died
- (string) name of the attacker who caused the death, or nil if there was no attacker
Note that this function only works for non-revivable characters. To set up an "on incapacitated" callback for a revivable character, use the on_incapacitated function.