• 🏆 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] Aoe Bomb Trigger

Status
Not open for further replies.
Level 36
Joined
Mar 15, 2006
Messages
7,945
Okay, so I want to make a trigger for a spell that is AOE (based on Blizzard) basically what it does is targets a large number of units AoE style, and kills them, with some added effects. The units have to be Sheep. Here's the trigger I've got, but it isn't working at all....

  • Bombs
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Fire!
      • (Unit-type of (Target unit of ability being cast)) Equal to Sheep
    • Actions
      • Special Effect - Create a special effect attached to the overhead of (Target unit of ability being cast) using Abilities\Weapons\FragDriller\FragDriller.mdl
      • Special Effect - Create a special effect attached to the overhead of (Target unit of ability being cast) using Abilities\Weapons\BallsOfFireMissile\BallsOfFireMissile.mdl
      • Unit - Kill (Target unit of ability being cast)
Can anyone help me on this one? Thanks :thumbs_up:
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,191
A unit Begins casting an ability will bug, if you press S before it casts it will trigger yet not trigger cooldown.

Your trigger is written for SINGLE TARGET only, you need to pick all units around the spell targeted area and then check if they are sheeped and then do your actions to that unit.

Rember to remove the group or it WILL leak.
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
  • Bombs
    • Events
      • Unit - A unit Starts the Effect of an ability
    • Conditions
      • (Ability being cast) Equal to Fire!
    • Actions
      • Set loc = (Target Point of Ability Being Cast)
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick Every Unit in (Units within (radius of your spell) of loc) Matching ((Unit-type of (Matching Unit)) Equal to Sheep)
        • Loop - Actions
          • Special Effect - Create a special effect attached to the overhead of (Picked Unit) using Abilities\Weapons\FragDriller\FragDriller.mdl
          • Special Effect - Create a special effect attached to the overhead of (Picked Unit) using Abilities\Weapons\BallsOfFireMissile\BallsOfFireMissile.mdl
          • Unit - Kill (Picked Unit)
        • Custom script: call RemoveLocation( udg_loc )
where loc is a global Point variable.
 
Status
Not open for further replies.
Top