PRC8_fork/nwn/nwnprc/trunk/smp/phs_s_delayedbfa.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

42 lines
1.3 KiB
Plaintext

/*:://////////////////////////////////////////////
//:: Spell Name Delayed Blast Fireball: On Enter
//:: Spell FileName PHS_S_DelayedBFA
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
Uses the Bioware AOE.
This, if moved nearby to, will auto-explode.
The caster can of course choose the duration - be it 1 heartbeat (or instant)
to 5 heartbeats (or 5 rounds).
The heartbeat script and OnEnter scripts do the stuff.
OnEnter: Sets a local variable to activate the blast next hearbeat.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_SPELLS"
void main()
{
// Check AOE status
if(!PHS_CheckAOECreator()) return;
// If we haven't set "We've been entered" set it if the target is not
// in PvP lands.
if(!GetLocalInt(OBJECT_SELF, "PHS_DELAYED_BLAST_FIREBALL_ENTERED"))
{
// Declare major variables
object oTarget = GetEnteringObject();
object oCreator = GetAreaOfEffectCreator();
if(!GetIsReactionTypeFriendly(oTarget, oCreator))
{
SetLocalInt(OBJECT_SELF, "PHS_DELAYED_BLAST_FIREBALL_ENTERED", TRUE);
}
}
}