Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
49
trunk/spells/nw_s0_stinkcld.nss
Normal file
49
trunk/spells/nw_s0_stinkcld.nss
Normal file
@@ -0,0 +1,49 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Stinking Cloud
|
||||
//:: NW_S0_StinkCld.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Those within the area of effect must make a
|
||||
fortitude save or be dazed.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: May 17, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
//:: modified by mr_bumpkin Dec 4, 2003
|
||||
#include "prc_inc_spells"
|
||||
#include "prc_add_spell_dc"
|
||||
|
||||
void main()
|
||||
{
|
||||
if(!X2PreSpellCastCode()) return;
|
||||
|
||||
PRCSetSchool(SPELL_SCHOOL_CONJURATION);
|
||||
|
||||
//Declare major variables
|
||||
effect eAOE = EffectAreaOfEffect(AOE_PER_FOGSTINK);
|
||||
location lTarget = PRCGetSpellTargetLocation();
|
||||
int CasterLvl = PRCGetCasterLevel();
|
||||
int nDuration = CasterLvl;
|
||||
effect eImpact = EffectVisualEffect(259);
|
||||
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eImpact, lTarget);
|
||||
if (nDuration < 1)
|
||||
{
|
||||
nDuration = 1;
|
||||
}
|
||||
int nMetaMagic = PRCGetMetaMagicFeat();
|
||||
//Make metamagic check for extend
|
||||
if (CheckMetaMagic(nMetaMagic, METAMAGIC_EXTEND))
|
||||
{
|
||||
nDuration = nDuration *2; //Duration is +100%
|
||||
}
|
||||
//Create the AOE object at the selected location
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAOE, lTarget, RoundsToSeconds(nDuration));
|
||||
|
||||
object oAoE = GetAreaOfEffectObject(lTarget, "VFX_PER_FOGSTINK");
|
||||
SetAllAoEInts(SPELL_STINKING_CLOUD, oAoE, PRCGetSpellSaveDC(SPELL_STINKING_CLOUD, SPELL_SCHOOL_CONJURATION), 0, CasterLvl);
|
||||
|
||||
PRCSetSchool();
|
||||
}
|
Reference in New Issue
Block a user