The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
avoid interrupt of casting
Author Message
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #1
avoid interrupt of casting
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.
09-28-2014 10:40 PM
Find all posts by this user Like Post Quote this message in a reply
dagger4k
Journeyman
*

Posts: 194
Likes Given: 1
Likes Received: 12 in 12 posts
Joined: Mar 2012
Reputation: 0



Post: #2
RE: avoid interrupt of casting
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.
09-28-2014 11:51 PM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #3
RE: avoid interrupt of casting
Find --> replace

INTERRUPT=0.0,0.0

average time to replace all 0.5 seconds
09-28-2014 11:51 PM
Find all posts by this user Like Post Quote this message in a reply
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #4
RE: avoid interrupt of casting
(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?
09-29-2014 12:07 AM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #5
RE: avoid interrupt of casting
(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
09-29-2014 12:32 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Rizz's post
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #6
RE: avoid interrupt of casting
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.
09-29-2014 05:22 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #7
RE: avoid interrupt of casting
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
(This post was last modified: 09-29-2014 05:41 AM by Coruja.)
09-29-2014 05:40 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #8
RE: avoid interrupt of casting
Thanks for the answer, but under 'already done method' i meant dynamic method, maybe something like 'argn1' variable in trigger, but for interrupt Smile
09-29-2014 07:15 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #9
RE: avoid interrupt of casting
You can change the interrupt value when you want in script.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-29-2014 07:22 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)