GetIsPlayableRacialType(object)

From NWN Lexicon
Jump to navigationJump to search

Determine whether the target creature is one of the playable races.

int GetIsPlayableRacialType(
    object oCreature
);

Parameters

oCreature
Creature to test.


Description

Returns TRUE if the creature given as an argument is a member of one of the main playable races (dwarf, elf, gnome, half-elf, halfling, half-orc, or human). Otherwise, returns FALSE.

This is only checking if the ID is values 0 through 6 of racialtypes.2da (essentially via. GetRacialType). It does not check for IsPlayable in racialtypes.2da.


See Also

functions: 

GetRacialType



 author: Jason Harris, editor: Charles Feduke