UT AttributeCheck

From Dragon Age Toolset Wiki
Revision as of 18:55, 10 February 2010 by BryanDerksen (Talk | contribs) (Created page with '{{dafunction |name = UT_AttributeCheck |brief = Checks the attribute level of oObject |param1type = int |param1name = nAttribute |param1desc = The attribute being checked |param1...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Checks the attribute level of oObject

int UT_AttributeCheck(
int nAttribute,
int nLevel,
object oCreature = OBJECT_SELF
);
Parameters:
nAttribute
The attribute being checked
nLevel
The level of the attribute being checked (UT_ATTR_HIGH, UT_ATTR_MED or UT_ATTR_LOW)
oCreature
the creature doing the attribute check
Returns:

TRUE if the attribute matches the specified level range, FALSE otherwise.

Source:

Core Resources.utility_h

Description

This function checks the attribute level of oObject. nAttribute should be a constant represneting one of the attributes. Notice that an attribute level is dynamic and depends on the player’s level – the player will need to keep increasing his attribute in order to keep it in the ‘high’ level.