Strength bonus per unit killed; possible?

HalosNTariff

New Member
Reaction score
13
Hi, I'm making a hero defence style map and I've created all my heroes bar one.

He has a couple of abilities I'm having trouble with: first he has a passive skill which should increase his strngth by one for each unit he kills, up to a maximum of 5 times his current level. If he dies then any bonus strength is removed. basically I need a way to add strength to the hero per unit killed, I can't base a dummy skill off of attribute bonus as he already has this ability, are there any other abilities which grant bonus strength? Also I need to find a way to trigger it to add one strength per unit killed, is it possible to make an integer variable which stores the number of dead units slain by a specific unit?

Secondly he has another ability which should knock an enemy backwards, does anyone have a link to a good knockback tutorial, I had a look but couldn't find any.

On a final note I'm looking for a skin of Arthas as the Lich King, as in how he looks in the fmv at the end of the WC3 human campaign mode, no horse, big cloak, bone armour etc. I had a check on hive but couldn't find anything, if anyone has a link could they please share?

Thanks in advance.
 

istar

New Member
Reaction score
31
event-unit dies
condition-killer is hero
action-hero - variable amount of str
variable=variable+1
hero + variable amount of str
event unit dies
condition dead is hero
action hero - vairable str
set variable=0
 

Cookiemaster

New Member
Reaction score
36
event-unit dies
condition-killer is hero
action-hero - variable amount of str
variable=variable+1
hero + variable amount of str
event unit dies
condition dead is hero
action hero - vairable str
set variable=0


I suggest using an ability for changing the amount of STR the hero has.
Otherwise stuff can get messy.
 

istar

New Member
Reaction score
31
there is an ability that adjust str?
edit: o, item strength gain from tome of strength etc, you can try that
 

HydraRancher

Truth begins in lies
Reaction score
197
This?
Trigger:
  • Strength
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Killing unit)) Equal to Your Hero
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Your Abillity for (Killing unit)) Equal to 1
        • Then - Actions
          • Hero - Modify Strength of (Killing unit): Add ((Hero level of (Killing unit)) + 5)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Your Abillity for (Killing unit)) Equal to 2
            • Then - Actions
              • Hero - Modify Strength of (Killing unit): Add ((Hero level of (Killing unit)) + 10)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Your Abillity for (Killing unit)) Equal to 3
                • Then - Actions
                  • Hero - Modify Strength of (Killing unit): Add ((Hero level of (Killing unit)) + 15)
                • Else - Actions
 

HalosNTariff

New Member
Reaction score
13
Okay, I've hit a major roadblock:

I made a 50 custom unit abilities based on 'item strength bonus (+1)' with each ability having 1 higher strength than its predecessor. I would have used one ability with 50 levels but apparently altering the level of a unit ability doesn't affect a heroes strength...

So, I've made this trigger:

Code:
Aura Steal 1
    Events
        Unit - A unit Dies
    Conditions
        And - All (Conditions) are true
            Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Level of Aura Steal  for (Killing unit)) Equal to 1
                        (Level of Aura Steal  for (Killing unit)) Equal to 2
                        (Level of Aura Steal  for (Killing unit)) Equal to 3
                        (Level of Aura Steal  for (Killing unit)) Equal to 4
                        (Level of Aura Steal  for (Killing unit)) Equal to 5
                        (Level of Aura Steal  for (Killing unit)) Equal to 6
                        (Level of Aura Steal  for (Killing unit)) Equal to 7
                        (Level of Aura Steal  for (Killing unit)) Equal to 8
                        (Level of Aura Steal  for (Killing unit)) Equal to 9
                        (Level of Aura Steal  for (Killing unit)) Equal to 10
                AuraKills Equal to 0
    Actions
        Set AuraKills = 0
        Unit - Add Aura Steal Bonus (1) to (Killing unit)
        Set AuraKills = (AuraKills + 1)

Fairly self explanatory, it detects when a unit is killed, checks if the killing unit has Aura Steal at any level then gives him the first strength bonus (+1) before adding 1 to an integer variable. This works fine, I kill a unit and get +1 strength. The problem arises when I try to add strength bonuses greater than one:

Code:
Aura Steal 2
    Events
        Unit - A unit Dies
    Conditions
        And - All (Conditions) are true
            Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Level of Aura Steal  for (Killing unit)) Equal to 1
                        (Level of Aura Steal  for (Killing unit)) Equal to 2
                        (Level of Aura Steal  for (Killing unit)) Equal to 3
                        (Level of Aura Steal  for (Killing unit)) Equal to 4
                        (Level of Aura Steal  for (Killing unit)) Equal to 5
                        (Level of Aura Steal  for (Killing unit)) Equal to 6
                        (Level of Aura Steal  for (Killing unit)) Equal to 7
                        (Level of Aura Steal  for (Killing unit)) Equal to 8
                        (Level of Aura Steal  for (Killing unit)) Equal to 9
                        (Level of Aura Steal  for (Killing unit)) Equal to 10
                AuraKills Equal to 1
    Actions
        Unit - Remove Aura Steal Bonus (1) from (Killing unit)
        Unit - Add Aura Steal bonus (2) to (Killing unit)
        Set AuraKills = (AuraKills + 1)

Basically the same trigger except it adds the +2 strength bonus and only fires when 'AuraKills' is equal to 1, which it should be if the first trigger has fired. Then it removes the +1 strength bonus.

The only problem is that both triggers fire when the same unit is killed. With both these triggers active the first unit I kill grants me +2 instead of +1 bonus strength.

I need a method of making sure that each trigger fires on succesive kills rather than all on the same one, anyone have any suggestions?

I really need some help on this.
 

istar

New Member
Reaction score
31
erm... you dont need 50...-.-, just 2
give them the tomb of str +1, the add str is permenent... the 2nd item is minus str
or you could have a nice variable to record all kills and trigger add strength to hero directly in the GUI triggers i gave you in the 2nd post
 

HalosNTariff

New Member
Reaction score
13
Thanks for pointing out I only need two abilities, saved me a lot of time.

Anyway, I'm still trying to get this to work, as a test I made a trigger with the event 'A unit dies' and then an action 'add ability (+1 strength) to killing unit'. I didn't put any conditions in, this trigger should add one strength whenever a unit kills another unit right? So I test the trigger, when I kill one unit I get +1 strength, no problems there, when I kill a second unit the trigger should fire again and give me thae ability again, therefore +2 strength, however it doesn't work, I remain on +1 strength.

I'm wondering if the +1 strength ability doesn't stack if it is a unit ability? In which case I do need 50 abilities.

Anyone know what is going wrong?
 

HalosNTariff

New Member
Reaction score
13
Sorry here's the trigger:

Code:
Aura Steal 1
    Events
        Unit - A unit Dies
    Conditions
    Actions
        Unit - Add Aura Steal Bonus (1) to (Killing unit)

This is just to test it obviously so there are no conditions.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
I didn't read the whole therad, but couldn't you just do this:
Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Killing unit)) Equal to Paladin
        (Level of Acid Bomb for (Killing unit)) Greater than 0
    Actions
        Set strLevel = (Level of Acid Bomb for (Killing unit))
        Hero - Modify Strength of (Killing unit): Add ((Strength of (Killing unit) (Exclude bonuses)) + (5 x strLevel))
Paladin being the hero with the skill;
Acid Bomb being the skill that gives strength upon killing units.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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