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

Posts: 21
Likes Given: 2
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: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

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: 21
Likes Given: 2
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
Coruja
Sphere Developer
*****

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

Dimension Shard

Post: #4
RE: Spellselect trigger
Try using hardcoded LOCAL tweaks on @SpellSuccess/@Success triggers, like this:

Code:
ON=@Success
LOCAL.Duration = 60
LOCAL.EffectColor = 0481
LOCAL.CreateObject1 = i_field_ns
LOCAL.CreateObject2 = i_field_ew
LOCAL.FieldWidth = 3
LOCAL.FieldGauge = 3

Note that the script will just set these weird values and nothing more, but this is the way to use hardcoded LOCALs. You just need to set the LOCAL value (using exactly the same name) and sphere will proceed with internal functions using this value
(This post was last modified: 11-15-2019 02:50 PM by Coruja.)
11-15-2019 02:41 PM
Find all posts by this user Like Post Quote this message in a reply
Claus
Apprentice
*

Posts: 21
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Jan 2014
Reputation: 0



Post: #5
RE: Spellselect trigger
(11-15-2019 02:41 PM)Coruja Wrote:  Try using hardcoded LOCAL tweaks on @SpellSuccess/@Success triggers, like this:

Code:
ON=@Success
LOCAL.Duration = 60
LOCAL.EffectColor = 0481
LOCAL.CreateObject1 = i_field_ns
LOCAL.CreateObject2 = i_field_ew
LOCAL.FieldWidth = 3
LOCAL.FieldGauge = 3

Note that the script will just set these weird values and nothing more, but this is the way to use hardcoded LOCALs. You just need to set the LOCAL value (using exactly the same name) and sphere will proceed with internal functions using this value

I wanted to do something more custom but...
...I've been trying for days, but in the end I have to ask for help.
Essentially I would need that when a player types ".firefield" for example he summons around the player a 3x3 square (the player would be in the center) similar to the fire field that does no harm to the player but only to the others (including NPCs). Or if there was a way to make the firefield automatically cast on the tile where the game is located it would be fine just the same
12-08-2019 01:25 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)