Jump to content
  • 0

How to make NPC reduce hp by set amount.


sietse11

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   7
  • Joined:  02/10/13
  • Last Seen:  

hey folks,

 

I am trying to make an npc take off 20k hp.

 

heres what I tried.

sethp, hp-20000;
---------------------------
hp hp,-20000;
---------------------------
Hp Hp,-20000;
---------------------------
gethp hp,-20000;

what would be the right command for this xD


hmmm, overlooked heal.

gonne try heal -20000,0

Edited by sietse11
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

set hp, hp -20000;
if the player has less than 20k hp, the hp is set to 1

heal -20000,0;
if the player has less than 20k hp, the player is dead
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   7
  • Joined:  02/10/13
  • Last Seen:  

Ah okay, I didnt use

set hp

Cause I thought that would have a different effect xD

 

Anyways, heal works perfectly cause killing players is an intended side effect :P

Link to comment
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.

×
×
  • Create New...