GetGoodEvilValue
From NWN Lexicon
Jump to navigationJump to searchGetGoodEvilValue(object)
Determines a creature's relative good/evil rating.
Parameters
oCreature
The creature to inspect.
Description
Returns an integer between 0 and 100 (inclusive) that represents oCreature's Good/Evil alignment, and -1 if oCreature is not a valid creature.
Remarks
100 is the most good and 0 is the most evil.
Version
1.22
Example
// Sends a message to the first player indicating their good/evil value.
void main()
{
int iGoodEvil = GetGoodEvilValue(GetFirstPC());
SendMessageToPC(GetFirstPC(),"Your Good/Evil Value == " + IntToString(iGoodEvil));
}
void main()
{
int iGoodEvil = GetGoodEvilValue(GetFirstPC());
SendMessageToPC(GetFirstPC(),"Your Good/Evil Value == " + IntToString(iGoodEvil));
}
See Also
functions: |
author: Tom Cassiotis, editor: Jeremy Spilinek