Author Topic: Max Health event (again)  (Read 922 times)

I made a topic about this a while back, and Advanced Bot(or Visolator) made it for me, but it has these two problems that really bug me V

  • It doesn't work with <var:pl:maxhealth>
  • It doesnt work with Wrapperup's 3D health bar

I just want an event like this V

onActivate - player - setMaxHealth - (number) simple as that.

There isn't a possible way other than changing the datablock's max damage, but if you do that, it will bug. The only way to fix it is that the add-on has to be modified.

I am thinking of reviving the mod and adding a support for %player.getHealth() instead of using %player.getDatablock().maxDamage since that is a bad thing to do if there is a modification. If so, I could modify all the health add-ons to be stable with the health mod.
« Last Edit: July 18, 2014, 04:08:46 PM by Advanced Bot »

There isn't a possible way other than changing the datablock's max damage, but if you do that, it will bug. The only way to fix it is that the add-on has to be modified.

I am thinking of reviving the mod and adding a support for %player.getHealth() instead of using %player.getDatablock().maxDamage since that is a bad thing to do if there is a modification. If so, I could modify all the health add-ons to be stable with the health mod.

Okay then, you can modify the add-ons to be compatible with each other if that's the only way.

There isn't a possible way other than changing the datablock's max damage, but if you do that, it will bug. The only way to fix it is that the add-on has to be modified.

I am thinking of reviving the mod and adding a support for %player.getHealth() instead of using %player.getDatablock().maxDamage since that is a bad thing to do if there is a modification. If so, I could modify all the health add-ons to be stable with the health mod.
You could give the player a fake health variable and modify the damage function.

You could give the player a fake health variable and modify the damage function.

The problem is that VCE wouldn't recognize that.

I literally have to go through every add-on just to change the variables to support the mod.

I literally have to go through every add-on just to change the variables to support the mod.

Really? I thought you were just going to do the 3D health mod

Actually i'm still a little clueless as to what it is you have to modify.
« Last Edit: July 18, 2014, 08:12:30 PM by YounqD »

Anything that tried to use the getDatablock().maxDamage has to be switched to a getMaxHealth method, which detects to use the max damage or the fake health. Same for the health method.

Anything that tried to use the getDatablock().maxDamage has to be switched to a getMaxHealth method, which detects to use the max damage or the fake health. Same for the health method.

I see, wish i could help. Problem is I know nothing about code. But if it's like a simple copy and paste let me know and ill do it.

nvm, locking this.
« Last Edit: July 19, 2014, 12:07:22 AM by YounqD »