• 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] Boss area Problem

Status
Not open for further replies.
Level 9
Joined
Aug 1, 2008
Messages
453
Im making a hero arena tyep map and im adding a monster area and i need a trigger to check if they boss is dead (its a unit, not a hero) and i was wondering why these triggers won't work

  • Wait until ((Number of units in (Units in Boss Area Bottom <gen> matching (((Matching unit) is A ground unit) Equal to True))) Less than or equal to 1), checking every 0.50 seconds
That won't work with a knight (As the boss) and the blade master (as the hero) but when i use the Mountain king (As the boss) and Blade Master (as the hero) it works... why does it do that? cause its a pain to make like 10 bosses over again as heroes... will +rep if helped
 
Level 9
Joined
Apr 3, 2008
Messages
700
1. Knight have a wrong classification (For ex., he's not ground)

2. There is more units with ground classification in region (like neutral passive animals), that never die, so condition don't allow trigger to run.

3. Are you sure that the problem is in this line?
 
Level 9
Joined
Aug 1, 2008
Messages
453
this is the whole trigger while im trying to get it to work
  • Checking Boss Bottom
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in Boss Area Bottom <gen>) and do (Actions)
        • Loop - Actions
          • Game - Display to (Player group((Owner of (Picked unit)))) the text: |cff0F6145Welcome t...
      • Wait until ((Number of units in (Units in Boss Area Bottom <gen> matching (((Matching unit) is An Ancient) Equal to True))) Less than or equal to 0), checking every 0.50 seconds
      • Game - Display to (All players) the text: 1
      • Wait 1.00 seconds
      • Wait until ((Number of units in (Units in Boss Area Bottom <gen> matching (((Matching unit) is A Hero) Equal to True))) Less than or equal to 1), checking every 0.50 seconds
      • Wait 1.00 seconds
      • Wait until ((Number of units in (Units in Boss Area Bottom <gen> matching (((Matching unit) is A Hero) Equal to True))) Less than or equal to 1), checking every 0.50 seconds
      • Wait 1.00 seconds
      • Wait until ((Number of units in (Units in Boss Area Bottom <gen> matching (((Matching unit) is A Hero) Equal to True))) Less than or equal to 1), checking every 0.50 seconds
      • Unit Group - Pick every unit in (Units in Boss Area Bottom <gen>) and do (Actions)
        • Loop - Actions
          • Game - Display to (Player group((Owner of (Picked unit)))) the text: |cff0F6145You have ...
      • Wait 5.00 seconds
      • Unit Group - Pick every unit in (Units in Boss Area Bottom <gen>) and do (Actions)
        • Loop - Actions
          • Game - Display to (Player group((Owner of (Picked unit)))) the text: |cff0F6145Thank you...
      • Unit Group - Pick every unit in (Units in Boss Area Bottom <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Move (Picked unit) instantly to (Center of (Playable map area)), facing Default building facing degrees
      • Trigger - Turn on Monster Teler And Spawn Bottom <gen>
i have the checking thing alot cause if the blade master use's mirror image
 
Level 9
Joined
Apr 3, 2008
Messages
700
1. There are memory leaks in groups and location.
2. You can display message without picking units.
  • Unit Group - Pick every unit in (Units in Boss Area Bottom <gen>) and do (Actions)
  • Loop - Actions
  • Game - Display to (Player group((Owner of (Picked unit)))) the text: |cff0F6145You have
3. Better to use loop here
  • Wait until ((Number of units in (Units in Boss Area Bottom <gen> matching (((Matching unit) is A Hero) Equal to True))) Less than or equal to 1), checking every 0.50 seconds
  • Wait 1.00 seconds
  • Wait until ((Number of units in (Units in Boss Area Bottom <gen> matching (((Matching unit) is A Hero) Equal to True))) Less than or equal to 1), checking every 0.50 seconds
  • Wait 1.00 seconds
  • Wait until ((Number of units in (Units in Boss Area Bottom <gen> matching (((Matching unit) is A Hero) Equal to True))) Less than or equal to 1), checking every 0.50 seconds
4. Who are ancients? Are you sure that both bosses have this classification? And number of units can't be < 0.
  • Wait until ((Number of units in (Units in Boss Area Bottom <gen> matching (((Matching unit) is An Ancient) Equal to True))) Less than or equal to 0), checking every 0.50 second
 
Status
Not open for further replies.
Top