• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Periodic Damage to Heroes

Status
Not open for further replies.
You mean like this?
  • Damage
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A Hero) Equal to (==) True
              • ((Picked unit) is alive) Equal to (==) True
            • Then - Actions
              • -------- Now you need to set who shall damage the heroes and what amount. --------
              • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
            • Else - Actions
Now you must chose who damages and how much...
 
You mean like this?
  • Damage
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A Hero) Equal to (==) True
              • ((Picked unit) is alive) Equal to (==) True
            • Then - Actions
              • -------- Now you need to set who shall damage the heroes and what amount. --------
              • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
            • Else - Actions
Now you must chose who damages and how much...
but i dont want anybody to deal damage i want them to take random damage.
 
Stanley's trigger seems fine to me
Unless you want a random damage, in the "500.00", change the value to:
  • Unit - Cause No unit to damage (Picked unit), dealing (Random real number between 1.00 and 100.00) damage of attack type Spells and damage type Normal
This trigger will cause no unit to damage picked unit, damaging it from 1 ~ 100 random values
You can set them if you want, at that "(Random real number between 1.00 and 100.00) under "Math - Random Number" function
 
Status
Not open for further replies.
Back
Top