Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MESSAGE in @GETHIT & TIMERF STOP doesn't work
Author Message
FiLoUs64
Apprentice
*

Posts: 7
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Sep 2019
Reputation: 0



Post: #1
MESSAGE in @GETHIT & TIMERF STOP doesn't work
Hi Bye

I have custom spell scripted and want to show a message when player received a hit during the casting delay.

Code:
[EVENTS e_customcastartificier]
on=@gethit
TIMERF STOP, f_explosion_artificier
MESSAGE Vous ratez votre incantation.  
EFFECT=3,i_fx_smoke_small,6,30,1
EVENTS -e_customcastartificier
SFX=005c
RETURN 0

2 problems :

- MESSAGE is always see only by the the character responsible of the damage. It show up the head of character who received the damage but are not see by this one.

- TIMERF STOP don't work. TIMERF CLEAR works. Is syntax OK or there a problem?

Thanks for your help!
(This post was last modified: 12-20-2019 01:41 PM by FiLoUs64.)
12-20-2019 01:39 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: MESSAGE in @GETHIT & TIMERF STOP doesn't work
If i remember well, if you have passed argument to f_explosion_artificier you have to add them in the timerf stop f_explosion_artificier.


Message are always sent to the SRC, in @gethit SRC is the one that did the damage, so you have to use
trysrc <uid> message Vous ratez votre incantation.
12-20-2019 06:54 PM
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: #3
RE: MESSAGE in @GETHIT & TIMERF STOP doesn't work
To check if char is casting spells you must check char action
Code:
ON=@GetHit
IF (<ACTION> == skill_magery)
  ...
ENDIF

Also note that MESSAGE is only sent to the char itself and related SRC. To show the message to everyone nearby you must use SAY instead MESSAGE

And both TIMERF STOP and TIMERF CLEAR exists, but you must use the correct syntax for each one
  • TIMERF CLEAR --> this will make the char clear all active TIMERF's
  • TIMERF STOP f_something --> this will make the char stop only "TIMERF f_something"
12-22-2019 05:20 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)