Improved Trip / Disarm should be Champion of Corellon bonus feats. Crinti Shadow Marauders don't get weapon proficiencies. Epic Dragon Shaman is 21st level. JPM was missing epic arcane bonus feats. Karsites & Silverbrows can enter Crinti Shadow Maarauder. Drunken Rage can allow entry into Frostrager. Knight of the Sacred Seal was missing FEATOR prereq for Weapon Focus: Shortsword. Two-Weapon Defense is a general feat. Tweaked Echoblade enchantment cost. Added base class equpiment packages more inline with PnP & the actual package descriptions (@Cypher). Added a modified packages.2da to support the above. Updated Dynamic Conversation tokens as to greatly lessen the chance of conflicting with module dialogues. Added weapon proficiencies to FeatToIprop(). Added pnp essentia scaling support for meldshaper levels over 40. Added GetProficiencyFeatOfWeaponType(). Added GetHasSwashbucklerWeapon(). Added GetHasCorellonWeapon(). Fixed spelling for IP_CONST_FEAT_WEAPON_PROFICIENCY_NUNCHAKU. Fixed PsyRogue's Enhanced Sneak Attack scaling. Eldrtich Doom shouldn't target non-hostiles. Fixed Hellfire Warlock fire resistance to work with other sources of fire resistance. Fixed text feedback for Island in Time. Added some DEBUG for Shadow Blade. prc_2da_cache creature should no longer be accidently targetable, causing faction issues. Added a PnP cat creature, for the hell of it. Tibitz is Dragon Magizine, unfortunately. Updated text tokens for Astral Construct convos. Updated text tokens for soulknife's mindblade convos. If you save vs certain fear effects, they fail to work on you for 24 hours, from that source. (Form of Doom, Dragon Fear) Fixed Prismatic Sphere VFX bug (@Syrophir) Fixed Banishment bug on all Prismatic spells. Bralani Eldarin were missing Low-Light Vision. Fixed Lips of Rapture bug. Prelimiary work to making Favoured Soul's Deity's Weapon closer to PnP. Fixed Firey Burst bug. I think. Updated notes. Updated PRC8 Manual.
219 lines
10 KiB
Plaintext
219 lines
10 KiB
Plaintext
//::///////////////////////////////////////////////
|
||
//:: Name Prismatic Sphere on enter
|
||
//:: FileName sp_prismt_sphrA.nss
|
||
//:://////////////////////////////////////////////
|
||
/**@file Prismatic Sphere
|
||
Abjuration
|
||
Level: Protection 9, Sor/Wiz 9, Sun 9
|
||
Components: V
|
||
Range: 10 ft.
|
||
Effect: 10-ft.-radius sphere centered on you
|
||
|
||
This spell functions like prismatic wall, except you
|
||
conjure up an immobile, opaque globe of shimmering,
|
||
multicolored light that surrounds you and protects
|
||
you from all forms of attack. The sphere flashes in
|
||
all colors of the visible spectrum.
|
||
|
||
The sphere<72>s blindness effect on creatures with less
|
||
than 8 HD lasts 2d4x10 minutes.
|
||
|
||
You can pass into and out of the prismatic sphere and
|
||
remain near it without harm. However, when you<6F>re
|
||
inside it, the sphere blocks any attempt to project
|
||
something through the sphere (including spells). Other
|
||
creatures that attempt to attack you or pass through
|
||
suffer the effects of each color, one at a time.
|
||
|
||
Typically, only the upper hemisphere of the globe will
|
||
exist, since you are at the center of the sphere, so
|
||
the lower half is usually excluded by the floor surface
|
||
you are standing on.
|
||
|
||
The colors of the sphere have the same effects as the
|
||
colors of a prismatic wall.
|
||
|
||
Red 1st Deals 20 points of fire damage (Reflex half).
|
||
Orange 2nd Deals 40 points of acid damage (Reflex half).
|
||
Yellow 3rd Deals 80 points of electricity damage (Reflex half).
|
||
Green 4th Poison (Kills; Fortitude partial for 1d6 points of Con damage instead).
|
||
Blue 5th Turned to stone (Fortitude negates).
|
||
Indigo 6th Will save or become insane (as insanity spell).
|
||
Violet 7th Creatures sent to another plane (Will negates).
|
||
|
||
Author: Tenjac
|
||
Created: 7/6/07
|
||
*/
|
||
//:://////////////////////////////////////////////
|
||
//:://////////////////////////////////////////////
|
||
|
||
#include "prc_inc_spells"
|
||
#include "prc_add_spell_dc"
|
||
|
||
void main()
|
||
{
|
||
object oPC = GetAreaOfEffectCreator();
|
||
object oTarget = GetEnteringObject();
|
||
int nDC = PRCGetSaveDC(oTarget, oPC);
|
||
int nCasterLvl = PRCGetCasterLevel(oPC);
|
||
int nDam;
|
||
int nPenetr = nCasterLvl + SPGetPenetr();
|
||
|
||
//Passing into the wall
|
||
SetLocalInt(oTarget, "PRC_INSIDE_PRISMATIC_SPHERE", 1);
|
||
|
||
if(!GetIsReactionTypeFriendly(oTarget, oPC) && (oTarget != oPC))
|
||
{
|
||
//Red
|
||
if(!PRCDoResistSpell(oPC, oTarget,nPenetr))
|
||
{
|
||
nDam = 20;
|
||
|
||
if(PRCMySavingThrow(SAVING_THROW_REFLEX, oTarget, nDC, SAVING_THROW_TYPE_FIRE))
|
||
{
|
||
nDam = 10;
|
||
}
|
||
|
||
ApplyEffectToObject(DURATION_TYPE_INSTANT, PRCEffectDamage(oTarget, nDam, DAMAGE_TYPE_FIRE), oTarget);
|
||
}
|
||
|
||
//Orange
|
||
if(!PRCDoResistSpell(oPC, oTarget, nPenetr))
|
||
{
|
||
nDam = 40;
|
||
|
||
if(PRCMySavingThrow(SAVING_THROW_REFLEX, oTarget, nDC, SAVING_THROW_TYPE_ACID))
|
||
{
|
||
nDam = 20;
|
||
}
|
||
|
||
ApplyEffectToObject(DURATION_TYPE_INSTANT, PRCEffectDamage(oTarget, nDam, DAMAGE_TYPE_ACID), oTarget);
|
||
}
|
||
|
||
//Yellow
|
||
if(!PRCDoResistSpell(oPC, oTarget, nPenetr))
|
||
{
|
||
nDam = 80;
|
||
|
||
if(PRCMySavingThrow(SAVING_THROW_REFLEX, oTarget, nDC, SAVING_THROW_TYPE_ELECTRICITY))
|
||
{
|
||
nDam = 40;
|
||
}
|
||
|
||
ApplyEffectToObject(DURATION_TYPE_INSTANT, PRCEffectDamage(oTarget, nDam, DAMAGE_TYPE_ELECTRICAL), oTarget);
|
||
}
|
||
|
||
//Green
|
||
if (PRCGetIsAliveCreature(oTarget) && (GetIsImmune(oTarget, IMMUNITY_TYPE_POISON) == FALSE))
|
||
{
|
||
if(!PRCDoResistSpell(oPC, oTarget, nPenetr))
|
||
{
|
||
if(!PRCMySavingThrow(SAVING_THROW_FORT, oTarget, nDC, SAVING_THROW_TYPE_POISON))
|
||
{
|
||
DeathlessFrenzyCheck(oTarget);
|
||
ApplyEffectToObject(DURATION_TYPE_INSTANT, SupernaturalEffect(EffectDeath()), oTarget);
|
||
}
|
||
|
||
else ApplyAbilityDamage(oTarget, ABILITY_CONSTITUTION, d6(1), DURATION_TYPE_TEMPORARY, TRUE, -1.0);
|
||
}
|
||
}
|
||
|
||
//Blue
|
||
if(!PRCDoResistSpell(oPC, oTarget, nPenetr)) PRCDoPetrification(nCasterLvl, oPC, oTarget, SPELL_PRISMATIC_RAY, nDC);
|
||
|
||
//Indigo
|
||
if(!PRCDoResistSpell(oPC, oTarget, nPenetr))
|
||
{
|
||
if(!PRCMySavingThrow(SAVING_THROW_WILL, oTarget, nDC, SAVING_THROW_TYPE_SPELL))
|
||
{
|
||
effect eVis = EffectVisualEffect(VFX_IMP_CONFUSION_S);
|
||
effect eConfuse = PRCEffectConfused();
|
||
effect eMind = EffectVisualEffect(VFX_DUR_MIND_AFFECTING_DISABLED);
|
||
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_NEGATIVE);
|
||
effect eLink = EffectLinkEffects(eMind, eConfuse);
|
||
eLink = EffectLinkEffects(eLink, eDur);
|
||
eLink = SupernaturalEffect(eLink);
|
||
|
||
SPApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, oTarget, 0.0, TRUE, SPELL_PRISMATIC_SPHERE, nCasterLvl);
|
||
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
||
}
|
||
}
|
||
|
||
//Violet
|
||
if(!PRCDoResistSpell(oPC, oTarget, nPenetr))
|
||
{
|
||
if(!PRCMySavingThrow(SAVING_THROW_WILL, oTarget, nDC, SAVING_THROW_TYPE_SPELL))
|
||
{
|
||
// makes the target invisible
|
||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_CUTSCENE_INVISIBILITY), oTarget, 6.0);
|
||
// allows pathfinding through the target
|
||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectCutsceneGhost(), oTarget, 6.0);
|
||
// paralyzes the target, ignores immunity
|
||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectCutsceneParalyze(), oTarget, 6.0);
|
||
// save the target location for later visual effect
|
||
location lLoc = GetLocation(oTarget);
|
||
|
||
// separate player targets from NPCs
|
||
if(GetIsPC(oTarget))
|
||
{
|
||
int nMessageRoll = d6(1);
|
||
int nTalk;
|
||
|
||
switch(nMessageRoll)
|
||
{
|
||
case 1:
|
||
{
|
||
nTalk = 1729332;
|
||
break;
|
||
}
|
||
|
||
case 2:
|
||
{
|
||
nTalk = 1729333;
|
||
break;
|
||
}
|
||
|
||
case 3:
|
||
{
|
||
nTalk = 1729334;
|
||
break;
|
||
}
|
||
|
||
case 4:
|
||
{
|
||
nTalk = 1729335;
|
||
break;
|
||
}
|
||
|
||
case 5:
|
||
{
|
||
nTalk = 1729336;
|
||
break;
|
||
}
|
||
|
||
case 6:
|
||
{
|
||
nTalk = 1729337;
|
||
break;
|
||
}
|
||
}
|
||
//Death Popup
|
||
// allow respawn, but not wait for help since sent away
|
||
// also if not letting respawn and cannot reload, the player cannot continue via GUI
|
||
DelayCommand(2.75, PopUpDeathGUIPanel(oTarget, TRUE , FALSE, nTalk));
|
||
DelayCommand(2.75, ExecuteScript("prc_ondeath", oTarget));
|
||
}
|
||
else
|
||
{
|
||
// Target is not a player
|
||
// To simplify against NPCs and also reward xp, applies same death as Green color
|
||
DeathlessFrenzyCheck(oTarget);
|
||
ApplyEffectToObject(DURATION_TYPE_INSTANT, SupernaturalEffect(EffectDeath()), oTarget);
|
||
}
|
||
// a visual effect for banishment
|
||
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_UNSUMMON), lLoc);
|
||
}
|
||
}
|
||
}
|
||
}
|