Creature
Information about a scourge creature (monster, player or npc.)

string getName()

string getMonsterType()
Return the creature's monster type or empty string if it's not a monster.

int getLevel()

int getExpOfNextLevel()
How many experience points are needed for the character to gain the next level.

int getExp()

int getMoney()

int getHp()

int getStartingHp()
The hit-points the character gains when leveling up.

int getMaxHp()
The total amount of hit-points for this character. (If completely healed.)

int getMp()

int getStartingMp()
The magic-points this character gains when leveling up.

int getMaxMp()
The total amount of magic-points for this character. (If completely restored.)

int getThirst()
A value between 0-10 indicating how thristy the character is. 0-most, 10-least thirsty.

int getHunger()
A value between 0-10 indicating how hungry the character is. 0-most, 10-least hungry.

int getSkill(int p1)
The point value for the given skill index. See ScourgeGame.getSkillCount() and ScourgeGame.getSkillName().

int getSkillByName(string p1)
Same as getSkill() but instead of an index, the skill is referenced by name. See ScourgeGame.getSkillCount() and ScourgeGame.getSkillName().

int getStateMod(int p1)
Returns a boolean value if the state-mod is in effect for this character. See ScourgeGame.getStateModCount() and ScourgeGame.getStateModName().

int getProtectedStateMod(int p1)
Returns a boolean value indicating if the character is protected from the given state mod. See ScourgeGame.getStateModCount() and ScourgeGame.getStateModName().

int getSex()
Returns the creature's sex: 0-male, 1-female.

bool hasCapability()
Does this creature currently able to use this special capability?

float getArmor()
Return the armor value (sum of armor items worn modified by skills.)

void setLevel(int p1)

void setExp(int p1)

void setMoney(int p1)

void setHp(int p1)

void takeDamage(float p1)

void setMp(int p1)

void setThirst(int p1)

void setHunger(int p1)

void setSkill(int p1, int p2)

void setSkillByName(string p1, int p2)

void setStateMod(int p1, bool p2)

void setProtectedStateMod(int p1, bool p2)

void setSex(int p1)
Set the creature's sex: 0-male, 1-female.

bool isOfClass(string p1)
Returns a boolean if the character is of the character class given in the argument. This function is slow because it does a string compare on the class's name.

bool isOfRootClass(string p1)
Returns a boolean if the character's root class is the argument. This function is slow because it does a string compare on the class's name.

string getDeity()
Return the character's chosen deity's name.

Creature getTargetCreature()
Return the creature's target creature of NULL if there isn't one.

Item getItemAtLocation(int p1)
Return the item currently equipped at the specified location. (location is left-hand, right-hand, etc.)

void startConversation()
Start a conversation with this creature.

void startConversationAbout()
Start a conversation with this creature about a specific topic.

void setIntro()
Set this NPC's intro text to the text referenced by this keyphrase in the .txt file.

void addInventoryByName()
Add a new item of this name to the creature's inventory.

bool isCharacter()
Is this creature a pc?

bool isMonster()
Is this creature a monster?

bool isNpc()
Is this creature an npc?