Open main menu

UESPWiki β

Morrowind Mod:XSetCondition

< Mod / Morrowind: Morrowind Mod: MWSE

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.

SyntaxEdit

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

ExampleEdit

long ref
long condition
long success

setx success to ref->xSetCondition 55

See AlsoEdit