Morrowind Mod:XSetCharge

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

A function added by MWSE.

XSetCharge sets the current charge on a 'cast when used' or 'cast when strikes' enchanted item. May not work if the item has never been used. Returns 1 if successful, 0 if failed.

Syntax[edit]

success (long): ref->xSetCharge charge (long)

Example[edit]

long ref
long success

setx success to ref->xSetCharge 55

See Also[edit]

xGetOwner
xGetWeight
xGetValue
xGetQuality
xGetEncumb
xGetMaxCondition
xGetCharge
xGetMaxCharge
xSetValue
xSetWeight
xSetQuality
xGetCondition
xSetMaxCondition
xSetCondition
xSetMaxCharge