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

Roar shock

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,103
how can I make that trigger works for all 3 levels? now it works only when leanred spell is lvl 1...

OMG, wrong section.. can't delete post

  • Roar shock
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Bash
    • Actions
      • Set trig_unit = (Attacked unit)
      • Set damage[1] = 100.00
      • Set damage[2] = 200.00
      • Set damage[3] = 300.00
      • Set temp_integer = (Level of Bash for trig_unit)
  • roar shock loop
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Set Unit_Group = (Units within 300.00 of (Position of trig_unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Attacked unit) Equal to trig_unit
              • (Random integer number between 10 and 100) Less than or equal to 20
            • Then - Actions
              • Special Effect - Create a special effect attached to the origin of trig_unit using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
              • Special Effect - Destroy (Last created special effect)
              • Unit Group - Pick every unit in Unit_Group and do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (((Picked unit) belongs to an enemy of (Owner of trig_unit)) Equal to True) and ((((Picked unit) is alive) Equal to True) and (((Picked unit) is dead) Equal to False))
                    • Then - Actions
                      • Special Effect - Create a special effect attached to the overhead of (Picked unit) using Environment\LargeBuildingFire\LargeBuildingFire1.mdl
                      • Special Effect - Destroy (Last created special effect)
                      • Unit - Cause trig_unit to damage (Picked unit), dealing damage[temp_integer] damage of attack type Spells and damage type Normal
                      • Custom script: call DestroyGroup(udg_Unit_Group)
                    • Else - Actions
            • Else - Actions
        • Else - Actions
 
Status
Not open for further replies.
Top