//:://///////////////////////////////////////////// //:: Dialma (Great Heal) //:: dialma.nss //:: Copyright (c) 2025 WizardryEE Project //::////////////////////////////////////////////// /* Restores 3d8 (3-24) hit points to a party member. Level 5 Priest spell. In Wizardry: Proving Grounds of the Mad Overlord, this is a Level 5 Priest healing spell that targets one character. */ //::////////////////////////////////////////////// //:: Created By: WizardryEE Project //:: Created On: April 26, 2025 //::////////////////////////////////////////////// void main() { // Spell implementation for WizardryEE // Core functionality: Heal 3d8 hit points // 1. Get caster information object oCaster = OBJECT_SELF; // 2. Get the target object oTarget = GetSpellTargetObject(); if (!GetIsObjectValid(oTarget)) { // If no specific target, target self oTarget = oCaster; } // 3. Check if target is valid and is a party member if (GetIsObjectValid(oTarget) && !GetIsEnemy(oTarget, oCaster)) { // 4. Calculate healing int nHeal = d8(3); // 3d8 healing // 5. Create the healing effect effect eHeal = EffectHeal(nHeal); effect eVis = EffectVisualEffect(14); // Healing visual effect // 6. Apply the effects // Signal spell cast at event SignalEvent(oTarget, EventSpellCastAt(oCaster, 16, FALSE)); // Cure Serious Wounds spell ID // Apply the visual and healing effects ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget); ApplyEffectToObject(DURATION_TYPE_INSTANT, eHeal, oTarget); // 7. Notify the caster FloatingTextStringOnCreature("DIALMA: Healed " + IntToString(nHeal) + " hit points for " + GetName(oTarget), oCaster, TRUE); } else { // Notify if no valid target FloatingTextStringOnCreature("DIALMA: No valid target found", oCaster, TRUE); } }