Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
58
_module/nss/jw_gcubeaoe_ent.nss
Normal file
58
_module/nss/jw_gcubeaoe_ent.nss
Normal file
@@ -0,0 +1,58 @@
|
||||
///::///////////////////////////////////////////////
|
||||
//:: Acid Fog: On Enter
|
||||
//:: NW_S0_AcidFogA.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
All creatures within the AoE take 2d6 acid damage
|
||||
per round and upon entering if they fail a Fort Save
|
||||
their movement is halved.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: May 17, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
//#include "X0_I0_SPELLS"
|
||||
#include "nw_i0_spells"
|
||||
#include "prc_inc_spells"
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
//Declare major variables
|
||||
|
||||
int nDamage;
|
||||
effect eDam;
|
||||
effect eVis = EffectVisualEffect(194); // acid head
|
||||
effect eSlow = EffectMovementSpeedDecrease(50);
|
||||
object oTarget = GetEnteringObject();
|
||||
float fDelay = GetRandomDelay(1.0, 2.2);
|
||||
if (spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, GetAreaOfEffectCreator()))
|
||||
{
|
||||
//Fire cast spell at event for the target
|
||||
SignalEvent(oTarget, EventSpellCastAt(GetAreaOfEffectCreator(), SPELL_ACID_FOG));
|
||||
//Spell resistance check
|
||||
if(1)
|
||||
{
|
||||
//Roll Damage
|
||||
//Enter Metamagic conditions
|
||||
nDamage = d6(4);
|
||||
|
||||
//Make a Fortitude Save to avoid the effects of the movement hit.
|
||||
if(!MySavingThrow(SAVING_THROW_FORT, oTarget, 16, SAVING_THROW_TYPE_ACID, GetAreaOfEffectCreator(), fDelay))
|
||||
{
|
||||
//slowing effect
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eSlow, oTarget);
|
||||
// * BK: Removed this because it reduced damage, didn't make sense nDamage = d6();
|
||||
}
|
||||
|
||||
//Set Damage Effect with the modified damage
|
||||
eDam = EffectDamage(nDamage, DAMAGE_TYPE_ACID);
|
||||
//Apply damage and visuals
|
||||
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget));
|
||||
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user