Morrowind Mod:XSetCondition

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

A function added by MWSE.

XSetCondition sets the current condition of armor and weapons. Armor must not be at 100% or this function will fail. It must have already sustained some damage. Returns 1 if successful, 0 if failed.

Syntax[edit]

success (long): ref->xSetCondition condition (long)

Example[edit]

long ref
long condition
long success

setx success to ref->xSetCondition 55

See Also[edit]

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