Coruja 
Sphere Developer
    
Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7
Dimension Shard
![]()
|
RE: Polymorph
polymorph doesn't change the char status anymore because that's the correct behavior for this spell
but if you want back the status chance behavior, you can play with @Success on polymorph spell to create a fully scripted behavior
Code:
[Spell 56]
DEFNAME=s_polymorph
...
ON=@Success
IF (<ACTARG2> == c_daemon)
TIMERF 1,PolymorphChangeStatus 100,50,30 //if polymorph into a daemon, add +100 str / +50 dex / +30 int
ELIF (<ACTARG2> == c_gorilla)
TIMERF 1,PolymorphChangeStatus 20,0,0 //or just add +20 str if polymorph into a gorilla
ENDIF
[FUNCTION PolymorphChangeStatus]
REF1=<FINDID.<SERV.SPELL.s_polymorph.RUNE_ITEM>>
IF (<REF1>)
REF1.TAG.ModStr=<ARGV0>
REF1.TAG.ModDex=<ARGV1>
REF1.TAG.ModInt=<ARGV2>
REF1.EVENTS +e_polymorph_effect
REF1.TRIGGER @Equip
ENDIF
[EVENTS e_polymorph_effect]
ON=@Equip
SRC.MODSTR += <TAG0.ModStr>
SRC.MODDEX += <TAG0.ModDex>
SRC.MODINT += <TAG0.ModInt>
ON=@Unequip
SRC.MODSTR -= <TAG0.ModStr>
SRC.MODDEX -= <TAG0.ModDex>
SRC.MODINT -= <TAG0.ModInt>
I made this script in just a minute and doesn't tested it, but maybe it works
this code will store a tag on the polymortp memory item to track STR / DEX / INT changes, so it will rise these values, and decrease it when the memory item got removed
(This post was last modified: 11-05-2014 09:50 AM by Coruja.)
|
|
11-05-2014 09:39 AM |
|
|