![]() |
Damage in AREA on SPELLSUCCESS - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Damage in AREA on SPELLSUCCESS (/Thread-Damage-in-AREA-on-SPELLSUCCESS) |
Damage in AREA on SPELLSUCCESS - dicataldisky - 11-26-2019 08:13 AM I have this if that runs on @spellsuccess, it is working, automatically dispelling the person, but I need it to damage the next players, how should I do? Code: IF (<ARGN1>==5)&&(<ACT.DEFNAME>==i_potion_explosionless) RE: Damage in AREA on SPELLSUCCESS - Coruja - 11-26-2019 02:09 PM Probably there's a conflict between you code and internal code, because you're using the trigger to do some custom actions but you're not using "return 1" at the end, so sphere will run your custom code and later will also run the default hardcoded actions for this spell So you must choose add the "return 1" line and fully do all actions on the custom script (eg: cause damage, test skillgain, etc) Code: ACT.REMOVE or don't use "return 1" but only deal with actions that can safely override hardcoded actions (eg: use hardcoded LOCAL's instead manually call DAMAGE, SOUND, EFFECT, etc) Code: LOCAL.DAMAGETYPE=dam_magic PS: @SpellSuccess is always called when you succeed any spell cast, and since your code is probably only used on spell 5, you can optimize this script moving @SpellSuccess (char trigger) to @Success (spell trigger) on spell 5 (sphere_spells.scp) |