• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Need Trigger D:

Status
Not open for further replies.

Deleted member 177737

D

Deleted member 177737

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:
Level 9
Joined
Aug 27, 2009
Messages
473
  • 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)
 
Level 9
Joined
Aug 27, 2009
Messages
473
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.
Top