Updated Darkness spell w/ EffectTag

Updated Darkness spell to use EffectTag.  Removed old crafting baseitems.  Removed defunct spellbook from Knight of the Weave.
This commit is contained in:
Jaysyn904 2024-04-07 00:04:06 -04:00
parent fe63d696fb
commit 4c40bda959
8 changed files with 83 additions and 62 deletions

View File

@ -11,7 +11,7 @@
7 SuddenExtend 2831 2 4 1
8 SuddenMaximize 2832 2 4 1
9 SuddenWiden 2833 2 4 1
10 Spellbook 1999 3 1 1
10 Spellbook_[DEFUNCT] 1999 3 99 0
11 ####START_OF_NEW_SPELLBOOK_RESERVE **** **** **** ****
12 KnightoftheWeave_Bless 12696 0 99 1
13 KnightoftheWeave_Bless_Weapon 12697 0 99 1

View File

@ -55,11 +55,11 @@
# module.OnUserDefined : Assigns script(s) to handle this module event
# Title for the HIF.
Title : PRC
Title : PRC8
# Add the PRC pack version and specify at least 1.62 to install.
Version : 4.1.6
MinNWNVersion: 1.67
Version : 4.1.11
MinNWNVersion: 1.68
# ERF with the required areas.
erf : prc8_consortium.erf

View File

@ -759,4 +759,4 @@ int GetChangesToSaveDC(object oTarget, object oCaster, int nSpellID, int nSchool
}
// Test main
//void main(){}
//:: void main(){}

View File

@ -28,13 +28,19 @@ SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_EVOCATION);
effect eInvis = EffectInvisibility(INVISIBILITY_TYPE_DARKNESS);
effect eDark = EffectDarkness();
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_NEGATIVE);
effect eLink = EffectLinkEffects(eDark, eDur);
eLink = TagEffect(eLink, "BIO_DARKNESS");
effect eLink2 = EffectLinkEffects(eInvis, eDur);
eLink2 = TagEffect(eLink2, "PNP_DARKNESS");
effect ePnP = EffectLinkEffects(eDur, EffectDarkness());
if(GetPRCSwitch(PRC_PNP_DARKNESS_35ED))
{
ePnP = EffectLinkEffects(eDur, EffectConcealment(20));
ePnP = TagEffect(ePnP, "PNP35_DARKNESS");
}
object oTarget = GetEnteringObject();
int iShadow = GetLevelByClass(CLASS_TYPE_SHADOWLORD,oTarget);

View File

@ -56,6 +56,21 @@ SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_EVOCATION);
eAOE = GetNextEffect(oTarget);
}
effect eEffect = GetFirstEffect(oTarget);
while(GetIsEffectValid(eEffect))
{
if(GetEffectTag(eEffect) == "PNP_DARKNESS")
RemoveEffect(oTarget, eEffect);
if(GetEffectTag(eEffect) == "PNP35_DARKNESS")
RemoveEffect(oTarget, eEffect);
if(GetEffectTag(eEffect) == "BIO_DARKNESS")
RemoveEffect(oTarget, eEffect);
eEffect = GetNextEffect(oTarget);
}
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
// Getting rid of the local integer storing the spellschool name
}