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