Further file organization
Further file organization
This commit is contained in:
39
nwn/nwnprc/trunk/newspellbook/shd_myst_umbrlst.nss
Normal file
39
nwn/nwnprc/trunk/newspellbook/shd_myst_umbrlst.nss
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
18/02/19 by Stratovarius
|
||||
|
||||
Umbral Servant
|
||||
|
||||
Master, Shadow Calling
|
||||
Level/School: 7th/Conjuration (Summoning)
|
||||
Range: Close (25 ft. + 5 ft./2 levels)
|
||||
Effect: One summoned creature
|
||||
Duration: 1 round/level
|
||||
|
||||
You summon a creature of shadow to serve you, calling it through the barriers between worlds.
|
||||
|
||||
This mystery functions like the spell summon monster I, except as noted here. You can summon one Huge shadow elemental.
|
||||
*/
|
||||
|
||||
#include "shd_inc_shdfunc"
|
||||
#include "shd_mysthook"
|
||||
|
||||
void main()
|
||||
{
|
||||
if(!ShadPreMystCastCode()) return;
|
||||
|
||||
object oShadow = OBJECT_SELF;
|
||||
object oTarget = PRCGetSpellTargetObject();
|
||||
struct mystery myst = EvaluateMystery(oShadow, oTarget, METASHADOW_EXTEND);
|
||||
|
||||
if(myst.bCanMyst)
|
||||
{
|
||||
myst.fDur = 6.0 * myst.nShadowcasterLevel;
|
||||
if(myst.bExtend) myst.fDur *= 2;
|
||||
|
||||
MultisummonPreSummon();
|
||||
// Duration Effects
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectSummonCreature("shd_shdelem_huge", VFX_FNF_SUMMON_NATURES_ALLY_1), PRCGetSpellTargetLocation(), myst.fDur);
|
||||
|
||||
DelayCommand(0.5, AugmentSummonedCreature("shd_shdelem_huge"));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user