File information

Last updated

Original upload

Created by

KG

Uploaded by

KillingGodVH

Virus scan

Safe to use

Tags for this mod

About this mod

Mod brings old MMORPG's equipment enchantment experience to Valheim

Requirements
Permissions and credits
Translations
Changelogs
Donations
Mod Source: 
SOURCE
Like my mods? Support me: [email protected] (Paypal)

Installation and configs
Spoiler:  
Show

1) Ship plugin to all clients and on your dedicated server
2) After game/server start new folder in configs will be created: ValheimEnchantmentSystem
All .cfg and .yml files are applied while server is running and doesn't need restart

Folder configs / structure:



Configs:

1) EnchantmentChances.yml - yaml file with global chances for all enchantment levels
2) EnchantmentColors.yml - yaml file with colors for all enchantment levels
3) EnchantmentReqs.yml - yaml file with enchantment required items for all enchantment levels and items
4) EnchantmentStats_Armor.yml - yaml file with enchantment stats for all enchantment levels (ARMOR)
5) EnchantmentStats_Weapons.yml - yaml file with enchantment stats for all enchantment levels (WEAPONS)
6) kg.ValheimEnchantmentSystem.cfg - config file with main plugin settings
7) ScrollRecipes.cfg - config file with enchant scroll recipes



Config Default Values:

EnchantmentChances.yml
Spoiler:  
Show

1:
  success: 80
2:
  success: 75
3:
  success: 70
4:
  success: 60
5:
  success: 55
6:
  success: 50
7:
  success: 40
8:
  success: 35
9:
  success: 30
  destroy: 99
10:
  success: 26
11:
  success: 22
12:
  success: 18
13:
  success: 14
14:
  success: 10
15:
  success: 8
16:
  success: 6
17:
  success: 5
18:
  success: 4
19:
  success: 3


EnchantmentColors.yml 
Spoiler:  
Show

1:
  color: '#1E151C01'
2:
  color: '#1E181F02'
3:
  color: '#1E1A2A03'
4:
  color: '#1E1E3AA6'
5:
  color: '#1E1E4AB0'
6:
  color: '#23415A9B'
7:
  color: '#28577EA2'
8:
  color: '#1E508EA9'
9:
  color: '#14469EB0'
10:
  color: '#0A3CAFB7'
11:
  color: '#0038BFC0'
12:
  color: '#0038BFC0'
13:
  color: '#001CDBC4'
14:
  color: '#001CDBDB'
15:
  color: '#001CDFE2'
16:
  color: '#A0140EE9'
17:
  color: '#B40A0EF0'
18:
  color: '#C8000EF7'
19:
  color: '#D2000EFE'
20:
  color: '#FF000EFF'



EnchantmentReqs.yml
Spoiler:  
Show

- enchant_prefab:
prefab: kg_EnchantScroll_Weapon_S
amount: 1
  blessed_enchant_prefab:
prefab: kg_EnchantScroll_Weapon_Blessed_S
amount: 1
  Items:
- AtgeirHimminAfl
- AxeJotunBane
- BowSpineSnap
- PickaxeBlackMetal
- ShieldCarapace
- ShieldCarapaceBuckler
- SledgeDemolisher
- SpearCarapace
- StaffFireball
- StaffIceShards
- StaffShield
- StaffSkeleton
- SwordMistwalker
- THSwordKrom
- CrossbowArbalest
- SwordCheat
- enchant_prefab:
prefab: kg_EnchantScroll_Armor_S
amount: 1
  blessed_enchant_prefab:
prefab: kg_EnchantScroll_Armor_Blessed_S
amount: 1
  Items:
- ArmorCarapaceChest
- ArmorCarapaceLegs
- ArmorMageChest
- ArmorMageLegs
- CapeFeather
- HelmetCarapace
- HelmetMage
- enchant_prefab:
prefab: kg_EnchantScroll_Weapon_A
amount: 1
  blessed_enchant_prefab:
prefab: kg_EnchantScroll_Weapon_Blessed_A
amount: 1
  Items:
- AtgeirBlackmetal
- AxeBlackMetal
- BattleaxeCrystal
- BowDraugrFang
- Demister
- FistFenrirClaw
- KnifeBlackMetal
- KnifeSilver
- KnifeSkollAndHati
- MaceSilver
- ShieldBlackmetal
- ShieldBlackmetalTower
- ShieldSilver
- SpearWolfFang
- SwordBlackmetal
- SwordSilver
- enchant_prefab:
prefab: kg_EnchantScroll_Armor_A
amount: 1
  blessed_enchant_prefab:
prefab: kg_EnchantScroll_Armor_Blessed_A
amount: 1
  Items:
- ArmorWolfChest
- ArmorWolfLegs
- CapeLinen
- CapeLox
- CapeWolf
- HelmetDrake
- ArmorFenringChest
- ArmorFenringLegs
- HelmetFenring
- enchant_prefab:
prefab: kg_EnchantScroll_Weapon_B
amount: 1
  blessed_enchant_prefab:
prefab: kg_EnchantScroll_Weapon_Blessed_B
amount: 1
  Items:
- AtgeirIron
- AxeIron
- Battleaxe
- BowHuntsman
- Lantern
- MaceIron
- MaceNeedle
- PickaxeIron
- ShieldBanded
- ShieldIronBuckler
- ShieldIronSquare
- ShieldIronTower
- ShieldSerpentscale
- SledgeIron
- SpearElderbark
- SwordIron
- TankardAnniversary
- TorchMist
- KnifeChitin
- SpearChitin
- enchant_prefab:
prefab: kg_EnchantScroll_Armor_B
amount: 1
  blessed_enchant_prefab:
prefab: kg_EnchantScroll_Armor_Blessed_B
amount: 1
  Items:
- ArmorIronChest
- ArmorIronLegs
- ArmorPaddedCuirass
- ArmorPaddedGreaves
- ArmorRootChest
- ArmorRootLegs
- HelmetIron
- HelmetPadded
- HelmetRoot
- enchant_prefab:
prefab: kg_EnchantScroll_Weapon_C
amount: 1
  blessed_enchant_prefab:
prefab: kg_EnchantScroll_Weapon_Blessed_C
amount: 1
  Items:
- AtgeirBronze
- AxeBronze
- Cultivator
- MaceBronze
- PickaxeBronze
- ShieldBronzeBuckler
- SpearBronze
- SwordBronze
- enchant_prefab:
prefab: kg_EnchantScroll_Armor_C
amount: 1
  blessed_enchant_prefab:
prefab: kg_EnchantScroll_Armor_Blessed_C
amount: 1
  required_skill: 10
  Items:
- ArmorBronzeChest
- ArmorBronzeLegs
- ArmorTrollLeatherChest
- ArmorTrollLeatherLegs
- CapeTrollHide
- HelmetBronze
- HelmetTrollLeather
- enchant_prefab:
prefab: kg_EnchantScroll_Weapon_D
amount: 1
  blessed_enchant_prefab:
prefab: kg_EnchantScroll_Weapon_Blessed_D
amount: 1
  Items:
- AxeFlint
- Bow
- BowFineWood
- Hoe
- KnifeButcher
- KnifeCopper
- KnifeFlint
- PickaxeAntler
- PickaxeStone
- ShieldBoneTower
- ShieldWood
- ShieldWoodTower
- SpearFlint
- SledgeStagbreaker
- enchant_prefab:
prefab: kg_EnchantScroll_Armor_D
amount: 1
  blessed_enchant_prefab:
prefab: kg_EnchantScroll_Armor_Blessed_D
amount: 1
  Items:
- ArmorLeatherChest
- ArmorLeatherLegs
- CapeDeerHide
- HelmetLeather
- ArmorRagsChest
- ArmorRagsLegs



EnchantmentStats_Armor.yml
Spoiler:  
Show

1:
  armor_percentage: 2
2:
  armor_percentage: 3
3:
  armor_percentage: 4
4:
  armor_percentage: 5
5:
  armor_percentage: 6
6:
  armor_percentage: 7
7:
  armor_percentage: 9
8:
  armor_percentage: 11
9:
  armor_percentage: 13
10:
  armor_percentage: 15
11:
  armor_percentage: 17
12:
  armor_percentage: 19
13:
  armor_percentage: 22
14:
  armor_percentage: 25
15:
  armor_percentage: 28
16:
  armor_percentage: 31
17:
  armor_percentage: 35
18:
  armor_percentage: 39
19:
  armor_percentage: 44
20:
  armor_percentage: 50


EnchantmentStats_Weapons.yml
Spoiler:  
Show

1:
  damage_percentage: 2
2:
  damage_percentage: 4
3:
  damage_percentage: 6
4:
  damage_percentage: 8
5:
  damage_percentage: 10
6:
  damage_percentage: 12
7:
  damage_percentage: 16
8:
  damage_percentage: 20
9:
  damage_percentage: 24
10:
  damage_percentage: 28
11:
  damage_percentage: 32
12:
  damage_percentage: 36
13:
  damage_percentage: 40
14:
  damage_percentage: 45
15:
  damage_percentage: 50
16:
  damage_percentage: 55
17:
  damage_percentage: 60
18:
  damage_percentage: 70
19:
  damage_percentage: 85
20:
  damage_percentage: 100


kg.ValheimEnchantmentSystem.cfg
Spoiler:  
Show

[Enchantment]
## The level until which enchantments won't destroy the item. Set to 0 to disable.
# Setting type: Int32
# Default value: 3
SafetyLevel = 3
## Show the chance of enchantment in the item tooltip.
# Setting type: Boolean
# Default value: true
ShowEnchantmentChance = true
## Drop enchantment on item upgrade.
# Setting type: Boolean
# Default value: false
DropEnchantmentOnUpgrade = false
## Destroy item on enchantment failure. Otherwise decrease enchantment level by 1.
# Setting type: Boolean
# Default value: false
ItemDestroyedOnFailure = false
## Allow jewelcrafting to copy enchantment from one item to another using mirror.
# Setting type: Boolean
# Default value: false
AllowJewelcraftingMirrorCopyEnchant = false
## Additional enchantment chance per level of Enchantment skill.
# Setting type: Single
# Default value: 0.06
AdditionalEnchantmentChancePerLevel = 0.06
## Allow VFX on armor.
# Setting type: Boolean
# Default value: false
AllowVFXArmor = false
[Enchantment Scroll Station]
## Station requirements.
# Setting type: String
# Default value: SurtlingCore:3:true:Stone:30:false:Flint:20:false
Station Build Requirements = SurtlingCore:3:true:Stone:30:false:Flint:20:false
[Scrolls]
## Allow monsters to drop scrolls.
# Setting type: Boolean
# Default value: true
Drop From Monsters = true
## Chance to drop from enemies.
# Setting type: Single
# Default value: 3
Drop Chance = 3
## Chance to drop from bosses.
# Setting type: Single
# Default value: 100
Drop Chance (Bosses) = 100
## Chance to drop from enemies.
# Setting type: Single
# Default value: 0.25
Blessed Drop Chance = 0.25
## Chance to drop from bosses.
# Setting type: Single
# Default value: 40
Blessed Drop Chance (Bosses) = 40
## Comma separated list of prefabs to exclude from dropping scrolls.
# Setting type: String
# Default value: TentaRoot
Exclude Prefabs From Drop = TentaRoot
## Tier of scrolls Meadows (D C B A S)
# Setting type: String
# Default value: D
Meadows Tier = D
## Tier of scrolls BlackForest (D C B A S)
# Setting type: String
# Default value: C
BlackForest Tier = C
## Tier of scrolls Swamp (D C B A S)
# Setting type: String
# Default value: B
Swamp Tier = B
## Tier of scrolls Ocean (D C B A S)
# Setting type: String
# Default value: B
Ocean Tier = B
## Tier of scrolls Mountain (D C B A S)
# Setting type: String
# Default value: A
Mountain Tier = A
## Tier of scrolls Plains (D C B A S)
# Setting type: String
# Default value: A
Plains Tier = A
## Tier of scrolls Mistlands (D C B A S)
# Setting type: String
# Default value: S
Mistlands Tier = S
## Tier of scrolls Ashlands (D C B A S)
# Setting type: String
# Default value: S
Ashlands Tier = S
## Tier of scrolls Deepnorth (D C B A S)
# Setting type: String
# Default value: S
Deepnorth Tier = S
[Skill Scrolls]
## Allow monsters to drop enchant skill exp scrolls.
# Setting type: Boolean
# Default value: true
Drop From Monsters (Skill exp) = true
## Chance to drop from enemies.
# Setting type: Single
# Default value: 0.1
Drop Chance (Skill exp) = 0.1
## Skill EXP Scroll D
# Setting type: Int32
# Default value: 25
Skill EXP Scroll D = 10
## Skill EXP Scroll C
# Setting type: Int32
# Default value: 50
Skill EXP Scroll C = 20
## Skill EXP Scroll B
# Setting type: Int32
# Default value: 75
Skill EXP Scroll B = 40
## Skill EXP Scroll A
# Setting type: Int32
# Default value: 100
Skill EXP Scroll A = 70
## Skill EXP Scroll S
# Setting type: Int32
# Default value: 125
Skill EXP Scroll S = 110


Overrides_EnchantmentChances.yml (as example)
Spoiler:  
Show

- Items:
    - SwordCheat
    - SledgeCheat
  Chances:
    1:
      success: 30
      destroy: 0
    2:
      success: 26
      destroy: 5
    3:
      success: 22
      destroy: 10
    4:
      success: 18
      destroy: 15
    5:
      success: 14
      destroy: 20
    6:
      success: 10
      destroy: 25
    7:
      success: 8
      destroy: 30
    8:
      success: 6
      destroy: 35
    9:
      success: 5
      destroy: 40


Overrides_EnchantmentColors.yml (as example)
Spoiler:  
Show


- Items:
    - SwordCheat
    - SledgeCheat
  Colors:
    1:
      color: '#00190019'
    2:
      color: '#00320032'
    3:
      color: '#004B004B'
    4:
      color: '#00640064'
    5:
      color: '#007D007D'
    6:
      color: '#00960096'
    7:
      color: '#00AF00AF'
    8:
      color: '#00C800C8'
    9:
      color: '#00E100E1'
    10:
      color: '#00FA00FA'


Overrides_EnchantmentStats.yml (as example)
Spoiler:  
Show

- Items:
    - SwordCheat
    - SledgeCheat
  Stats:
    1:
      damage_percentage: 5
      damage_fire: 10
    2:
      damage_percentage: 10
      damage_fire: 20
    3:
      damage_percentage: 15
      damage_fire: 30
    4:
      damage_percentage: 20
      damage_fire: 40
    5:
      damage_percentage: 25
      damage_fire: 50
    6:
      damage_percentage: 30
      damage_fire: 60
    7:
      damage_percentage: 35
      damage_fire: 70
    8:
      damage_percentage: 40
      damage_fire: 80
    9:
      damage_percentage: 45
      damage_fire: 90
    10:
      damage_percentage: 50
      damage_fire: 100


All possible stats
Spoiler:  
Show

durability
durability_percentage
armor_percentage
armor
damage_percentage
damage_true
damage_blunt
damage_slash
damage_pierce
damage_chop
damage_pickaxe
damage_fire
damage_frost
damage_lightning
damage_poison
damage_spirit
attack_speed
resistance_blunt
resistance_slash
resistance_pierce
resistance_chop
resistance_pickaxe
resistance_fire
resistance_frost
resistance_lightning
resistance_poison
resistance_spirit
attack_speed
movement_speed
max_hp
max_stamina
hp_regen
stamina_regen

Resistance values: Normal,Resistant,Weak,Immune,Ignore,VeryResistant,VeryWeak




Item Enchantment
Spoiler:  
Show


In order to start item enchanting you should get a piece of equipment that needs to be enchanted and an enchantment scroll.
It can be default scroll prefab or blessed, will which prevent your item from being destroyed or level dropped on failure
Enchant Menu is opened from Inventory screen. You will see small Icon abore repair icon place. Keep in mind that enchant menu only avaliable when you don't have container / crafting station opened:

Menu:

After opening menu you should left click on an item in your inventory, in my case i want to enchant Sword Bronze:

After click:

If you will click "Use Bless" enchant, it will try to use Bless scroll prefab instead. That will prevent your item from being destroyed or level dropped on failure:

After pressing "Enchant" there will be an animation and then result. You can hold Left Shift to skip animation:
![[/url]
Result:

All enchant bonuses completely depend on .yml config that you can edit anytime. Also you can override config for particular prefab / item
Example of +12 and +20 items:
 


Enchantment Scrolls
Spoiler:  
Show


Enchantment scrolls are used in mod by default to enchant items. You can always edit EnchantmentReqs.yml to change it to something else.[/h3]
There are 20 scrolls overall:
1) 5 default scrolls for weapons of each tier (D, C, B, A, S)
2) 5 default scrolls for armors of each tier (D, C, B, A, S)
3) 5 blessed scrolls for weapons of each tier (D, C, B, A, S) (prevent item destruction or level downgrade on failure)
4) 5 blessed scrolls for armors of each tier (D, C, B, A, S) (prevent item destruction or level downgrade on failure)
Each scroll can be dropped from monsters (can be disabled in config) or crafted at Enchantment Scroll Station.
You can edit ScrollRecipes.cfg to change recipes for scrolls.
Main config file has configs related to scrolls (kg.ValheimEnchantmentSystem.cfg):
Spoiler:  
Show

[Scrolls]
Drop From Monsters = true
Drop Chance = 3
Drop Chance (Bosses) = 100
Blessed Drop Chance = 0.25
Blessed Drop Chance (Bosses) = 40
Meadows Tier = D
BlackForest Tier = C
Swamp Tier = B
Ocean Tier = B
Mountain Tier = A
Plains Tier = A
Mistlands Tier = S
Ashlands Tier = S
Deepnorth Tier = S


You can change biome tier drop depending on what mods you're using (for instance if you're not using Ashlands mods you can set its tier to B)
Keep in mind that chances are %, so that 0.25 means 1 in 400 chance to drop from normal monster.
Enchant Scroll Crafting station:

Recipe is configurable in main config




Mod guides and so on can be found in: https://kg.sayless.eu/ves/

Questions or Comments, find KG in the Odin Plus Discord