//:://///////////////////////////////////////////// //:: Dialko (Softness) //:: dialko.nss //:: Copyright (c) 2025 WizardryEE Project //::////////////////////////////////////////////// /* Cures paralysis and sleep for a party member. Level 3 Priest spell. In Wizardry: Proving Grounds of the Mad Overlord, this is a Level 3 Priest healing spell that targets one character. */ //::////////////////////////////////////////////// //:: Created By: WizardryEE Project //:: Created On: April 26, 2025 //::////////////////////////////////////////////// void main() { // Spell implementation for WizardryEE // Core functionality: Cure paralysis and sleep // 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. Create the visual effect effect eVis = EffectVisualEffect(14); // Healing visual effect // 4. Apply to the target // Signal spell cast at event SignalEvent(oTarget, EventSpellCastAt(oCaster, 88, FALSE)); // Remove Paralysis spell ID // Check if target has the paralysis or sleep condition flags int bParalyzed = GetLocalInt(oTarget, "CONDITION_PARALYZED"); int bSleeping = GetLocalInt(oTarget, "CONDITION_SLEEPING"); if (bParalyzed || bSleeping) { // Remove the condition flags if (bParalyzed) { DeleteLocalInt(oTarget, "CONDITION_PARALYZED"); // Apply counter-effect to remove paralysis // This would be implemented in the game engine SetLocalInt(oTarget, "REMOVE_PARALYSIS", 1); } if (bSleeping) { DeleteLocalInt(oTarget, "CONDITION_SLEEPING"); // Apply counter-effect to remove sleep // This would be implemented in the game engine SetLocalInt(oTarget, "REMOVE_SLEEP", 1); } // Apply the visual healing effect ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget); // Notify success FloatingTextStringOnCreature(GetName(oTarget) + " is cured of paralysis and sleep!", oCaster, TRUE); } else { // Notify that target is not affected FloatingTextStringOnCreature(GetName(oTarget) + " is not affected by paralysis or sleep.", oCaster, TRUE); } }