• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Boost HP buff

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
I know that bug! That is not what I need. I need to create a "Blessed Body" buff... It must give a temporary life bonus to a hero and remove it when 20 minutes pass or hero dies...
:vw_sad:

It is what you can use. Add max hp, start a timer. When the timer expires, you remove max hp by the same amount you added. To remove max hp, you modify the health ability to give a positive amount.
 
Level 10
Joined
Mar 17, 2012
Messages
582
It is what you can use. Add max hp, start a timer. When the timer expires, you remove max hp by the same amount you added. To remove max hp, you modify the health ability to give a positive amount.

won't the number of abilities leak at one nasty moment?

one more: how would you solve this problem: unit rises the level of ability and buffs it over previous (lower level "Blessed Body") and hp bonus stays?

Siphon mana(life drain) allows the caster to have more than maximum mana and health.

but when it goes down, noone can heal him for that amount of HP...

Have you played Lineage 2?

http://lineage2server.org/skill-Blessed-Body-1045

I'd like to make such a spell, but I feel that there'll be too much bugs with it((( But I can't not to make it...
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
won't the number of abilities leak at one nasty moment?

one more: how would you solve this problem: unit rises the level of ability and buffs it over previous (lower level "Blessed Body") and hp bonus stays?



but when it goes down, noone can heal him for that amount of HP...

Have you played Lineage 2?

http://lineage2server.org/skill-Blessed-Body-1045

I'd like to make such a spell, but I feel that there'll be too much bugs with it((( But I can't not to make it...

Well, as people have pointed out you should use a bonusmod.
Basically with a bonusmod you can do something like:
JASS:
call UnitAddStat(unit,MAXHEALTH,300)
Then if necessary you can lower the current health back to what it was before adding this(when a stat bonus is applied to mana or health, then the percentual amount remains the same. Thus, actual health increases)
 
Level 10
Joined
Mar 17, 2012
Messages
582
Well, as people have pointed out you should use a bonusmod.
Basically with a bonusmod you can do something like:
JASS:
call UnitAddStat(unit,MAXHEALTH,300)
Then if necessary you can lower the current health back to what it was before adding this(when a stat bonus is applied to mana or health, then the percentual amount remains the same. Thus, actual health increases)

How to use "bonusmod" and where can I get it?
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
How to use "bonusmod" and where can I get it?

A bonusmod is a system that uses a bunch of abilities to add stats that couldn't normally be added.
First known bonusmod

I also attached a template that contains my bonusmod.

Note that both of the bonusmods require vJASS to use, thus you need JNGPE or just the newest JASShelper to use them at all.
 

Attachments

  • Map Template v0.02t.w3x
    60.7 KB · Views: 77
Level 14
Joined
Jun 27, 2008
Messages
1,325
Its not recommended to use BonusMod or other similar systems directly. The Problem is:
If you have different Buffs that modify maximum hp you have to make sure they dont influence each other. This is especially necessary when you have buffs that increase the hp by a certain % (not just by an absolute value).
BonusMod should be used as backend for a buffsystem which then handles the different buffs.
 
Status
Not open for further replies.
Top