Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,41 @@
/*:://////////////////////////////////////////////
//:: Spell Name Entangle: On Enter
//:: Spell FileName PHS_S_EntangleA
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
No SR, noting that.
On Heartbeat will do reflex saves to apply EffectEntangle, for a permament
duration.
On Heartbeat will do a STR check if they are already entangled, to remove it.
On Enter applies slow effect. On Exit should remove all effects.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_SPELLS"
void main()
{
// Check AOE status
if(!PHS_CheckAOECreator()) return;
// Set plot flag to TRUE
// * As this is centred on the caster, this will always fire straight away
SetPlotFlag(OBJECT_SELF, TRUE);
// Declare major variables
object oTarget = GetEnteringObject();
object oCreator = GetAreaOfEffectCreator();
//Declare major effects
effect eSlow = EffectMovementSpeedDecrease(50);
//Fire cast spell at event for the target
PHS_SignalSpellCastAt(oTarget, PHS_SPELL_ENTANGLE);
// Apply effects
PHS_AOE_OnEnterEffects(eSlow, oTarget, PHS_SPELL_ENTANGLE);
}