72 creature->
getClass(MAX<int32>(ctx.
getParams()[0].getInt() - 1, 0), classID, level);
86 creature->
getClass(MAX<int32>(ctx.
getParams()[0].getInt() - 1, 0), classID, level);
163 ctx.
getReturn() = (
int32) ((creature && (creature == pc)) ? 1 : 0);
uint16 getClassLevel(uint32 classID) const
Get the creature's level for this class.
void getIsPC(Aurora::NWScript::FunctionContext &ctx)
The context handling the gameplay in Neverwinter Nights 2.
bool hasFeat(uint32 feat) const
Does the creature have this feat?
void getLevelByPosition(Aurora::NWScript::FunctionContext &ctx)
void getHitDice(Aurora::NWScript::FunctionContext &ctx)
void getRacialType(Aurora::NWScript::FunctionContext &ctx)
uint8 getGoodEvil() const
void getClassByPosition(Aurora::NWScript::FunctionContext &ctx)
static const uint32 kClassInvalid
void getIsDM(Aurora::NWScript::FunctionContext &ctx)
Context of an NWScript function.
void getFactionLeader(Aurora::NWScript::FunctionContext &ctx)
uint32 getGender() const
Get the creature's gender.
static Creature * toCreature(Aurora::NWScript::Object *object)
uint8 getAbility(Ability ability) const
Return a creature's ability score.
The context needed to run a Neverwinter Nights 2 module.
uint8 getHitDice() const
Returns the number of hit dice, which is effectively the total number of levels.
Neverwinter Nights 2 engine functions.
A creature in a Neverwinter Nights 2 area.
A container of Neverwinter Nights 2 objects.
void getSkillRank(Aurora::NWScript::FunctionContext &ctx)
Alignment getAlignmentGoodEvil(uint8 goodEvil)
uint32 getRace() const
Return the creature's race value.
Utility templates and functions.
Basic Neverwinter Nights 2 type definitions.
void getIsRosterMember(Aurora::NWScript::FunctionContext &ctx)
void getAlignmentGoodEvil(Aurora::NWScript::FunctionContext &ctx)
int8 getSkillRank(uint32 skill) const
Return the creature's rank in this skill.
Alignment getAlignmentLawChaos(uint8 lawChaos)
void getClass(uint32 position, uint32 &classID, uint16 &level) const
Get the creature's class and level at that class slot position.
bool isDM() const
Is the creature a dungeon master?
void getHasFeat(Aurora::NWScript::FunctionContext &ctx)
void getLevelByClass(Aurora::NWScript::FunctionContext &ctx)
void getIsDead(Aurora::NWScript::FunctionContext &ctx)
int32 getCurrentHP() const
Return the current HP this creature has.
void getAlignmentLawChaos(Aurora::NWScript::FunctionContext &ctx)
void getAbilityScore(Aurora::NWScript::FunctionContext &ctx)
static Aurora::NWScript::Object * getParamObject(const Aurora::NWScript::FunctionContext &ctx, size_t n)
An object in a Neverwinter Nights 2 area.
void getXP(Aurora::NWScript::FunctionContext &ctx)
Creature * getPC()
Return the currently playing PC.
void getLawChaosValue(Aurora::NWScript::FunctionContext &ctx)
Module & getModule()
Return the module context.
uint8 getLawChaos() const
void getGender(Aurora::NWScript::FunctionContext &ctx)
void getGoodEvilValue(Aurora::NWScript::FunctionContext &ctx)
static Creature * toPC(Aurora::NWScript::Object *object)
static const uint32 kRaceInvalid
uint32 getXP() const
Return the creature's XP.