UT AttributeCheck

From Dragon Age Toolset Wiki
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.