Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

18 lines
474 B
Plaintext

// Detect Evil Monks
void main()
{
object oPC=GetEnteringObject();
object oMonk=GetNearestObjectByTag("MonasteryMonk",oPC,1);
if (GetIsPC(oPC)==TRUE)
{ // is PC
if (GetIsEnemy(oPC,oMonk)!=TRUE)
{ // see if evil
if (GetAlignmentGoodEvil(oPC)==ALIGNMENT_EVIL)
{ // evil
AssignCommand(oMonk,SpeakString("I sense an evil presence."));
AdjustReputation(oPC,oMonk,-100);
} // evil
} // see if evil
} // is PC
}