Added PnP Dire Rat.
Added PnP Dire Rat.
This commit is contained in:
21
nwn_dark_sun/ring_mount_key.nss
Normal file
21
nwn_dark_sun/ring_mount_key.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
// Put this script OnExit.
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user