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

[Trigger] help plz with arena triggers

Status
Not open for further replies.
Level 17
Joined
Aug 19, 2007
Messages
1,377
Hi there, I need some help with an arena triggers I use in this map https://www.hiveworkshop.com/forums/maps-564/darknesschasersiiv1-0-a-153751/?prev=u%3D[K40$]-Spectre. They are bugged and don't always work. Below you'll find the triggers only for the 4th match (the last one) because all the matches have similair triggers (another trigger activates this one so no events are required in the first trigger):

  • ArenaMatch4
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of ArenaMatch <gen>), facing 0.00 degrees)
      • Unit Group - Pick every unit in (Units owned by Player 2 (Blue) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of ArenaMatch <gen>), facing 0.00 degrees)
      • Unit Group - Pick every unit in (Units owned by Player 6 (Orange) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of ArenaMatch <gen>), facing 0.00 degrees)
      • Unit Group - Pick every unit in (Units owned by Player 7 (Green) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of ArenaMatch <gen>), facing 0.00 degrees)
      • Game - Display to (All players) the text: Round 4 begins in 1...
      • Wait 10.00 seconds
      • Set TEMP_POINT = (Center of ArenaSpawn1 <gen>)
      • Set TEMP_POINT2 = (Center of ArenaSpawn2 <gen>)
      • Set TEMP_POINT3 = (Center of ArenaSpawn3 <gen>)
      • Unit - Create 2 Master of Firebolts for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 2 Flamecaller for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 2 Master of Firebolts for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 2 Flamecaller for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 2 Master of Firebolts for Player 12 (Brown) at TEMP_POINT3 facing Default building facing degrees
      • Unit - Create 2 Flamecaller for Player 12 (Brown) at TEMP_POINT3 facing Default building facing degrees
      • Unit Group - Pick every unit in (Units in Arena <gen> owned by Player 12 (Brown)) and do (Actions)
        • Loop - Actions
          • Unit - Set (Picked unit) acquisition range to 3000.00
      • Wait 25.00 seconds
      • Unit - Create 4 Dark Wraith for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 4 Dark Wraith for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 4 Dark Wraith for Player 12 (Brown) at TEMP_POINT3 facing Default building facing degrees
      • Unit Group - Pick every unit in (Units in Arena <gen> owned by Player 12 (Brown)) and do (Actions)
        • Loop - Actions
          • Unit - Set (Picked unit) acquisition range to 3000.00
      • Custom script: call RemoveLocation(udg_TEMP_POINT)
      • Custom script: call RemoveLocation(udg_TEMP_POINT2)
      • Custom script: call RemoveLocation(udg_TEMP_POINT3)
  • ArenaMatch4Points
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Dying unit)) Equal to Player 12 (Brown)) and ((Arena <gen> contains (Dying unit)) Equal to True)
    • Actions
      • Set ArenaMatch = (ArenaMatch + 1)
      • Trigger - Run ArenaMatch4End <gen> (checking conditions)
  • ArenaMatch4End
    • Events
    • Conditions
      • ArenaMatch Equal to 25
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn off ArenaMatch4Points <gen>
      • Game - Display to (All players) the text: Congratulations, yo...
      • Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of Level06Begin <gen>), facing 0.00 degrees)
      • Unit Group - Pick every unit in (Units owned by Player 2 (Blue) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of Level06Begin <gen>), facing 0.00 degrees)
      • Unit Group - Pick every unit in (Units owned by Player 6 (Orange) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of Level06Begin <gen>), facing 0.00 degrees)
      • Unit Group - Pick every unit in (Units owned by Player 7 (Green) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of Level06Begin <gen>), facing 0.00 degrees)
      • Set ArenaMatch = 0
      • Destructible - Open Dungeon Gate (Horizontal) 1478 <gen>
      • Unit - Change ownership of Mutant Tracker 0180 <gen> to Player 12 (Brown) and Change color
      • Unit - Change ownership of Mutant Tracker 0181 <gen> to Player 12 (Brown) and Change color
, thanks for taking the time!:cute:
 
Seas =)

Hmm maybe I'm wrong but this "Set ArenaMatch = 0" is wrong.

You spawn 24 creeps in the arena. But if you set it 0 + 24 = it equal to 24. So the 3rd trigger must have the condition
"If ArenaMatch = 24" not "If ArenaMatch = 25"

Also before you use "Unit Group = Pick every Unit ...." you have to add:
  • Custom script: set bj_wantDestroyGroup = true
Anyway you can use 1 Trigger for Trigger 2 and 3. Just add in the 2:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ArenaMatch Equal to 25
    • Then - Actions
      • ....
    • Else - Actions
======
I see now if you only use this arena match one time - this "0 and 24/25" can't be the fault or? =O
 
Status
Not open for further replies.
Back
Top