• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Need to make this trigger MUI

Status
Not open for further replies.
Level 3
Joined
Nov 26, 2009
Messages
35
Can anyone help with that?
  • Test
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
      • (GDD_DamageSource has buff Mage Slash ) Equal to Yes
    • Actions
      • Set VariableSet MageSlash = (MageSlash + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • MageSlash Equal to 5
        • Then - Actions
          • Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing 799.00 damage of attack type Spells and damage type Normal
          • Set VariableSet MageSlash = 0
        • Else - Actions
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
I'd recommand using a Unit Indexer such as this one: GUI Unit Indexer 1.4.0.0 if you have multiple units of the same player with the same buff. What you need to do is to turn MageSlash integer into an array and insert the custom value of DamageSource in it.
If it's just one unit per player, you can do this instead:
  • Test
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
      • (GDD_DamageSource has buff Mage Slash ) Equal to Yes
    • Actions
      • Set VariableSet PlayerIndex = (Player number of (Owner of (DamageSource())
      • Set VariableSet MageSlash[PlayerIndex] = (MageSlash[PlayerIndex] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • MageSlash[PlayerIndex] Equal to 5
        • Then - Actions
          • Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing 799.00 damage of attack type Spells and damage type Normal
          • Set VariableSet MageSlash[PlayerIndex] = 0
        • Else - Actions
It's the same as Unit Indexer expect that we're using player number instead of custom value.
 
Status
Not open for further replies.
Top