You are viewing a potentially older version of this package. View all versions.
munnas-BaseDefenseWard-0.1.2 icon

BaseDefenseWard

Tower defense for your base: build the ward, survive the wave that comes for it, earn tiered rewards. Mobs hunt exposed players; sheltered ones are ignored.

Date uploaded a month ago
Version 0.1.2
Download link munnas-BaseDefenseWard-0.1.2.zip
Downloads 185
Dependency string munnas-BaseDefenseWard-0.1.2

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2350

README

Base Defense Ward

Tower defense for your base. Build the Base Defense Ward (Hammer, Misc tab; vanilla ward model and cost, glows red) and a countdown starts. When it ends a wave spawns around your base and goes for the ward. Hold it and rewards drop at the ward; lose it and the challenge is lost. The ward then rests and re-arms, with bigger waves each time.

The Base Defense Ward at night

  • Mobs hunt players who are out in the open and ignore players who are roofed and walled in.
  • Mob tiers and rewards unlock with boss trophies hung on the sacrificial stones (Meadows only on a fresh world).
  • One ward per player; build a new one to move it. Locked while a wave is in progress.
  • Press E on the ward during the countdown to start the wave now. Optional pause hotkey.
  • HUD rows under the minimap for every running ward (yours first, other players' by name) and a map pin on each.
  • Countdown and rest run while the builder is logged in, at any distance. They pause while the builder is offline.
  • Requires BepInEx 5.4.23+ on every client and on the server or host.

HUD rows and two wards

Options (BepInEx/config/com.night.basedefenseward.cfg)

Key Default Meaning
CountdownMinutes 10 Build (or end of rest) to wave
WaveTimeLimitMinutes 5 Hold this long and the wave counts as beaten
RestMinMinutes / RestMaxMinutes 30 / 120 Random rest between a defended wave and the next countdown
SpawnRadius 55 Spawn distance from the ward (its protected radius is 32)
BaseMobCount / MobsPerCompletedChallenge / MaxMobCount 4 / 2 / 30 Wave size
SpawnIntervalSeconds 1.5 Delay between individual spawns
PlayerHuntRange 40 Exposed players within this range of a mob get hunted
StartNow true E on the ward during the countdown starts the wave immediately
PausableWards false Allow pausing a ward's countdown or rest with PauseKey within interact range (not during a wave)
PauseKey P The pause hotkey
RewardMultiplier 1 Scales reward amounts
DeleteWorldOnLoss false Destructive. Losing deletes the world save; dedicated servers exit so a wrapper can restart
BuildDeadlineMinutes 0 (off) A ward must be built this many minutes after world creation or the challenge is lost
BossKeys bdw_hung_* Global keys that unlock each tier, in order (use defeated_* keys to count kills instead)
ExtraMobPools empty Override the built-in tier pools: tiers separated by ;, prefabs by ,

Source, issues, contributions: https://github.com/GustavHenning/base-defense-ward

CHANGELOG

Changelog

0.1.2

  • Mod page README shows screenshots now that the repository is public. No gameplay changes.

0.1.1

  • After a defended wave the ward rests for a random span (RestMinMinutes..RestMaxMinutes, default 30-120 min) and then re-arms; waves keep growing with every completed challenge.
  • Countdown and rest keep running while the builder is logged in, however far away the ward is, and pause while the builder is offline (the server advances unloaded wards). The hold timer still needs the wave simulated.
  • StartNow (default on): E on the ward during the countdown starts the wave immediately.
  • PausableWards (default off) + PauseKey (P): pause or resume a ward's countdown/rest within interact range.
  • Hover text on the ward shows its timer, the start-now hint and the pause hint.
  • HUD lists every running ward as its own row (yours first, then other players' wards by builder name), stacked under the minimap so rows never overlap each other or the vanilla status-effect icons. Works at any distance.
  • Every running ward gets a minimap pin named after its builder; the pin goes away when the ward is gone.

0.1.0

First public release.

  • Base Defense Ward build piece (vanilla ward model and cost, red glow while active).
  • Countdown on build, then a wave spawns around the ward and attacks it; exposed players nearby get hunted, sheltered players are ignored.
  • Win on wave wipe or by holding out; tiered rewards scaled by completed challenges.
  • Mob pool tiers unlocked by boss trophies hung on the sacrificial stones.
  • One ward per player; rebuild to move it, locked while a wave is in progress.
  • HUD panel left of the minimap with the current countdown.
  • Countdown and hold timers only advance while the ward is simulated: they pause while everyone is offline or away from the ward, on servers too.
  • Options: timers, wave size, rewards, hunt range, boss keys, custom mob pools, and the opt-in DeleteWorldOnLoss and BuildDeadlineMinutes consequences (both off by default).