• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Trigger help - New to World Edit

Status
Not open for further replies.

JanDevario

J

JanDevario

Hello there!

I am quite new to the World Editor and was trying to make an aimed spell (based of Breath of Fire) that will snare all units hit.

The spell applies a buff to all units hit but how do I make the triggers?

I basically want the trigger to find all units with the buff and ensnare them.

Since I have not yet learned much about the trigger editor I would really appreciate some help here. :wink:
 
Here you go! For this you will need a dummy caster - here's a tutorial.

  • Trigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Breath of Fire
    • Actions
      • Wait 0.30 seconds
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Breath of Fire) Equal to True)) and do (Actions)
        • Loop - Actions
          • Set p = (Position of (Picked unit))
          • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at p facing Default building facing degrees
          • Unit - Add Ensnare to (Last created unit)
          • Unit - Set level of Ensnare for (Last created unit) to (Level of Breath of Fire for (Triggering unit))
          • Unit - Order (Last created unit) to Orc Raider - Ensnare (Picked unit)
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Custom script: call RemoveLocation(udg_p)
Note: If your ensnare ability only has 1 level, leave out the "Unit - Set level of Ensnare for (Last created unit) to (Level of Breath of Fire for (Triggering unit))" part.
 
I have problems making the Unit Group Action, where do I find (Actions)? As in "and do (Actions)"
 
UnitGroup.jpg


Do you have Frozen Throne or just Reign of Chaos?
 
Oh, I wasn't selecting multiple actions :P

Works fine now, thank you very much.

+rep :D
 
Status
Not open for further replies.
Back
Top