• 0
Sign in to follow this  
JHONDOMINIC

How to check player HP&SP when fighting?

Question

I have idea to make Auto Heal script. But i have one problem i don't know how to check player HP and SP when player get damage.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
On 8/10/2019 at 12:21 AM, JHONDOMINIC said:

how to check player HP and SP

if (Hp < 100)  // current player HP is less than 100
if (Sp < 50)  // current player SP is less than 50

both Hp and Sp variable can be used.

Share this post


Link to post
Share on other sites
  • 0
On 8/9/2019 at 4:21 AM, JHONDOMINIC said:

I have idea to make Auto Heal script. But i have one problem i don't know how to check player HP and SP when player get damage.

thats what i was looking for too

Share this post


Link to post
Share on other sites
  • 0
On 8/31/2019 at 11:08 PM, Emistry said:
if (Hp < 100)  // current player HP is less than 100
if (Sp < 50)  // current player SP is less than 50

both Hp and Sp variable can be used.

I know this command sir. But i need command for when player get hit by monster and then script start to check player hp and when player use some sp script start to check sp too :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this