Added PnP Dire Rat.
Added PnP Dire Rat.
This commit is contained in:
29
nwn_dark_sun/ps_intfort_exit.nss
Normal file
29
nwn_dark_sun/ps_intfort_exit.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
/************************************
|
||||
* Intellect Fortress onExit script *
|
||||
* *
|
||||
* Removes Int fortress effect. *
|
||||
* *
|
||||
*************************************/
|
||||
|
||||
#include "lib_psionic"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC=GetAreaOfEffectCreator();
|
||||
object oTarget=GetExitingObject();
|
||||
effect eChk=GetFirstEffect(oTarget);
|
||||
|
||||
if (!GetIsFriend(oTarget, oPC)) return;
|
||||
|
||||
while (GetIsEffectValid(eChk))
|
||||
{
|
||||
if (GetEffectType(eChk)==EFFECT_TYPE_SAVING_THROW_INCREASE && GetEffectSubType(eChk)==SUBTYPE_EXTRAORDINARY && GetEffectCreator(eChk)==oPC)
|
||||
{
|
||||
RemoveEffect(oTarget, eChk);
|
||||
break;
|
||||
}
|
||||
|
||||
eChk=GetNextEffect(oTarget);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user