SphereCommunity
Spells - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Spells (/Thread-Spells--3461)



Spells - DeatH CoiL - 05-07-2014 11:13 AM

Guys, Good Night

I have two questions,

• How is it used the command LOCAL.FIELDWIDTH in spell Paralyze Field?
• How do i exit Paralyze with self Magic Arrow?

Thanks.


RE: Spells - Avatar - 05-07-2014 12:27 PM

Refer to http://wiki.sphere.torfo.org/index.php/@SpellSuccess

You can manage what you want with @SpellSuccess trigger like ;

Code:
[events e_generic_player]

on=@SpellSucesss
if <argn1> == xxx spell
      LOCAL.FIELDWIDTH xxx
endif

For paralyze issue, I can tell you what came in my mind first. For instance you can use @spelleffect trigger and check spell if <argn1>== 5 then check if <src.uid> == <uid>. After that you can change your flag and release yourself. There could be many approach on this.


RE: Spells - DeatH CoiL - 05-07-2014 09:43 PM

Avatar, Good Morning

Firstly thank you .

In both cases, i tried the following and it still fails.

Code:
[Events e_kills]
ON=@SpellSucess
IF <ARGN1> == 47
    SRC.LOCAL.FIELDWIDTH 5
ENDIF

ON=@SpellEffect
IF (<ARGN1> == 5 && <SRC.UID> == <UID>)
SRC.FLAGS -= statf_freeze
endif

Is something wrong?

Thanks.


RE: Spells - darksun84 - 05-07-2014 09:58 PM

the if in @spelleffect have to be written like this

if (<argn1> == 5) && (<src.uid> == <uid>)
src.flags = <src.flags> &~statf_freeze
endif

also local.fieldwidth and no src.local.fieldwidth


RE: Spells - DeatH CoiL - 05-07-2014 10:10 PM

Related to the ON code = @ SpellEffect, I got it, thanks.

But even using the LOCAL.WIDTH ON = @ SpellSucess Paralyze the field, it did not work.

The code is well:

Code:
ON=@SpellSucess
IF <ARGN1> == 47
    LOCAL.FIELDWIDTH 5
ENDIF

Thanks


RE: Spells - darksun84 - 05-07-2014 10:14 PM

@spellsuccess not @spellsucess Tongue


RE: Spells - DeatH CoiL - 05-07-2014 10:16 PM

no too ;/


RE: Spells - Coruja - 05-08-2014 01:24 AM

Code:
[Spell 5]
DEFNAME=s_magic_arrow
...

ON=@Effect
IF (<SRC>==<UID>)
DAMAGE 1 //the damage will temp remove the paralyze field effect
ENDIF

and

Code:
[Spell 47]
DEFNAME=s_paralyzation_field
...

ON=@Success
LOCAL.FieldWidth=3



RE: Spells - DeatH CoiL - 05-08-2014 02:49 AM

Coruja,

Existe alguma configuração no Sphere.ini para habilitar esse tamanho dos tiles do PF? Coloquei desta mesma forma que você postou e ainda sim esta com 7 tiles.

Sad


RE: Spells - Feeh - 05-09-2014 02:29 AM

No INI option to enable/disable FieldWidth, it is always there. What is your sphere version? Anything older than 13-jul-2008 does not accept this override