• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Trigger] Could Some One Give Me A Hand With This Trigger?

Status
Not open for further replies.
Level 5
Joined
Dec 2, 2007
Messages
212
Hey all,

Well i was messing around making a tag game but i cant get a trigger to work, i have it set so that when a unit dies it creates another unit in the middle, then i have it set so if a certain unit enters a region it creates another builder. What i cant get is to remove the unit created in the middle to be saved... Any help is very much appreciated thanks.
 
Level 5
Joined
Dec 2, 2007
Messages
212
Well i have a trigger set up for a tag style game, the main unit gets killed by a hunter (the evil person) all the people for the main unit are removed, the main unit is removed but a custom unit appears in the middle representing him, he cannot leave though, the middle unit can be saved by one of his team members coming to the middle and stepping on a certain area. i need help removing the unit the captured main person is in the middle... it wont go...
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
You mean something like this ?

  • Untitled Trigger 29385.234
    • Events
      • Unit - A unit enters someRegion
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to yourHeroType
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in someRegion matching ((Unit-type of (Matching unit)) Equal to yourDeadHeroType)) and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
          • Unit - Create 1 yourHeroType for (Owner of (Picked unit)) at someWhere facing Default building facing degrees
 
Level 5
Joined
Dec 2, 2007
Messages
212
Thanks a lot man your a great help! Thats exactly what i need but i cant get the condition part can i help me out with that a bit???
 
Last edited:
Status
Not open for further replies.
Top