XuN 
Sphere Developer
    
Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30
![]()
|
RE: Polymorph
(11-01-2014 05:24 PM)Kapa Wrote: Hi,
Do i need a custom polymorph scp to enable players keep their armor and get bigger stats after polymorphing in to daemon?
// MAGICF_POLYMORPHSTATS 00800 // Polymorph spells give out stats based on base chars (old behaviour backwards).
(07-01-2016 10:38 PM)Van Glan Bloom Wrote: Hi guys,
I was thinking about making some changes in my spell of polymorph, such as user Kapa. I want the player gain some stats according to the transformation the player choose.
I have tested the script make by Coruja, but dont work. I have make some changes, but i fail all the time.
Some one can help me?!
Code:
Added character trigger @EffectAdd: This will be called when any type of effect memory is being added, like stat changes for s_bless, s_cunning... s_weaken ...
Argo = memory item
argn1 = spellid
returns:
return 0: Let default checks to happen.
return 1: Blocks any action and stops everything, also deletes the memory (Blocking any changes, this will cause also the effect to do not have duration)
return 2: Let the memory exist but block default checks, perfect to override default effects and do some custom stuff.
To simulate something like '@EffectEnd' just apply an event with @Timer to the memory since the 'default changes' are happening after @UnEquip and, at this point, the item must be removed in any case... so preventing this must be done before (@Timer fits perfectly).
[code]
ON=@EffectAdd
more1l = str bonus
more1h = dex bonus
[code]
This will make sphere handle these stats automatically, if you want other ones you will have to script it.
|
|
07-16-2016 08:01 PM |
|
|