You're looking for something like this?
int GetAlignment(object oCreature)
{
/*
IP_CONST_ALIGNMENT_LG = 0
IP_CONST_ALIGNMENT_LN = 1
IP_CONST_ALIGNMENT_LE = 2
IP_CONST_ALIGNMENT_NG = 3
IP_CONST_ALIGNMENT_TN = 4
IP_CONST_ALIGNMENT_NE = 5
IP_CONST_ALIGNMENT_CG = 6
IP_CONST_ALIGNMENT_CN = 7
IP_CONST_ALIGNMENT_CE = 8
*/
int intGoodEvilPC = GetAlignmentGoodEvil(oCreature);
int intLawChaosPC = GetAlignmentLawChaos(oCreature);
if (intLawChaosPC == ALIGNMENT_LAWFUL) intLawChaosPC = 0;
else if (intLawChaosPC == ALIGNMENT_CHAOTIC) intLawChaosPC = 2;
else intLawChaosPC = 1;
if (intGoodEvilPC == ALIGNMENT_GOOD) intGoodEvilPC = 0;
else if (intGoodEvilPC == ALIGNMENT_EVIL) intGoodEvilPC = 2;
else intGoodEvilPC = 1;
return intLawChaosPC * 3 + intGoodEvilPC;
}
void main() // or startingconditional
{
object oPC = GetFirstPC() // change to GetEnteringObject, GetItemActivator, GetPCSpeaker etc. depending on what fires the script
if ((GetAlignment(oPC) == 1) || (GetAlignment(oPC) == 4) || (GetAlignment(oPC) == 7))
{
// conditions met, code for Neutral characters goes here
}
else
{
// character is good or evil
}
}