HoS_PRC8/_mod/_module/nss/detect_evil_monk.nss

18 lines
474 B
Plaintext
Raw Permalink Normal View History

2024-11-25 19:36:07 -05:00
// 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
}