![]() |
Spellselect trigger - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Spellselect trigger (/Thread-Spellselect-trigger) |
Spellselect trigger - Claus - 11-02-2019 02:38 AM 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.php?title=@Select_(Spell_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) RE: Spellselect trigger - Coruja - 11-04-2019 08:56 AM @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 RE: Spellselect trigger - Claus - 11-11-2019 04:05 AM (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: 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? RE: Spellselect trigger - Coruja - 11-15-2019 02:41 PM Try using hardcoded LOCAL tweaks on @SpellSuccess/@Success triggers, like this: Code: ON=@Success 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 RE: Spellselect trigger - Claus - 12-08-2019 01:25 AM (11-15-2019 02:41 PM)Coruja Wrote: Try using hardcoded LOCAL tweaks on @SpellSuccess/@Success triggers, like this: 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 |