WoR_PRC8/_module/nss/lolthtemple_attk.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

25 lines
574 B
Plaintext

//Used in Temple of Lolth's entrance to make the guards act hostile
//toward male PCs that enter.
void main()
{
object oPC = GetEnteringObject();
if(!GetIsPC(oPC))
{ return; }
if(GetGender(oPC) != GENDER_MALE)
{
return;
}
object oArea = GetArea(OBJECT_SELF);
object oGuard = GetFirstObjectInArea(oArea);
while(GetIsObjectValid(oGuard))
{
if(FindSubString(GetTag(oGuard), "SHA_DFTGUARD_") >= 0)
{
SetIsTemporaryEnemy(oGuard, oPC, TRUE, 300.0);
}
oGuard = GetNextObjectInArea(oArea);
}
}