25 lines
574 B
Plaintext
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);
|
|
}
|
|
}
|