DeathMessage
Says what killed a player and where: in everyone's chat, on screen and in Discord (via DiscordConnector). Install in the players' games and on the server.
Screenshots 2 screenshots
About this mod Author’s original text
DeathMessage
Says what killed a player, and where - in everyone's chat, on everyone's screen and in Discord.
Vanilla Valheim tells nobody when a player dies, and a Discord bridge can only say "Astrid has
died." DeathMessage says "Astrid was killed by Troll ★1 at (120, 34, -560)": fell, drowned,
burned, poisoned by a Blob, crushed by a tree, hit by another player - whatever it was.
One DLL, for the players' games and the server.
Screenshots
In the chat box of every player, with the mod or without:
In Discord, through DiscordConnector, with the cause and the place of death:
What happens when you die
- Your game works out the cause from the last hits your character took: who or what, the
damage by type, and what was left of your health.
- You see it in the middle of the screen: "Killed by Troll ★1 — last hit: 42 blunt".
- Your character shouts it, so it is an ordinary chat line for every player on the server:
"Astrid: was killed by Troll ★1 at (120, 34, -560)".
- The server shows every other player "Astrid was killed by Troll ★1 at (120, 34, -560)."
in the top-left message feed, which is also kept in the Compendium's message log.
- With DiscordConnector
on the server, Discord gets "Astrid was killed by Troll ★1. Coords: (120, 34, -560)" at
once, in place of "Astrid has died."
- The death is added to your own history: /deaths in chat lists the last 10, /deaths hits
adds the hits before each. The last 30 are kept in
BepInEx/config/liekos47.deathmessage.deaths.txt.
Also in the mod, both off until you turn them on:
- A shorter respawn. The game waits a fixed 10 seconds on the death view and then at least
8 more at your bed. Two settings in your own game shorten both.
- /grave. When the server allows it, pay coins to be taken back to where you last died.
Who installs it
| Installed in | What you get |
|---|---|
| The dying player's game and the server | Everything above |
| The dying player's game only | The on-screen cause, the history, the shout in everyone's chat, the shorter respawn |
| The server only | Nothing yet: only a player's own game knows what hit them |
Players without the mod still read other players' deaths in chat and in the top-left feed.
Their own deaths are announced by nobody and go to Discord as DiscordConnector's usual message.
Install
Needs BepInExPack Valheim.
Install it with a mod manager, or put DeathMessage.dll in BepInEx/plugins/ by hand. It goes
in the game of each player who wants it, and in BepInEx/plugins/ on the dedicated server. DiscordConnector is optional and only belongs on the server.
Configuration
BepInEx/config/liekos47.deathmessage.cfg, written on the first start. The [Client] settings
are read in a player's game, the [Server] settings on the server (or in the game of a player
hosting the world). Changes to the file are picked up within 30 seconds, without a restart.
In a player's game: [Client]
| Setting | Default | |
|---|---|---|
| LocalLog | true | Show the cause in the middle of the screen and keep the history |
| ShoutDeath | true | Shout the cause when you die, so it is in every player's chat |
| ShoutFormat | {cause} at {pos} | What is shouted. The game puts your name in front |
| SendToServer | true | Report your deaths to the server, for its announcement and Discord |
| DeathViewSeconds | 10 | Seconds on the death view before the respawn starts. The game's own is 10, the least is 1 |
| RespawnLoadSeconds | 8 | Least seconds waited at your spawn point. The game's own is 8, the least is 3 |
On the server: [Server]
| Setting | Default | |
|---|---|---|
| Announce | true | Show the other players a message when someone dies |
| AnnounceFormat | {player} {cause} at {pos}. | The message |
| AnnounceWhere | TopLeft | TopLeft = the message feed. Center = across the middle of the screen |
| Discord | true | Put the cause and the place into DiscordConnector's death message |
| DiscordMessage | %PLAYER_NAME% {cause}. Coords: {pos} | Replaces DiscordConnector's "Player
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.
Install these first, or the mod will not work: