Valheim
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
2 days ago
Downloads
16K
Size
203KB
Dependency string
MidnightMods-Deathlink-0.11.0
ADDatHost Valheim hosting
30% off!

Deathlink - Rougelike Control

Progression and Choice based death control.

Bringing together players from many different experiance levels often means that some players struggle while others are bored. Deathlink provides a way to challenge and reward players based on their appetite for risk.

Additionally, death is one of the few things that does not progress through the game. Deathlink changes that by providing a skill that levels up faster the longer you stay alive, and scales your death changes based on that skill.

Example Deathlink Choices

Vanilla Minimal Hardcore
deathlink_selection deathlink_selection2 deathlink_selection3

Configuration

Deathlink has extensive yaml based configuration options. However it can be used with the default configuration.

Each of these configuration sections below can be applied to any number of profiles which users can select. Deathlink selection is one per character and is stored on the server the character is on,a character can have different selections in singleplayer or multiplayer.

DeathChoices.yaml is written with a full explanation of every setting at the top of the file, so you can configure it without coming back here. Edits are picked up while the game is running and are pushed to connected clients automatically.

Settings are matched without regard to case, so files written by older versions keep working untouched. A mistake costs you one setting rather than the whole file: an unknown setting or a misspelled value is reported in the log with its line number and skipped, and if the file cannot be parsed at all, the levels that last loaded cleanly stay in use and your file is left exactly as you wrote it.

Example Configuration

Click for full example
Rougelike3:
  DisplayName: Berserker
  DeathStyle:
    FoodLossOnDeath: true
    FoodLossUsesDeathlink: true
    MaxEquipmentKept: 3
    SkillLossOnDeath: true
    MaxSkillLossPercentage: 0.2
    MinSkillLossPercentage: 0.05
    ItemLossStyle: DeathlinkBased
    NonSkillCheckedItemAction: Tombstone
  DeathSkillRate: 1
  ResourceModifiers:
    Wood:
      Prefabs:
      - Wood
      - FineWood
      - RoundLog
      - YggdrasilWood
      - Blackwood
      BonusModifier: 1.5
      BonusActions:
      - Harvesting
    Ore:
      Prefabs:
      - CopperOre
      - TinOre
      - IronScrap
      - SilverOre
      - BlackMetalScrap
      - CopperScrap
      - FlametalOreNew
      BonusModifier: 1.5
      BonusActions:
      - Harvesting
  SkillModifiers:
    All:
      Skill: All
      BonusModifier: 1.2
  DeathLootModifiers:
    AmberPearl:
      Prefab: AmberPearl
      Chance: 0.05
      Amount: 1
      BonusActions:
      - Kills

Deathstyle Configuration

Deathstyle configuration governs what happens when you die.

  DeathStyle:
    FoodLossOnDeath: true                  # Player will loose food on death or not
    FoodLossUsesDeathlink: true            # Food loss is based on skill level from loosing all foods, to none
    MaxEquipmentKept: 3                    # The maximum number of equiped items to keep on death
    SkillLossOnDeath: true                 # Whether or not skill loss occurs on death
    MaxSkillLossPercentage: 0.2            # The maximum percentage of skill lost on death (you start here, example is 20%)
    MinSkillLossPercentage: 0.05           # The minimum skill loss, at max skill level (example is 5%)
    ItemLossStyle: DeathlinkBased          # Item loss style, can be None, DestroyNonWeaponArmor, DeathlinkBased, DestroyAll
    NonSkillCheckedItemAction: Tombstone   # If items are set to avoid skillcheck, what happens to them, can be Destroy, Tombstone, Save
    ItemSavedStyle: Tombstone              # Items that are saved can be: OnCharacter, Tombstone
  DeathSkillRate: 1                        # Rate at which Deathlink skill increases, higher is faster
  Fallback: true                           # Marks the level players are moved to when the one they had
                                           # selected is renamed or removed. Set it on exactly one level.

Resource Configuration

Resource configuration provides a way to get additional resources from kills or harvesting

ResourceModifiers:
    Wood:                     # Name of the entry, can be anything
      SkillInfluence: false   # Off by default: the bonus applies in full from the start. Set true to
                              # scale it in with Deathlink skill instead - nothing at 0%, full at 100%.
      Prefabs:                # List of prefabs that this bonus applies to
      - Wood
      - FineWood
      - RoundLog
      - YggdrasilWood
      - Blackwood
      BonusModifier: 1.5       # The bonus modifier, larger is more, 1.5 is 50% more
      BonusActions:           # List of actions that will trigger this bonus can be Kills or Harvesting
      - Harvesting
    Ore:
      Prefabs:
      - CopperOre
      - TinOre
      - IronScrap
      - SilverOre
      - BlackMetalScrap
      - CopperScrap
      - FlametalOreNew
      BonusModifier: 1.5
      BonusActions:
      - Harvesting

Skill Configuration

Skill configuration proviedes a way to grant additional XP or reduced XP for any or all skills

  SkillModifiers:
    All:                      # Name of the entry, can be anything
      SkillInfluence: false   # Off by default: the bonus applies in full from the start. Set true to
                              # scale it in with Deathlink skill instead - nothing at 0%, full at 100%.
      Skill: All              # The skill that this bonus applies to, can be All or any specific skill name
      BonusModifier: 1.2       # The bonus modifier, larger is more, 1.2 is 20% more.
                              # Matching entries are ADDED together, not multiplied.

Death Loot Configuration

Death loot configuration provides a way to gain additional items on kills, specific to player Death choice

  DeathLootModifiers:
    AmberPearl:               # Name of the entry, can be anything
      Prefab: AmberPearl      # The prefab name of the item to drop
      Chance: 0.05            # The base chance of the item dropping, 0.05 is 5%
      Amount: 1               # The amount of the item to drop
      BonusActions:           # List of actions that will trigger this bonus can be Kills or Harvesting
      - Kills

Resetting a players choice

You or someone you play with has made a terrible choice, they thought they were so hardcore and now they can't stay alive.

Well! There is a solution! As an admin you can reset yours or other players death choices, ensure that you have the console enabled by setting your launch paramters in your mod manager to include -console

In game run the command dl-reset-choice [playername] eg: dl-reset-choice Midnight or dl-reset-choice 91231230123. This command will clear the players choice from the server, and remove their choice from their character. They should open their inventory again to select a new choice.

If you are having trouble matching an existing player in the game, be sure to turn logging on for Deathlink, and validate the steam ID or player name you are using matches a player in the game.

Localization

External localization can be configured at BepInEx\config\Deathlink\localizations. This folder and the default localization will be generated and added the first time this mod runs. New localization keys will be added to localization files as they are added to the mod. Existing localization keys will not be changed, so your localization customizations are safe.

Questions, Bug reports and feedback

Got a bug to report or just want to chat about the mod? Drop by the discord or github. discord logo github logo

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.