NWNDS/nwnds_module/temp.nss

18 lines
451 B
Plaintext
Raw Normal View History

void main()
{
// Get the creature who triggered this event.
object oPC = GetExitingObject();
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Only fire once per PC.
if ( GetLocalInt(oPC, "DO_ONCE__" + GetTag(OBJECT_SELF)) )
return;
SetLocalInt(oPC, "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
// Set a local integer.
SetLocalInt(oPC, "ring_mount_pass", 1);
}