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

[Solved] Simple critical spell

Status
Not open for further replies.
Level 7
Joined
May 18, 2010
Messages
264
I made it this morning ... jesus my pc crashed can make it again
....... ive bean tring forever its realy simple but i dont get it....
  • HollyBash
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If ((Level of |cfff0e68cHolyBash|r for (Attacking unit)) Equal to 1) then do (For each (Integer A) from 1 to 10, do (Do nothing)) else do (Do nothing)
        • Loop - Actions
i want it 20% so from 1 - 10
now the problem i dont know how to make the trigger so it will be a check intriger ... if its 2 or lower and do the action
 
Level 7
Joined
May 18, 2010
Messages
264
  • HollyBash
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of |cfff0e68cHolyBash|r for (Attacking unit)) Equal to 1
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 10) Equal to 1
        • Then - Actions
          • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Real((Strength of (Attacking unit) (Include bonuses)))) x 1.50) damage of attack type Normal and damage type Normal
        • Else - Actions
          • Do nothing
thx to Tank-Commander

CLOSED CLOSED CLOSED CLOSED
 
Status
Not open for further replies.
Top