WizardryEE/Content/spells/nw_sX_example.nss
2025-04-26 15:20:45 -04:00

39 lines
1.4 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Example Spell
//:: NW_SX_Example.nss
//:: Copyright (c) 2025 User Project
//::///////////////////////////////////////////////
/*
TODO: Describe spell effect here
(e.g., "Deals XdY [TYPE] damage to all targets in a [SHAPE] area.")
*/
#include "prc_inc_spells"
#include "prc_add_spell_dc"
void main()
{
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_[TO_BE_DEFINED]); // e.g., EVOCATION, DIVINATION
if (!X2PreSpellCastCode())
{
return;
}
// End of Spell Cast Hook
// Declare major variables
object oCaster = OBJECT_SELF;
int CasterLvl = PRCGetCasterLevel(OBJECT_SELF);
// TODO: Define spell-specific variables here (e.g., damage types, skill boosts)
// TODO: Implement spell logic here, using examples from nw_s0_icestorm.nss and nw_s0_identify.nss as guides
// ...
// Example Placeholder for Visual and Damage Effects
effect eExampleVis = EffectVisualEffect(VFX_[TO_BE_DEFINED]); // Choose appropriate VFX
effect eExampleDam = PRCEffectDamage(OBJECT_TARGET, [DAMAGE_VALUE], [DAMAGE_TYPE]);
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eExampleVis, OBJECT_TARGET);
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eExampleDam, OBJECT_TARGET);
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
}