GetGoodEvilValue
From NWN Lexicon
Contents |
[edit] GetGoodEvilValue(object)
Determines a creature's relative good/evil rating.
int GetGoodEvilValue( object oCreature );
[edit] Parameters
oCreature
The creature to inspect.
[edit] 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.
[edit] Remarks
100 is the most good and 0 is the most evil.
[edit] Version
1.22
[edit] 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)); }
[edit] See Also
functions: |
author: Tom Cassiotis, editor: Jeremy Spilinek