0 of 0

File information

Last updated

Original upload

Created by

yyatsuta

Uploaded by

yyatsuta

Virus scan

Safe to use

About this mod

Toggle weapon enchantments to avoid wasting charge.

Requirements
Permissions and credits
Changelogs
Description

This mod allows you to toggle weapon enchantments with G key (can be configured). When enchantments are disabled, weapon enchantments won't trigger on hitting an enemy. This allows you to avoid wasting charge on weak enemies, or lets you experiment with high cost enchantments that you would only want to use once in battle.

This works for all enchanted weapons except staves, seeing as their entire point is to cast spells.

This mod is a port of Controlled Weapon Enchants mod for Morrowind by Axemagister and Kurpulio (although this mod's internal workings are quite different).

Details

The way this mod works is, if you have enchantments disabled and you have enchanted weapon equipped, it sets the charge cost of the enchantment to 100000. If you enable enchantments or unequip that weapon, the enchantment's charge cost will reset back to normal. The effect of this is that the enchantment won't be triggered on hitting an enemy because of a cost that no weapon can fulfill.

100000 is an arbitrary number that's higher than all vanilla enchanted weapon capacities, and hopefully modded weapons too, but if that's not the case - please tell me in the comments and I will raise it.

Toggle enchantments key is disabled while any menu is open to prevent unintentional activation when typing, as well as to prevent a certain exploit (see below).

Known Issues

There are three mildly annoying side effects to how this mod disables enchants:

  • You will be getting a notification that your weapon doesn't have enough charge;
  • In inventory, tooltip of equipped weapon will show that it has 0 uses;
  • Weapon's value skyrockets due to high enchantment cost.
I don't know how to fix 1, although you can disable "not enough charge" notification entirely with a bashed patch (Tweak Settings -> Msg: Not Enough Charge).

I think 2 can be fixed by overwriting values displayed in menus, and if I'll find it in me to figure out how UI functions work - I will. Probably.

3 is the only one that isn't cosmetic, and is quite game-breaking. To address this, enchantments are force enabled when bartering, and since toggle key is disabled in menus, they cannot be re-disabled while bartering. If you had enchantments disabled before bartering, they will get re-disabled after you stop bartering. Just like 2, I think it's possible to modify UI to show the correct price in inventory too, so the cosmetic side of things may also be fixed.

HUD Status Bars

I didn't bother creating an indicator for whether enchantments are enabled or disabled because HUD Status Bars exists, and you probably already have it, and if you don't I highly recommend it.

When you have it installed, you can create an UI element to show enchantment status by accessing "CWE.areEnchantmentsEnabled" variable. For example:

set tnoHSB.hud_type to 1
set tnoHSB.hud_custom to sv_Construct "Misc\Flash"
set tnoHSB.hud_ref to sv_Construct "player.getEquippedObject 16"
set tnoHSB.hud_visible to sv_Construct "CWE.areEnchantmentsEnabled && getObjectCharge hud_ref && getWeaponType hud_ref != 4"
set tnoHSB.hud_size to 75
set tnoHSB.hud_x to HUDweaponRight
set tnoHSB.hud_x_adjust to -24
set tnoHSB.hud_y to HUDweaponHigh
set tnoHSB.hud_depth to 100
SetStage tnoHSB 10

This will show a magicka cost icon on a weapon icon when you have an enchanted weapon equipped (that isn't a staff) and enchantments enabled (see images for how it looks in-game).

Uninstallation

Before uninstalling the mod, make sure to not have a custom enchanted weapon equipped with enchantments disabled. If you uninstall the mod in this situation, the enchantment cost of that weapon will get stuck at 100000 forever. Either enable enchantments or unequip that weapon, and then the mod can be safely uninstalled.

Thanks

To Axemagister for creating the original mod and giving me permission to port it to Oblivion.

Contact

It is likely that I won't notice a message on Nexus, so please try to reach me on xOBSE Discord server via a ping (@yyatsuta) instead. Please don't DM me though.