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.

      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