70 creature->
getClass(MAX<int32>(ctx.
getParams()[0].getInt() - 1, 0), classID, level);
84 creature->
getClass(MAX<int32>(ctx.
getParams()[0].getInt() - 1, 0), classID, level);
185 const int type = ctx.
getParams()[0].getInt();
186 const int nth = ctx.
getParams()[2].getInt();
204 if (!master || !henchman)
213 if (!master || !henchman)
uint8 getHitDice() const
Returns the number of hit dice, which is effectively the total number of levels.
A container of Neverwinter Nights objects.
void removeHenchman(Aurora::NWScript::FunctionContext &ctx)
static Creature * toCreature(Aurora::NWScript::Object *object)
Context of an NWScript function.
bool hasFeat(uint32 feat) const
Does the creature have this feat?
void getAssociate(Aurora::NWScript::FunctionContext &ctx)
Basic Neverwinter Nights type definitions.
void setCommandable(Aurora::NWScript::FunctionContext &ctx)
void removeAssociate(Creature &ssociate)
Remove an associate (henchman, familiar, ...).
uint8 getAbility(Ability ability) const
Return a creature's ability score.
uint8 getGoodEvil() const
Get the creature's good-evil alignment.
static const uint32 kClassInvalid
void getCommandable(Aurora::NWScript::FunctionContext &ctx)
void getXP(Aurora::NWScript::FunctionContext &ctx)
uint32 getXP() const
Return the creature's XP.
void getGender(Aurora::NWScript::FunctionContext &ctx)
static Aurora::NWScript::Object * getParamObject(const Aurora::NWScript::FunctionContext &ctx, size_t n)
void getAlignmentGoodEvil(Aurora::NWScript::FunctionContext &ctx)
int8 getSkillRank(uint32 skill) const
Return the creature's rank in this skill.
void getMaster(Aurora::NWScript::FunctionContext &ctx)
Utility templates and functions.
Creature * getAssociate(AssociateType type, size_t nth=1) const
Get this creature's nth's associate of a specific type.
bool isCommandable() const
Is this creature commandable (has a modifiable action queue)?
void setCommandable(bool commandable)
Set whether this creature commandable (has a modifiable action queue).
static Creature * toPC(Aurora::NWScript::Object *object)
uint16 getClassLevel(uint32 classID) const
Get the creature's level for this class.
void getLevelByClass(Aurora::NWScript::FunctionContext &ctx)
Alignment getAlignmentGoodEvil(uint8 goodEvil)
void getHitDice(Aurora::NWScript::FunctionContext &ctx)
static const uint32 kRaceInvalid
void getClass(uint32 position, uint32 &classID, uint16 &level) const
Get the creature's class and level at that class slot position.
An object in a Neverwinter Nights area.
void getAbilityScore(Aurora::NWScript::FunctionContext &ctx)
void getGoodEvilValue(Aurora::NWScript::FunctionContext &ctx)
uint32 getRace() const
Return the creature's race value.
void getAlignmentLawChaos(Aurora::NWScript::FunctionContext &ctx)
void getLawChaosValue(Aurora::NWScript::FunctionContext &ctx)
uint8 getLawChaos() const
Get the creature's law-chaos alignment.
void getClassByPosition(Aurora::NWScript::FunctionContext &ctx)
void addAssociate(Creature &associate, AssociateType type)
Add an associate (henchman, familiar, ...).
int32 getCurrentHP() const
Return the current HP this creature has.
Gender getGender() const
Get the creature's gender.
A creature in a Neverwinter Nights area.
void addHenchman(Aurora::NWScript::FunctionContext &ctx)
void getRacialType(Aurora::NWScript::FunctionContext &ctx)
Creature * getMaster() const
Return the creature's master.
void getHasFeat(Aurora::NWScript::FunctionContext &ctx)
void getIsDead(Aurora::NWScript::FunctionContext &ctx)
void getIsPC(Aurora::NWScript::FunctionContext &ctx)
bool isDM() const
Is the creature a dungeon master?
Alignment getAlignmentLawChaos(uint8 lawChaos)
void getIsDM(Aurora::NWScript::FunctionContext &ctx)
void getLevelByPosition(Aurora::NWScript::FunctionContext &ctx)
void getHenchman(Aurora::NWScript::FunctionContext &ctx)
void getSkillRank(Aurora::NWScript::FunctionContext &ctx)
Neverwinter Nights engine functions.