XuN
Sphere Developer
Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30
|
RE: Heal "command"
http://wiki.sphere.torfo.org/index.php/Targetf
Something like this will do the job:
Code:
[FUNCTION celheal]
IF (<SRC.TAG.RACE>==03)
sysmessage Who do you want to heal?
TARGETf _celheal
ELSE
SYSMESSAGE=You are not a Celestial.
ENDIF
Code:
[FUNCTION _celheal]
ref1=<argo>
IF (<ref1.dist> == 1) // ? Is this right? one tile away? you used IF (<TARG.DIST>=1) which makes no sense, you are not comparing anything but trying to SET the value returned from <targ.dist> to 1 ... this will cause a mess on your code.
//ARGO.CAST 7 //Possible Heal effect and sound? Or maybe weird target on target? this should be replaced with the effect you want, the spell heal should have the effectid you should use:
ref1.effect=3,effect_id_here,20,30,1
sysmessage=Drawing on your divine blood, your touch heals.
ref1.sysmessage=You were healed.
ref1.hits +=({8,12}+(Healing/100)) // Note that you are not using brackets outside Healing, it should be (<Healing>/100).
if (<ref1.hits> > <ref1.maxhits>) //IF <ARGO.HITS> > TARG.MAXHITS. you are comaring <argo.hits> against 'targ.maxhits', shouldn't it be <targ.maxhits>? However, and also important, you should be comparing or both <argo.hits> and <argo.maxhits> or <targ.hits> and <targ.maxhits> but not a mix of them, since one may target to a different character at certain situations.
ref1.hits=<ref1.maxhits>
endif
else
sysmessage=You must close to touch the target.
endif
|
|
07-27-2015 07:38 AM |
|
|