SphereCommunity
avoid interrupt of casting - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: avoid interrupt of casting (/Thread-avoid-interrupt-of-casting)



avoid interrupt of casting - Art - 09-28-2014 10:40 PM

Hello. Does Sphere have global setting or tool to cancel interrupt of casting by damage? I heard it's possible to edit 'interrupt' setting of each spell, but this is crazy, i want just 1 global setting, or tool.


RE: avoid interrupt of casting - dagger4k - 09-28-2014 11:51 PM

Do you want to make it when you cast on yourself? If So there is this function in the sphereini
Code:
// MAGICF_CANHARMSELF         0008 // Magic can do damage on self

other than that you need to work on the spell flags for each spell
spellflag_harm
spellflag_targ_noself
spellflag_targ_char
spellflag_targ_xyz

If you wanted to you could build some function over the top of spellflag harm but... that would open up a massive bag of worms =[ I suggest going through and just looking at the spellflag_harm and the spells you want this on.

If it was just for some fizzle spells / stat loss you could just remove the spellflag_harm from the select few.


RE: avoid interrupt of casting - Rizz - 09-28-2014 11:51 PM

Find --> replace

INTERRUPT=0.0,0.0

average time to replace all 0.5 seconds


RE: avoid interrupt of casting - Art - 09-29-2014 12:07 AM

(09-28-2014 11:51 PM)dagger4k Wrote:  Do you want to make it when you cast on yourself? If So there is this function in the sphereini
Code:
// MAGICF_CANHARMSELF         0008 // Magic can do damage on self

other than that you need to work on the spell flags for each spell
spellflag_harm
spellflag_targ_noself
spellflag_targ_char
spellflag_targ_xyz

If you wanted to you could build some function over the top of spellflag harm but... that would open up a massive bag of worms =[ I suggest going through and just looking at the spellflag_harm and the spells you want this on.

If it was just for some fizzle spells / stat loss you could just remove the spellflag_harm from the select few.

Hmm, i just want to make no casting break when character got damage Smile

(09-28-2014 11:51 PM)Rizz Wrote:  Find --> replace

INTERRUPT=0.0,0.0

average time to replace all 0.5 seconds

I thought so, but still, topic is about some more practical solution. What if i want to make interrupt for some cases and for some cases no interrupt?


RE: avoid interrupt of casting - Rizz - 09-29-2014 12:32 AM

(09-29-2014 12:07 AM)Art Wrote:  
(09-28-2014 11:51 PM)dagger4k Wrote:  Do you want to make it when you cast on yourself? If So there is this function in the sphereini
Code:
// MAGICF_CANHARMSELF         0008 // Magic can do damage on self

other than that you need to work on the spell flags for each spell
spellflag_harm
spellflag_targ_noself
spellflag_targ_char
spellflag_targ_xyz

If you wanted to you could build some function over the top of spellflag harm but... that would open up a massive bag of worms =[ I suggest going through and just looking at the spellflag_harm and the spells you want this on.

If it was just for some fizzle spells / stat loss you could just remove the spellflag_harm from the select few.

Hmm, i just want to make no casting break when character got damage Smile

(09-28-2014 11:51 PM)Rizz Wrote:  Find --> replace

INTERRUPT=0.0,0.0

average time to replace all 0.5 seconds

I thought so, but still, topic is about some more practical solution. What if i want to make interrupt for some cases and for some cases no interrupt?

Set all to 0.0, go undert @gethit, check if the damage is physical, check if you are using magery and then put a action=-1


RE: avoid interrupt of casting - Art - 09-29-2014 05:22 AM

Hm, that could work. How i not figured Smile Thanks. I just thought maybe there is already done method. But seems need to write own interrupt system over it.


RE: avoid interrupt of casting - Coruja - 09-29-2014 05:40 AM

yes there's an internal method already done, and you're already using it
INTERRUPT setting on spells is already the sphere own solution to disturb spells. Setting this value to 0 will make the char never get disturbed, and setting to 100.0 will always get disturbed

in other words, thats your % chance of get disturbed or not. If you set a 0% chance you wont get any disturb, and if you set 100% chance you always will disturb


RE: avoid interrupt of casting - Art - 09-29-2014 07:15 AM

Thanks for the answer, but under 'already done method' i meant dynamic method, maybe something like 'argn1' variable in trigger, but for interrupt Smile


RE: avoid interrupt of casting - Extreme - 09-29-2014 07:22 AM

You can change the interrupt value when you want in script.