Files
NWN .35 Client FIles
NWN .35-33 2DAs
NWN .35-35 2DAs
Notes
Release
trunk
2das
CompiledResources
Craft2das
DevNotes
Setup
epicspellscripts
erf
gfx
include
newspellbook
ocfixerf
others
psionics
race2das
racescripts
scripts
smp
spells
tlk
tools
users
Stratovarius
Tenjac
spells
Template.nss
prc_axiowater.nss
prc_c_bladebane.nss
prc_evnt_ssf.nss
prc_rightaura.nss
sp_algnaurdisc.nss
sp_alignedaura.nss
sp_alignedauraA.nss
sp_alignedauraB.nss
sp_angelskin.nss
sp_auracold.nss
sp_aurasun.nss
sp_aurasunA.nss
sp_aurasunB.nss
sp_aurasunC.nss
sp_axio_storm.nss
sp_axio_stormA.nss
sp_axio_stormB.nss
sp_axio_stormC.nss
sp_axiowater.nss
sp_bladebane.nss
sp_blazelight.nss
sp_blessedaim.nss
sp_blessedaimA.nss
sp_blessedaimB.nss
sp_blessedaimc.nss
sp_blessright.nss
sp_callmount.nss
sp_castigate.nss
sp_checkmlt.nss
sp_clearmind.nss
sp_cloakbrave.nss
sp_cloakbraveA.nss
sp_cloakbraveB.nss
sp_conduitlife.nss
sp_cursebrute.nss
sp_denounce.nss
sp_devsmite.nss
sp_diamondsteel.nss
sp_enshield.nss
sp_estanasstew.nss
sp_favormartyr.nss
sp_forceward.nss
sp_forcewardA.nss
sp_forcewardB.nss
sp_glorymartyr.nss
sp_holyfire.nss
sp_holyfireA.nss
sp_holyfireB.nss
sp_holystorm.nss
sp_holystormA.nss
sp_holystormB.nss
sp_holystormC.nss
sp_invcs.nss
sp_irresforce.nss
sp_laspdiety.nss
sp_lauracold.nss
sp_lawsword.nss
sp_lenshield.nss
sp_lmagweap.nss
sp_lvisdeity.nss
sp_majorresist.nss
sp_meteoric.nss
sp_meteoriconhit.nss
sp_quickmarch.nss
sp_resenergy.nss
sp_revenance.nss
sp_rhinorush.nss
sp_rightaura.nss
sp_rightfury.nss
sp_seeketrest.nss
sp_shieldward.nss
sp_smiteher.nss
sp_smitesacfire.nss
sp_soldsanc.nss
sp_soullight.nss
sp_soulorder.nss
sp_stabilize.nss
sp_stratchrg.nss
sp_strstone.nss
sp_tpchosen.nss
sp_undbanew.nss
sp_unmovobj.nss
sp_visionglory.nss
config.make.txt
nss.syn
prc_crft_alchemy.nss
prc_crft_poison.nss
spells worksheet.ods
x2_inc_spellhook.nss
Doxyfile
Doxyfile_w_dot
Makefile
PRCPackTemplate.hif
SConstruct
assemble_golem.bat
assemble_invocations.bat
assemble_itemprops.bat
assemble_psionics.bat
assemble_recipemerchant.bat
assemble_spellbooks.bat
assemble_tob.bat
attempt_resolve_2da_conflict.bat
buildmake.bat
check_duplicate_clsfeat.bat
check_duplicate_subradialIDs.bat
clean.bat
command.bat
compile.bat
compileepic.bat
compilensb.bat
compileocfix.bat
compilepsi.bat
compilerace.bat
compilescripts.bat
compilespells.bat
config.make
config.mk
errorlog
make-winold.bat
make.bat
make.sh
makefile.gnu.template
makefile.linux.template
makefile.template
makefile.template.winold
newspellbookhak.bat
precachemonitorloop.bat
precacherows.2da
resave_2da.bat
resave_all_2da.bat
resave_all_race2da.bat
runmake.bat
runmake_debug.bat
runmake_ignore_errors.bat
single_compile.bat
update_all_base_classes_feats.bat
valid2da.log
validate_2das.bat
validcraft2da.log
.gitignore
LICENSE
README.md
PRC8/trunk/users/Tenjac/spells/sp_alignedauraB.nss

68 lines
2.8 KiB
Plaintext
Raw Normal View History

//:://////////////////////////////////////////////
//:: Name Aligned Aura
//:: FileName sp_alignedaura.nss
//:://////////////////////////////////////////////
/** @file
Abjuration
Level: Blackguard 4, Cleric 4, Paladin 4,
Components: V, S, DF,
Casting Time: 1 standard action
Range: 20 ft. or 60 ft.
Area: 20-ft.-radius emanation or 60-ft.-radius burst, centered on you
Duration: 1 round/level or until discharged
Saving Throw: Fortitude partial
Spell Resistance: Yes
A rush of divine energy flows through your holy symbol, infusing your body
with the essence of the divine ethos. When you cast this spell, choose one
non-neutral aspect of your own alignment<6E>chaos, evil, good, or law.
(If you are neutral, you can select whichever alignment you wish each time
you cast this spell). You are immediately surrounded in a 20-foot aura of
invisible energy associated with the chosen alignment component. Anyone in
that area who shares that alignment component gains a bonus, and anyone with
the opposed alignment component must make a Fortitude save or take a penalty.
The values of these modifiers and the features to which they apply are given
on the following table. These modifiers end when the affected creature leaves
the spell's area.
Alignment Bonus Penalty
Chaos +1 on attack rolls -1 on saving throws
Evil +1 on damage rolls -1 to Armor Class
Good +1 on saving throws -1 on attack rolls
Law +1 to Armor Class -1 on damage rolls
At any point before the duration expires, you can choose to unleash the spell's
remaining power in a 60-foot burst that deals 1d4 points of damage per round of
duration remaining (maximum 15d4) to each creature of the opposed alignment in
the area. Each affected creature can attempt a Fortitude save for half damage.
The burst also heals 1 point of damage per round of duration remaining
(maximum 15 points) for each creature of the same alignment in the area. Once
this option is invoked, the spell ends immediately.
*/
//:://////////////////////////////////////////////
//:: Created By: Tenjac
//:: Created On: 1/24/21
//:://////////////////////////////////////////////
#include "prc_sp_func"
#include "prc_add_spell_dc"
void main()
{
object oCaster = GetAreaOfEffectCreator();
object oTarget = GetExitingObject();
int nSpellId
effect eToDispel = GetFirstEffect(oTarget);
while(GetIsEffectValid(eToDispel))
{
nSpellId = GetEffectSpellId(eToDispel);
if(nSpellId == SPELL_ALIGNED_AURA_CHAOS || nSpellId == SPELL_ALIGNED_AURA_LAW || nSpellId == SPELL_ALIGNED_AURA_GOOD || nSpellId == SPELL_ALIGNED_AURA_EVIL)
{
RemoveEffect(oTarget, eToDispel);
}
eToDispel = GetNextEffect(oTarget);
}
}
}