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
Heal "command"
Author Message
gergecoelho
Apprentice
*

Posts: 31
Likes Given: 7
Likes Received: 3 in 3 posts
Joined: Jul 2015
Reputation: 0



Post: #3
RE: Heal "command"
Oh thanks on that one! Big Grin

Added the effect and the sound effect from the heal spell and it's looking good and healing.

But the distance thing seems messed up, it's healing regardless of distance, sphere says: Can't resolve <ref1.dist>

Quote:[FUNCTION _celheal]
ref1=<argo>
IF (<ref1.dist> >= 2)
sysmessage=You must be close to touch the target.
else
sysmessage=Drawing on your divine blood, your touch heals.
ref1.effect=3,i_fx_heal_effect,20,30,1
ref1.sound=snd_spell_heal
ref1.sysmessage=You were healed.
ref1.hits +=({8,12}+(<Healing>/100))
if (<ref1.hits> > <ref1.maxhits>)
ref1.hits=<ref1.maxhits>
endif
endif

P.S.: Dist 1 = At the target's side, right? Dist 0 = Sharing the same tile?

And it's healing even trees and statics, how could I check if it's a living thing before applying the heal?

Thanks for the attention. Smile
(This post was last modified: 07-27-2015 11:47 AM by gergecoelho.)
07-27-2015 11:46 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Heal "command" - gergecoelho - 07-27-2015, 04:47 AM
RE: Heal "command" - XuN - 07-27-2015, 07:38 AM
RE: Heal "command" - gergecoelho - 07-27-2015 11:46 AM
RE: Heal "command" - XuN - 07-27-2015, 06:36 PM
RE: Heal "command" - gergecoelho - 07-28-2015, 01:30 AM

Forum Jump:


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