Jump to content

Charging enchantments through scripts


WraithFF

Recommended Posts

I'm wondering if there's a way of recharging or increasing the current charge of an enchanted weapon through the use of scripts.

 

I've looked at various ways of doing this, but the closest to something like this that I've found are the functions:

int GetEnchantmentValue()
SetEnchantmentValue(int value)

from the creation kit Weapon Script page (http://www.creationkit.com/Weapon_Script).

However these functions do not affect the current charge, but instead the maximum charge of the item.

 

I managed to solve it, so no need for any replies. This is how it's done:

The values I was searching for were actor values called "LeftItemCharge" and "RightItemCharge". These give the current charge of the item, unlike the functions showed above.

 

Good day.

Edited by WraithFF
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...