2025/09/06 Update
Fixed VFX for Prismatic Sphere. Fixed Bonded Summoner's familiar past 10th class lvl. Removed old goad item. Capped Inscribe Rune CL at 20th. Updated Psychic Rogue's power list. Fixed goad's icon size in baseitems.2da Added WotC Mind's Eye Web Enhancement PDFs to notes. Added PnP Animal Companion notes.
This commit is contained in:
@@ -120,7 +120,7 @@ void BondedSummoner(object oPC)
|
||||
switch(nLevel)
|
||||
{
|
||||
case 1:
|
||||
case 2: sResRef = "x1_s_"+sElem+"small"; break;//this is the 4HD version in the SRD, which is medium
|
||||
case 2: sResRef = "x1_s_"+sElem+"small"; break; //this is the 4HD version in the SRD, which is medium
|
||||
case 3:
|
||||
case 4: sResRef = "prc_s_"+sElem+"large"; break;
|
||||
case 5:
|
||||
@@ -130,6 +130,8 @@ void BondedSummoner(object oPC)
|
||||
case 9:
|
||||
default: sResRef = "nw_s_"+sElem+"elder"; break;
|
||||
}
|
||||
|
||||
if(DEBUG) DoDebug("nw_s2_familiar >> Elemental resref is: "+sResRef+".");
|
||||
|
||||
oFam = CreateLocalNPC(oPC, ASSOCIATE_TYPE_FAMILIAR, sResRef, PRCGetSpellTargetLocation(), NPC_BONDED_FAMILIAR);
|
||||
AddAssociate(oPC, oFam);
|
||||
|
@@ -45,6 +45,7 @@ dead after being hit by a fireball).
|
||||
//:://////////////////////////////////////////////
|
||||
#include "nw_inc_gff"
|
||||
#include "prc_inc_spells"
|
||||
#include "prc_inc_json"
|
||||
|
||||
// Validates and tracks mirror image alignment with master
|
||||
void TrackMirrorImage(object oSummoned)
|
||||
@@ -134,36 +135,6 @@ void SetMirrorImageScripts(object oImage)
|
||||
SetEventScript(oImage, EVENT_SCRIPT_CREATURE_ON_USER_DEFINED_EVENT, "");
|
||||
}
|
||||
|
||||
json JsonModifyRacialType(json jCreature, int nNewRacialType)
|
||||
{
|
||||
if(DEBUG)DoDebug("sp_mirror >> JsonModifyRacialType: Entering function");
|
||||
|
||||
// Retrieve the RacialType field
|
||||
json jRacialTypeField = JsonObjectGet(jCreature, "Race");
|
||||
|
||||
if (JsonGetType(jRacialTypeField) == JSON_TYPE_NULL)
|
||||
{
|
||||
DoDebug("sp_mirror >> JsonModifyRacialType: JsonGetType error 1: " + JsonGetError(jRacialTypeField));
|
||||
//SpeakString("JsonGetType error 1: " + JsonGetError(jRacialTypeField));
|
||||
return JsonNull();
|
||||
}
|
||||
|
||||
// Retrieve the value to modify
|
||||
json jRacialTypeValue = JsonObjectGet(jRacialTypeField, "value");
|
||||
|
||||
if (JsonGetType(jRacialTypeValue) != JSON_TYPE_INTEGER)
|
||||
{
|
||||
DoDebug("sp_mirror >> JsonModifyRacialType: JsonGetType error 2: " + JsonGetError(jRacialTypeValue));
|
||||
//SpeakString("JsonGetType error 2: " + JsonGetError(jRacialTypeValue));
|
||||
return JsonNull();
|
||||
}
|
||||
|
||||
jCreature = GffReplaceByte(jCreature, "Race", nNewRacialType);
|
||||
|
||||
// Return the new creature object
|
||||
return jCreature;
|
||||
}
|
||||
|
||||
void CleanCopy(object oImage)
|
||||
{
|
||||
SetLootable(oImage, FALSE);
|
||||
|
@@ -68,10 +68,13 @@ void main()
|
||||
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_PRISMATIC_SPHERE), lTarget, fDurAoE);
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAoE, lTarget, fDurAoE);
|
||||
|
||||
|
||||
object oAoE = GetAreaOfEffectObject(lTarget, "VFX_PER_PRISMATIC_SPHERE");
|
||||
SetAllAoEInts(SPELL_PRISMATIC_SPHERE, oAoE, PRCGetSpellSaveDC(SPELL_PRISMATIC_SPHERE, SPELL_SCHOOL_ABJURATION), 0, nCasterLvl);
|
||||
|
||||
effect eVFX = EffectVisualEffect(VFX_DUR_PRISMATIC_SPHERE);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eVFX, oAoE);
|
||||
|
||||
// Declare blindness
|
||||
effect eBlind = EffectBlindness();
|
||||
|
||||
@@ -113,4 +116,4 @@ void main()
|
||||
//Get next target.
|
||||
oTarget = MyNextObjectInShape(SHAPE_SPHERE, 10.0, lTarget, TRUE, OBJECT_TYPE_CREATURE);
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,6 +1,6 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name
|
||||
//:: FileName sp_.nss
|
||||
//:: FileName sp_prismt_sphrb.nss
|
||||
//:://////////////////////////////////////////////
|
||||
/**@file Prismatic Sphere
|
||||
Abjuration
|
||||
|
Reference in New Issue
Block a user