• 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.

passive

Status
Not open for further replies.
Level 6
Joined
Mar 2, 2013
Messages
127
This ability would be for an item, I'm trying to find the best way of doing it. Heres what i have so far. I don't really want the event to be, "A unit Is attacked" because then the trigger runs like the whole game :/
NOTE: I know some of the stuff is wrong, I'm just trying to get an idea of how I would do this.


  • Item
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) has an item of type Alleria's Flute of Accuracy) Equal to (==) True
    • Actions
      • Set Rand[0] = (Random integer number between 1 and 100)
      • Set int = 4
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Rand[0] Less than or equal to (<=) 15
          • Then - Actions
            • Set unit = (Attacked unit)
            • Trigger - Turn on time <gen>
          • Else - Actions
  • time
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Cause (Triggering unit) to damage unit, dealing 15.00 damage of attack type Spells and damage type Normal
      • Set int = (int - 1)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • int Equal to (==) 0
          • Then - Actions
            • Set unit = No unit
            • Trigger - Turn off (This trigger)
          • Else - Actions
 
+ attacked is abusable...

anyway, you can find a single target spell that damages over time (or heals over time), then make an ability based on it... remove mana cost (cooldown if you want), then make another new ability based on Orb of lightning ability and make it use the DoT ability...

or using triggers, well you might wanna use a DDS for that...
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
but do take note than sometimes (or most?) it doesn't trigger if the unit just auto-acquired a target

It never triggers if the unit auto-acquires a target (for nearly all abilities inside the OoL)
 
Status
Not open for further replies.
Top