• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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.
 
Level 10
Joined
Jan 21, 2007
Messages
576
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.
Top