GetGoodEvilValue(object)
Determines a creature's relative good/evil rating.
int GetGoodEvilValue( object oCreature );
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)); }
See Also
functions: | GetFactionAverageGoodEvilAlignment | GetFactionAverageLawChaosAlignment | GetLawChaosValue |
categories: | Alignment Functions |
author: Tom Cassiotis, editor: Jeremy Spilinek