Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spellselect trigger
Author Message
Claus
Apprentice
*

Posts: 19
Likes Given: 3
Likes Received: 0 in 0 posts
Joined: Jan 2014
Reputation: 0



Post: #1
Spellselect trigger
in@spellselect if i want to show a sysmessage only when the casting is finished, if i try to use ARGN3 = 3 i have the same message in the beggining and at the end

Quote:http://wiki.spherecommunity.net/index.ph...l_Trigger)


the wiki page, as you can see the value of argn3 for begin and finish is the same.
I want to display in sysmessage **CASTING FINISHED** just before the player can target his objective (precast allowed)
11-02-2019 02:38 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 902
Likes Given: 5
Likes Received: 212 in 175 posts
Joined: Jul 2012
Reputation: 6

Dimension Shard

Post: #2
RE: Spellselect trigger
@SpellSelect is only triggered when the spell got selected, to fire it in another context you must use proper trigger:

char @SpellSelect (spell @Select): fired when spell got selected
char @SpellCast (spell @Start): fired when spell is about to be casted
char @SpellSuccess (spell @Success): fired when spell cast suceed
char @SpellFail (spell @Fail): fired when spell cast fail
char/item @SpellEffect (spell @Effect): fired on char/item which the spell effect is being applied
11-04-2019 08:56 AM
Find all posts by this user Like Post Quote this message in a reply
Claus
Apprentice
*

Posts: 19
Likes Given: 3
Likes Received: 0 in 0 posts
Joined: Jan 2014
Reputation: 0



Post: #3
RE: Spellselect trigger
(11-04-2019 08:56 AM)Coruja Wrote:  @SpellSelect is only triggered when the spell got selected, to fire it in another context you must use proper trigger:

char @SpellSelect (spell @Select): fired when spell got selected
char @SpellCast (spell @Start): fired when spell is about to be casted
char @SpellSuccess (spell @Success): fired when spell cast suceed
char @SpellFail (spell @Fail): fired when spell cast fail
char/item @SpellEffect (spell @Effect): fired on char/item which the spell effect is being applied

I wanted to use it at the end of the casting time to signal the player that the spell was ready to be launched using ARGN3 = 03; but since the 03 is valid for both the beginning and the end the "cast ready" message started 2 times. I solved using a timer item set to 0.2 tenths before the end of the actual cast.

without opening another thread, can I change the effect of the fire field to make a way that instead of a firewall, give me a real 3x3 tile size field?
11-11-2019 04:05 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)

This forum uses Lukasz Tkacz MyBB addons.