LootWindow

版本 v1.0.1·更新於 2026-10-07

Adds a loot window to Valheim's native UI similar to MMORPGs. With item-triggers or loot table calls (coming soon) you can define reward quantities, chances and item levels through YAML. In multiplaye

模組介紹 作者原文

Description

Loot Window turns configured trigger items into rewards in a compact eight-slot window alongside Valheim's native inventory and crafting menus. Define reward quantities, chances and item levels through YAML.

In multiplayer, the server controls loot tables, rolls and trigger pickup settings; interface preferences stay local.

Overview

| Feature | Description |

| --- | --- |

| Loot tables | Connect a trigger item to fixed or random rewards. |

| Automatic pickup | dblw_ items go to the closest eligible player within 3 metres by default. |

| Hidden trigger slot | Holds one pending token even with a full inventory or while encumbered. |

| Native inventory | Drag rewards, collect individual stacks, loot all or drop items on the ground. |

| Optional Auto Loot | Collect one reward stack at a time with configurable delays. |

| Saved rewards | Pending loot survives normal character saves and reconnects without rerolling. |

Configuration and values

Edit BepInEx/config/dannanboi.lootwindow.cfg. Loot tables are in BepInEx/config/LootWindow/loottables.yaml. Solo play uses local settings; multiplayer uses the server's gameplay settings and tables.

| Section / option | Default | Meaning |

| --- | --- | --- |

| [Settings] Enable Mod | true | Server-controlled switch for new triggers; pending loot remains collectable. |

| [Settings] Trigger pickup radius | 3 | Server-controlled horizontal metres for dblw_ items; range 1–6, with a 2-metre height allowance. |

| [Keybindings] Loot All | F | Collect rewards that fit. |

| [Keybindings] Discard Loot | O | Confirm before destroying remaining loot. |

| [Keybindings] Input-block interval | 0.25 | Seconds to reserve loot keys after release; range 0–2. |

| [UI] Auto Loot | false | Automatically collect one stack at a time. |

| [UI] Auto Loot interval | 1 | Seconds between pickups; range 0.5–2. |

| [UI] Sleep before auto-loot | 0.5 | Additional delay before the first pickup interval; range 0–60 seconds. |

| [UI] Auto Loot Autoclose | true | Close inventory when loot ends with Auto Loot enabled. |

| [UI] Autoclose | true | Close inventory when loot ends with Auto Loot disabled. |

| [UI] Window scale | 1 | Loot window size; range 0.7–2. |

| [UI] Window X / Window Y | 0.35 / 0.62 | Screen position; dragging the title bar saves it. |

| [UI] Loot All text / Discard Loot text | Loot All / Discard Loot | Button labels. |

All keybindings and UI options are local. Shortcuts accept modifiers such as LeftShift + F; None disables a shortcut.

Usage

Award a configured triggerItem through another reward mod, or test with the console command spawn dblw_Test2 1. Missing trigger prefabs are generated from Wisp. Items starting with dblw_ are automatically picked up by the closest living, non-teleporting player in range, even with a full inventory or while encumbered. One token is processed at a time; collecting rewards still requires normal inventory space.

Drag rewards into your inventory or outside the windows to drop them. Ctrl-click or right-click collects a stack; F collects all that fit. O, ESC or TAB asks “Discard loot?” while rewards remain. Cancelling keeps them. Drag the title bar to move the window.

Loot table YAML

Use a flat list with two-space indentation. Prefab names are case-sensitive. Add multiple entries to the same file; disables all tables.

  • triggerItem: dblw_Test2

itemDisplayTitle: ""

triggerCall:

alwaysLoot: false

emptyLootText: "Nothing was found."

lootTableName: "Boss reward"

lootTable: Coins[50-100],Ruby[1-2:5],Amber[2]

| Field | Meaning | Missing/empty value |

| --- | --- | --- |

| triggerItem | Exact trigger prefab name. | Required. |

| itemDisplayTitle | Trigger item display name. | Empty; omitting it preserves existing non-dblw_ item names. |

| triggerCall | Reserved identifier for future function calls; currently inactive. | Empty. |

| alwaysLoot | Guarantee at least one successful reward. | false. |

| emptyLootText | Message when no reward succeeds. | No loot. |

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

檔案與校驗

檔案名稱
LootWindow-1.0.1.zip
檔案大小
340.1 KiB