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

Periodic Damage to Heroes

Status
Not open for further replies.
Level 12
Joined
Apr 16, 2010
Messages
584
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...
 
Level 5
Joined
Feb 15, 2010
Messages
107
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.
 
Level 12
Joined
Apr 16, 2010
Messages
584
A random damage like 1-1000?
And who must deal damage? What player? Neutral?
In the last action you need to select the player who shall deal damage and what amount.
Edit: hope you understood and will solve the thing you want yourself cuz i got to go, else wait someone to replay or me... Good luck!
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
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.
Top