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

[Trigger] Trigger Enhanced Spell Help

Status
Not open for further replies.
Level 3
Joined
Jul 2, 2006
Messages
35
  • Judge the Unpure
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to Judge the Unpure
    • Actions
      • Set Judge_The_Unpure = (Position of (Triggering unit))
      • Set Judge_The_Unpure_2 = (Units within 400.00 of Judge_The_Unpure matching (((Picked unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
      • Set Judge_The_Unpure_3 = (Number of units in Judge_The_Unpure_2)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Judge the Unpure for (Triggering unit)) Equal to 1
        • Then - Actions
          • Unit Group - Pick every unit in Judge_The_Unpure_2 and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (200.00 / (Real(Judge_The_Unpure_3))) damage of attack type Spells and damage type Normal)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Judge the Unpure for (Triggering unit)) Equal to 2
            • Then - Actions
              • Unit Group - Pick every unit in Judge_The_Unpure_2 and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (300.00 / (Real(Judge_The_Unpure_3))) damage of attack type Spells and damage type Normal)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Judge the Unpure for (Triggering unit)) Equal to 3
                • Then - Actions
                  • Unit Group - Pick every unit in Judge_The_Unpure_2 and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (400.00 / (Real(Judge_The_Unpure_3))) damage of attack type Spells and damage type Normal)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Level of Judge the Unpure for (Triggering unit)) Equal to 4
                    • Then - Actions
                      • Unit Group - Pick every unit in Judge_The_Unpure_2 and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (500.00 / (Real(Judge_The_Unpure_3))) damage of attack type Spells and damage type Normal)
                    • Else - Actions
How do I make this spell NOT target the caster himself AND NOT target his allies? e.g. They don't go into the unit group.
 
When you set the unit group (judge the unpure2) you said picked unit, you didnt pick a unit, change that to matching unit and your good to go; happy triggering ;]
 
Status
Not open for further replies.
Back
Top