Need some help with an Attack and Size modifier pertaining to No. of kills.

HalosNTariff

New Member
Reaction score
13
Hi everyone,

I'm making a map with a number of heroes, one of these heroes is the 'Blood Beast.' Literally a beast made of blood. For it's ultimate ability (Rubicund Osmosis) I want it to be able to enter a state for 30 seconds wherein every kill it makes adds +10 to it's strength attribute (up to a maximum of +100) and increases in size. The idea being that it drains the blood out of it's victims.

So I made an ability based on Immolation which, once activated, gives the Blood Beast the Rubicund Osmosis buff for 30 seconds. Then I set up a couple of variables: ROKills (inetger) to count the No. of kills and ROSizeMod (integer.)

Then I made these triggers:
Code:
ROVariableSetup
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Rubicund Osmosis (Tick)
    Actions
        Set ROKills = 0
        Set ROSizeMod = 0

Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        And - All (Conditions) are true
            Conditions
                ((Killing unit) is A Hero) Equal to True
                (Unit-type of (Killing unit)) Equal to Blood Beast
                ((Killing unit) has buff Rubicond Osmosis ) Equal to True
    Actions
        Set ROKills = (ROKills + 1)
        Unit - Add ROAttkBoost  to (Killing unit)
        Unit - Set level of ROAttkBoost  for (Triggering unit) to ROKills

The first sets/resets the variables to 0 once the hero starts the ability. It is the second where the problem is. The ability 'ROAttackBoost' is based on Attribute bonus and has +10 strength each level. However once the hero makes one kill it's strength rises by 10, as it should, but on successive kills the strength remains on +10 when I need it to rise to +30, +40 etc.

So can anyone spot what I've done wrong/offer a way to fix it?

Thanks in advance.
 

kaboo

New Member
Reaction score
45
1.Set level of ROAttkBoost for (Triggering unit) to ROKills
-triggering unit in this case is the dying unit, change it to killing unit
2.
((Killing unit) is A Hero) Equal to True -> what for u need this? when in the next condition u check if killer is the blood beast. and blood beast=hero in any case
(Unit-type of (Killing unit)) Equal to Blood Beast
 

HalosNTariff

New Member
Reaction score
13
Thank you both, I knew I'd missed something stupid.

The extra condition is in there because, uh, I haven't removed it yet. Once I've got the trigger working I'll clean it up.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top