The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Polymorph
Author Message
Coruja
Sphere Developer
*****

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

Dimension Shard

Post: #2
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
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Polymorph - Kapa - 11-01-2014, 05:24 PM
RE: Polymorph - Coruja - 11-05-2014 09:39 AM
RE: Polymorph - Kapa - 11-05-2014, 11:42 PM
RE: Polymorph - Van Glan Bloom - 07-01-2016, 10:38 PM
RE: Polymorph - XuN - 07-16-2016, 08:01 PM
RE: Polymorph - Russian - 02-15-2018, 04:56 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)