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

Need Trigger D:

Status
Not open for further replies.
Edit---------

Tried making it, got close but one of the triggers didn't work. BTW when I add the channel ability to a peasant it doesn't show up in game
 
Last edited by a moderator:
  • YourTrigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Unit-type of (Target unit of ability being cast)) Equal to Barracks
      • (Ability being cast) Equal to -- Your Spell --
    • Actions
      • Set ele_LeakPoint = (Position of (Target unit of issued order))
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at ele_LeakPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_ele_LeakPoint)
Variable: ele_LeakPoint = Point (No array)
Sorry for taking so long time, but i did forget you in all the mess!! (homework)

Hope this will please you. :)
 
Last edited:
  • YourTrigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Unit-type of (Target unit of ability being cast)) Equal to Barracks
      • (Ability being cast) Equal to -- Your Spell --
    • Actions
      • Set ele_LeakPoint = (Position of (Target unit of issued order))
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at ele_LeakPoint facing Default building facing degrees
      • Custom script: call RemoveLocation( udg_ele_LeakPoint)
Variable: ele_LeakPoint = Point (No array)
Sorry for taking so long time, but i did forget you in all the mess!! (homework)

Hope this will please you. :)

he wants the peasant to die after the footman is trained..... do you want instant create unit or really train the unit from a barracks???
maybe you can try this.... (edited from eleljrk's spell)

  • YourTrigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Unit-type of (Target unit of ability being cast)) Equal to Barracks
      • (Ability being cast) Equal to -- Your Spell --
    • Actions
      • Set Peasant = (Triggering Unit)
      • Unit - Issue Train Order #I dont know the exact trigger and i'm not in front of my WE right now#
Then a second trigger to kill the peasant

  • Events
    • Unit - Finishes training a unit
  • Conditions
    • Unit-type of (Trained unit) = Footman
  • Actions
    • Unit - Kill Peasant (or you can use remove unit)
 
he wants the peasant to die after the footman is trained..... do you want instant create unit or really train the unit from a barracks???
maybe you can try this.... (edited from eleljrk's spell)

  • YourTrigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Unit-type of (Target unit of ability being cast)) Equal to Barracks
      • (Ability being cast) Equal to -- Your Spell --
    • Actions
      • Set Peasant = (Triggering Unit)
      • Unit - Issue Train Order #I dont know the exact trigger and i'm not in front of my WE right now#
Then a second trigger to kill the peasant

  • Events
    • Unit - Finishes training a unit
  • Conditions
    • Unit-type of (Trained unit) = Footman
  • Actions
    • Unit - Kill Peasant (or you can use remove unit)

Dont help if you cant help yourself.
But nice try.

  • YourTrigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Unit-type of (Target unit of ability being cast)) Equal to Barracks
      • (Ability being cast) Equal to -- Your Spell --
    • Actions
      • Set ele_LeakPoint = (Position of (Target unit of issued order))
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at ele_LeakPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_ele_LeakPoint)
or

  • YourTrigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Unit-type of (Target unit of ability being cast)) Equal to Barracks
      • (Ability being cast) Equal to -- Your Spell --
    • Actions
      • Unit - Order (Target unit of ability being cast) to train/upgrade to a Swordman
      • Unit - Remove (Targeted unit) from the game
Both are leakless, but do diffrent things. If you dont understand, try to test them. :)

Amazing that someone with 110 rep can't do this but someone with 20 rep can...
I would do it but eleljrk said he would.

I joined this community for.. 3-4 weeks ago. And i started play WC3 for.. 7-8 years ago.. So, thats maby why? :)
 
Status
Not open for further replies.
Back
Top