Added NWN Dark Sun module contents

Added NWN Dark Sun module contents.
This commit is contained in:
Jaysyn904
2021-07-12 21:24:46 -04:00
parent 556224a658
commit de24f81734
10609 changed files with 146652 additions and 0 deletions

View 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);
}
}