Open main menu

UESPWiki β

Morrowind Mod:XSetCharge

< Mod / Morrowind: Morrowind Mod: MWSE

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.

SyntaxEdit

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

ExampleEdit

long ref
long success

setx success to ref->xSetCharge 55

See AlsoEdit