Long awaited MT mod adding a kill history
Go to file
2020-05-24 13:08:46 +02:00
textures Optimize screenshot 2020-05-24 13:08:46 +02:00
config_help.md Updates via shellscript 2019-05-04 11:52:54 +02:00
default_config.json rolling-3 2020-02-29 13:06:58 +01:00
init.lua rolling-2 2020-02-29 12:58:19 +01:00
main.lua rolling-4 2020-04-21 15:03:19 +02:00
mod.conf rolling-4 2020-04-21 15:03:19 +02:00
Readme.md rolling-4 2020-04-21 15:03:19 +02:00
screenshot.png Optimize screenshot 2020-05-24 13:08:46 +02:00

Kill History(deathlist)

A mod displaying a colored list of recent kills/deaths and the causes(killer, used item).

About

Depends on modlib and - depending on your configuration - also other mods. If you use the default configuration, it depends on default and fire. Note: If there are other mods registering on_punchplayer or on_hp_change handlers, add them to the dependency list to make sure they execute before deathlist. Licensed under MIT.

Screenshot

Screenshot

API

deathlist provides a few internal functions, but the most common way to trigger a custom message is passing a custom type to set_hp:

-- example, kills player
player:set_hp(0, {
    -- killer, required
    killer = {
        -- name, required
        name = "singleplayer",
        -- color, optional integer, will be completed if valid playername
        color = 0xFFFFFF
    },
    -- method, required
    method = {
        -- image of used method, required
        image = "blank.png",
        -- name for logging, optional
        name = "blank"
    }
    -- victim, optional overrides
    victim = {
        -- name, optional
        name = "singleplayer",
        -- color, optional
        color = 0xFFFFFF
    }
})