About this mod
Lets you customize global and per-weapon attack stats like durability, force, damage, backstab, and status effects.
- Permissions and credits
- Changelogs
- Donations
Setting Weapon Stats
Custom weapon stats are stored in json files in BepInEx\plugins\CustomWeaponStats. To create a template json file for a specific weapon, type the following command in the console (F5):
customweaponstats save <ItemSpawnName>
E.g. customweaponstats save SwordBronze will create a file called SwordBronze.json with the default values for a bronze sword. Edit that file as you like, save it, then type the following command in the console:
customweaponstats reload
This will reload the file, applying the new values when someone attacks with a bronze sword.
The variables are mostly self-explanatory.
For status effects, you can get a complete list by typing the following command in the console:
customweaponstats se
Only one status effect can be applied to a weapon, afaics.
For skills, you can get a complete list by typing the following command in the console:
customweaponstats skills
Put the number for the skill in your json file.
Global Multipliers
The mod also provides the following global weapon modifiers via the config file:
GlobalDamageMultiplier
GlobalUseDurabilityMultiplier
GlobalAttackForceMultiplier
GlobalBackstabBonusMultiplier
GlobalHoldDurationMinMultiplier
Config
A config file BepInEx/config/aedenthorn.CustomWeaponStats.cfg is created after running the game once with this mod.
You can adjust the config values by editing this file using a text editor or in-game using the Config Manager.
To reload the config from the config file, type customweaponstats reset into the game's console (F5).
Technical
To install this mod, the easiest way is to just use Vortex, the Nexus Mods mod manager. It should take care of all dependencies.
To install manually, place the dll file in the BepInEx/plugins folder. You will need BepInEx.
Code is at https://github.com/aedenthorn/ValheimMods.
If you want to complain or ask for help or help me test my mods, you can visit my Discord server.
Click here for a list of all my mods for Valheim.