bonus from buffed units

Kahiera

Active Member
Reaction score
9
can someone help me make a trigger for an ability, that when cast, it picks every unit in a 1000 that has a certain buff and the casting hero gains +2 damage per buffed unit for a limited time? there are 3 levels to this ability and there are 2 different buffs
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
Trigger:
  • Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) Your Ability
    • Actions
      • Set tempgroup = (Units within [Range you want] of (Position of (Triggering unit)))
      • Unit Group - Pick every unit in tempgroup and do (Actions)
        • Loop - Actions
          • Set unitcount[(Player number of (Owner of (Triggering unit)))] = (unitcount[(Player number of (Owner of (Triggering unit)))] + 1)
        • Do Multiple ActionsFor each (Integer A) from 1 to unitcount[(Player number of (Owner of (Triggering unit)))], do (Actions)
          • Loop - Actions
            • Unit - Add (Your Dummy attack buff) to (Triggering unit)
      • Wait [However many] seconds
        • Do Multiple ActionsFor each (Integer A) from 1 to unitcount[(Player number of (Owner of (Triggering unit)))], do (Actions)
          • Loop - Actions
            • Unit - Remove (You Dummy Attack Buff) from (Triggering unit)
      • Custom script: call DestroyGroup (udg_tempgroup)
 

Rushhour

New Member
Reaction score
46
as far as I know TriggeringUnit is MUI and the variable used after the wait is an array with index belonging to the player, so yes
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top