Ability that adds hitpoints

D

david2cool

Guest
Hey, on this hero i am making i want an ability that adds hit points to their total hit points. I based the ability off the item ability that adds hit points but it only works for the first level and not the next three. Is there anyway to fix this?

Also if anyone can think of a better way of doing it thats fine too.
 
D

david2cool

Guest
Sorry, I don't think you understood me. I want the ability to give the hero just +200hp, +400hp etc. I just want to add this to their total hitpoints.

So if the hero had 200hp then learned the ability he would now have 400hp.
 

bananaHUNT

You can change this now in User CP
Reaction score
55
You could make an upgrade and research it when the hero learns the ability?
 

slayer

New Member
Reaction score
2
Hey, on this hero i am making i want an ability that adds hit points to their total hit points. I based the ability off the item ability that adds hit points but it only works for the first level and not the next three. Is there anyway to fix this?

Also if anyone can think of a better way of doing it thats fine too.

Go into the abilities menu, select items abilities and pick e.g 'Item Life Bonus', make it a hero ability, make it to 3 levels and you're done :D
 

slayer

New Member
Reaction score
2
I think that's what he was already trying to do. Certain item abilities don't level correctly (Item Life Bonus being one of them, from what I recall)

Yeah, stupid of me :eek:
You could use triggers, and use the 'Add Ability' depending on hero skill level.
 
D

david2cool

Guest
Sorry i am still confused about this. How would having a -200hp to my hero increase it by 200 each time???? :confused:

If possible could you please post the trigger. I am confused.

I tried this trigger with an item ability (non hero) with 3 levels. But it only worked for the first one.
Code:
Untitled Trigger 001
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Fire Life 
    Actions
        Unit - Add Item Life Bonus (Greater) to (Triggering unit)
        Unit - Set level of Item Life Bonus (Greater) for (Triggering unit) to (Level of Fire Life  for (Triggering unit))
 

slayer

New Member
Reaction score
2
Ok, now I got it: Create a new skill, for instance; copy bash and zero the values then use this trigger.

ExtraHealth
Events
Unit - A unit owned by Player 1 (Red) Learns a skill
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Bash for (Triggering unit)) Equal to 1
Then - Actions
Unit - Add Item Life Bonus 100 to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Bash for (Triggering unit)) Equal to 2
Then - Actions
Unit - Add Item Life Bonus 200 to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Bash for (Triggering unit)) Equal to 3
Then - Actions
Unit - Add Item Life Bonus 300 to (Triggering unit)
Else - Actions
 

Flare

Stops copies me!
Reaction score
662
Sorry i am still confused about this. How would having a -200hp to my hero increase it by 200 each time???? :confused:

It just does. I didn't believe it at first either :p

If possible could you please post the trigger. I am confused.

I tried this trigger with an item ability (non hero) with 3 levels. But it only worked for the first one.
Code:
Untitled Trigger 001
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Fire Life 
    Actions
        Unit - Add Item Life Bonus (Greater) to (Triggering unit)
        Unit - Set level of Item Life Bonus (Greater) for (Triggering unit) to (Level of Fire Life  for (Triggering unit))

Remove the ability afterwards.
 
D

david2cool

Guest
Ty that works but i kinda sucks that i need 5 abilities for it. The first basic one that doesnt do anything and 4 Item Bonus +200 health.:thdown: Anyways +rep for u.:thup:

Flare im still trying to get ur way to work but i cant get it.
Do all the values in the item bonus have to have -200 values?
Id rather use ur way if i could get it to work.

The trigger is like this.
Code:
Untitled Trigger 001
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Fire Life 
    Actions
        Unit - Add Item Life Bonus (Greater) to (Triggering unit)
        Unit - Set level of Item Life Bonus (Greater) for (Triggering unit) to (Level of Fire Life  for (Triggering unit))
        Unit - Remove Item Life Bonus (Greater) from (Triggering unit)
 
D

david2cool

Guest
flare i still couldn't get that ability to work :(

i made item permanent health each give -200 health for each level. i then gave the level of item permenent to the hero set it to the right level and removed and still it didnt work. Are u sure it works ? :D
 

WilliamPa

Active Member
Reaction score
51
Use Hero Attributes ability and make it give stamina correct value, if u haven't edited gameplay constants, it will be 8 stam=200hp
 
D

david2cool

Guest
What do u mean by staminia in hero attributes? I didn't want to give strength just more max hitpoints.
 

vypur85

Hibernate
Reaction score
803
> Ty that works but i kinda sucks that i need 5 abilities for it

Then give the life bonus ability few levels. You only need one ability.


> couldn't get that ability to work

You should probably show your current trigger.


This may help you.

I don't know exactly how you want it to be, but this is the way to implement it:

1. Copy the 'Set Max Hp' trigger into your map.
2. Then do (This depends on what event you want):
Code:
Event
 A unit learns an ability
Condition
 Hero ability learnt Equal to Something
Action
 Set Some_Unit = (Triggering unit)
 Set Max_Hp = (200 x (Level of learnt ability)) <-- [I]This adds 200/400/600 HP everytime you learn[/I]
 Trigger - Run Set Max Hp <gen>
 

millzy

Ultra Cool Member
Reaction score
44
Hey, on this hero i am making i want an ability that adds hit points to their total hit points. I based the ability off the item ability that adds hit points but it only works for the first level and not the next three. Is there anyway to fix this?

Also if anyone can think of a better way of doing it thats fine too.


u said it only works for 1 lvl is the lvl 1 data the same as the level 2 and 3
if not add axtra for level 2 and 3
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top