Advanced Search

Author Topic: Health check string  (Read 1535 times)

0 Members and 1 Guest are viewing this topic.

July 29, 2012, 02:52:10 PM
Read 1535 times

Offline ? Manibogi ?

  • Standard Member
  • Date Registered: May 30, 2011, 11:00:57 PM

    • View Profile
Health check string
« on: July 29, 2012, 02:52:10 PM »
Hi, I wanted to know what string do you use to check the user's health, as I wanted to experiment with an afterburn "item" that doesn't hurt the user below a certain amount of health, avoiding "suicides".

Thank you very much Coldy

You can lock this now.

It still kills my subject anyway, so here's the entire thing if you want to check it out:

(click to show/hide)

July 29, 2012, 06:21:58 PM
Reply #1

Offline MasterXman

  • Standard Member

  • Status Unknown
  • Date Registered: April 26, 2011, 12:15:48 AM

    • View Profile
Whoops. Meant to say A_JumpIfHealthLower
« Reply #1 on: July 29, 2012, 06:21:58 PM »
$health possibly works.
Use that.


Ignore this. Move along. I meant to say A_JumpIfHealthLower

July 29, 2012, 06:33:19 PM
Reply #2

Offline ? Manibogi ?

  • Standard Member
  • Date Registered: May 30, 2011, 11:00:57 PM

    • View Profile
Re: Health check string
« Reply #2 on: July 29, 2012, 06:33:19 PM »
Can you put it in context?
This is the string I have:

 TNT1 A 0 A_JumpIf($Health,<3,"Done")

The <3 part doesn't work either, so it's problably all kinds of wrong.

July 29, 2012, 07:45:35 PM
Reply #3

Offline Hallan Parva

  • MM8BDM MM8 Contributor

  • drifting absently across an endless sea
  • *
  • Date Registered: September 23, 2010, 10:32:40 PM

    • View Profile
Re: Health check string
« Reply #3 on: July 29, 2012, 07:45:35 PM »
I could be wrong, but isn't there a way to check the target's health? You check the target's inventory for the SinkSoak flag, so why can't you check for health?

I'd try using TargetInventory and checking for "health" just for laughs before giving up.

July 29, 2012, 07:57:07 PM
Reply #4

Offline ? Manibogi ?

  • Standard Member
  • Date Registered: May 30, 2011, 11:00:57 PM

    • View Profile
Re: Health check string
« Reply #4 on: July 29, 2012, 07:57:07 PM »
I don't even know if the SinkSoak thingy actually works, though.
Let's just wait for Jax, everything he touches is magically better