idk_man-ActionRequirementCheck icon

ActionRequirementCheck

Lets you set global key or inventory item requirements for players to perform various tasks like picking up and crafting items, mining, raising skills, and teleporting.

Last updated 3 years ago
Total downloads 67
Total rating 0 
Categories Tweaks
Dependency string idk_man-ActionRequirementCheck-0.2.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.1901 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.1901

README

This mod is simple in concept but quite powerful in its potential for role-play or inhibiting cheaters.

The mod implements lists that restrict player actions. The lists are enforced server-side by ServerSync.

Currently the mod has implemented the following requirement checks:

Item Checks

TeleportItemReqList - a list of items required to be in a player's inventory in order to teleport (e.g. ShieldWood)
MineItemReqList - a list of node:item pairs of items required to be in a player's inventory to mine a specific node type (e.g. mudpile:CryptKey,silvervein:Wishbone)

Global Key Checks

TeleportKeyReqList - a list of keys required to be set in order to teleport (e.g. defeated_eikthyr)
SkillKeyReqList - a list of skillName:key pairs where the key is required to increase the skill (e.g. Swim:defeated_eikthyr)
EquipKeyReqList - a list of itemName:key pairs where the key is required to equip the item (e.g. PickaxeAntler:defeated_eikthyr)
PickupKeyReqList - a list of itemName:key pairs where the key is required to pickup the item (e.g. PickaxeAntler:defeated_eikthyr)
CraftKeyReqList - a list of itemName:key pairs where the key is required to craft the item (e.g. PickaxeAntler:defeated_eikthyr)
LearnKeyReqList - a list of itemName:key pairs where the key is required to learn the item's recipe (e.g. PickaxeAntler:defeated_eikthyr)
MineKeyReqList - a list of nodeName:key pairs where the key is required to damage the node (e.g. mudpile:defeated_gdking,silvervein:defeated_bonemass)

Lists are comma-separated.

Items use the item spawn name.

Global keys are here.

Skill names are Swords, Knives, Clubs, Polearms, Spears, Blocking, Axes, Bows, FireMagic, FrostMagic, Unarmed, Pickaxes, WoodCutting, Jump, Sneak, Run, Swim.

Mining node names are idek.

I'm open to suggestions for more restrictions, it's pretty easy to implement new ones.

Config

A config file BepInEx/config/aedenthorn.RequirementCheck.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.

To reload the config from the config file, type requirementcheck reset into the game's console (F5).

Note that this should only work on the server, since config values are enforced using ServerSync.