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

[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 64
Joined
Jan 18, 2005
Messages
27,258
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