Valheim
0 of 0

File information

Last updated

Original upload

Created by

Neobotics

Uploaded by

Astevus

Virus scan

Safe to use

Tags for this mod

About this mod

Protect your home! Use trophies to summon stalwart guardians to your wards! Now summon 'star' guardians! Multiplayer support with base and biome restrictions.

Permissions and credits
Defend Your Base

Protect your home! Use trophies to summon stalwart guardians to your wards!
Now summon 'star' guardians!
Multiplayer support with base and biome restrictions.

Use a trophy on a ward stone to summon a guardian (of the selected trophy type) to patrol and defend your base.

If a trophy drops from a 'starred' creature, the trophy can summon a guardian of the same level.

The summoned guardian will patrol within the ward's area of protection and attack all enemies.

If you configure restrictions by biome or boss progression and want to add custom creatures, please read Biome Restrictions first.

New
  • Added restriction based on boss progression
  • Fixed issue in multiplayer where destroying the ward did not destroy the connected guardian
  • Guardians will no longer flee


Configuration

Restrictions

Limit by biome: If enabled, restricts summoned creatures to those that can spawn in the selected ward's biome, or 'higher' biomes, e.g. a Troll can be summoned to a ward in the Plains, but a Seeker cannot.@

Limit by Progression: If enabled, allows creatures to be summoned in 'lower' biomes once a boss is defeated, e.g. Once Bonemass is defeated, a Draugr can be summoned to a ward in the Meadows and Black Forest.@

Minimum Base Pieces: The minimum number of build pieces that must be in proximity to the ward to be considered a 'base' (based on the Piece Check Radius)@

Base Check Radius: The radius from the ward to check for a 'base' that allows the ward to be used for summoning a guard.@

Minimum Base Crafting Stations: The minimum number of crafting stations that must be in proximity to the ward to be considered a 'base' (based on the Piece Check Radius)@

Minimum Base Beds: The minmium number of beds that must be in proximity to the ward to be considered a 'base' (based on the Piece Check Radius)@

Allow Guardian Levels: If enabled, allows trophies from 'starred' creatures to summon guardians of the same level, i.e. a trophy from a 2-star will summon a 2-star guardian.@

Utility

LogLevel: Controls the level of information contained in the log

In-game reconfiguration

You can use Configuration Manager (or similar) mod to change the configuration or modify the config file direclty without exiting the game.

Notes

  • If Allow Guardian Levels is enabled, trophies dropped from 'starred' creatures will summon guardians of the same level. Trophies of different levels will not stack, and will display the 'star' level in inventory.
  • Place the trophy in one of your hotbar numbered slots. Hover over the ward and select the number of the slot the trophy is in.
  • The summoned guardian will patrol within the area of protection of the ward
  • Unlike 'natural' tames, the guardian will fight other creatures from it's own faction
  • Summoning a guardian will consume the trophy
  • A ward can have only one guardian
  • You cannot summon a guardian on someone else's ward
  • Only one ward can have a guardian within overlapping areas of protection, even if not active.
  • You cannot use boss trophies to summon a boss. Sorry.
  • The summoned guardian will remain until they are killed
  • Destroying a ward will also destroy it's guardian
  • The summoned guardian will not follow you.
  • Most procedurally generated pieces (ruins, towns, etc.) will count toward base totals.
  • Beds do not need to be claimed by any particular player to count toward base totals.
  • If you turn _AllowGuardian Levels off, previously obtained 'starred' trophies will still not stack, but will only summon 'no-star' guardians.
  • Deer, Hares and other non-agressive creatures cannot be summoned as guardians.
  • Basic Skeletons can be summoned in the Meadows by default.
  • The Ocean is counted as biome level 3 (equivalent to the Swamp) for the purposes of summoning a Serpent.
  • Note that Meadows creatures can always be summoned to a ward without defeating Eikthyr.


Biome Restrictions

Beginning with version 0.1.2, you can configure DefendYourBase to restrict the summoned guardians to biomes and/or boss progression.

To support trophies that may drop from custom creatures, you can add these trophies and the minimum biome level in which they can be summoned by adding their trophy name and biome level to the CreatureBiomeMap.txt file found in the mod's root folder.

Each custom trophy should appear on it's own line with the trophy piece name and minimum biome 'value' (an integer) separated by a comma, e.g.:

$itemtrophymycustomtrophy,4

This would allow the creature that dropped this trophy to be summoned in the Mountains (or above), but not the Swamp, Black Forest, or Meadows. If you have Limit by Progession enabled, this creature could be summoned to those 'lower' biomes after Moder is defeated.

You can edit the CreatureBiomeMap.txt file to limit the available guardians to summon or change their minimum.

You may need to get the custom trophy item name from the custom mod's author.

The biome values are as follows:

  • Meadows, 1
  • Black Forest, 2
  • Swamp, 3
  • Mountains, 4
  • Plains, 5
  • Mistlands, 6
  • Ashlands, 7
  • Deep North, 8
  • Ocean, 3


If you add custom trophies, remember to save a copy of your file, or mark it "read-only" before updating DefendYourBase.

Compatibility issues & defects

  • If you find a compatibility issue you can post it on NexusMods. Be sure to include the mod name and version you think may be incompatible.
  • If you have a bug please report it on NexusMods. If you do post a bug report, please make sure to include the following:
    • Your version of this mod
    • What you were doing, or attempting to do when it happened
    • If it's repeatable - i.e., can you duplicate it?
    • The exact behavior you observed (or didn't observe)
    • If possible, post a capture of the log file with errors (errors always begin with this mod's name) on Discord



You can find all Neobotics released mods on:


Your comments and feedback are always welcome. Post on NexusMods or Discord: https://tinyurl.com/NeoboticsOnDiscord

Changelog

0.2.2
  • Added restriction based on boss progression
  • Fixed issue in multiplayer where destroying the ward did not destroy the connected guardian
  • Guardians will no longer flee


0.2.1
  • Fixed stacking issue where 'starred' trophies could be manually stacked with non-star and lose level


0.2.0
  • Added 'star' guardian summoning


0.1.2
  • Updated for Ashlands
  • Added anti-abuse configurations for server/multiplayer play


0.1.1
  • Fixed bug throwing exception when player dies
  • Fixed intermittent errors thrown detecting enemies
  • Removed ability to command summond guardians (i.e. follow/stay)


0.1.0
  • Initial version