• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

triggers need fixing

Status
Not open for further replies.
Level 17
Joined
Aug 19, 2007
Messages
1,380
Hi, I've made some arena triggers for a map of mine (http://www.hiveworkshop.com/forums/maps-564/darknesschasersiiv1-1-a-153751/?prev=u%3D[K40$]-Spectre), but they are bugged. Can someone fix them for me? I'll give you +rep if you do. If you know an other better way than that's fine also. If I need to explain more please say so. Here are the triggers (it may look much but they are similar to each other):

  • ArenaMatch1
    • Events
      • Unit - A unit enters ArenaEntrance <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Trigger - Turn off (This trigger)
      • 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 (Triggering 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 (Triggering 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 (Triggering 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 (Triggering unit) instantly to (Center of ArenaMatch <gen>), facing 0.00 degrees)
      • Game - Display to (All players) the text: Round 1 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 3 Zombie Nightcrawler for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 3 Zombie Nightcrawler for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 3 Zombie Nightcrawler 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 20.00 seconds
      • Unit - Create 4 Flesh Golem for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 4 Flesh Golem for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 4 Flesh Golem 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)
  • ArenaMatch1Points
    • 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 ArenaMatch1End <gen> (checking conditions)
  • ArenaMatch1End
    • Events
    • Conditions
      • ArenaMatch Equal to 21
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn off ArenaMatch1Points <gen>
      • Trigger - Turn on ArenaMatch2Points <gen>
      • Set ArenaMatch = 0
      • 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)
      • Wait 60.00 seconds
      • Trigger - Run ArenaMatch2 <gen> (checking conditions)
  • ArenaMatch2
    • 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 2 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 3 Fleshpownder for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 3 Fleshpownder for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 3 Fleshpownder 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 20.00 seconds
      • Unit - Create 4 Skeleton Archer for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 4 Skeleton Archer for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 4 Skeleton Archer 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)
  • ArenaMatch2Points
    • 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 ArenaMatch2End <gen> (checking conditions)
  • ArenaMatch2End
    • Events
    • Conditions
      • ArenaMatch Equal to 21
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn off ArenaMatch2Points <gen>
      • Trigger - Turn on ArenaMatch3Points <gen>
      • Set ArenaMatch = 0
      • 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)
      • Wait 60.00 seconds
      • Trigger - Run ArenaMatch3 <gen> (checking conditions)
  • ArenaMatch3
    • 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 3 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 1 Fire Flyer for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 3 Red Leader for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 1 Fire Flyer for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 3 Red Leader for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 1 Fire Flyer for Player 12 (Brown) at TEMP_POINT3 facing Default building facing degrees
      • Unit - Create 3 Red Leader 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 2 Mutant Flamer for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 2 Mutant Flamer for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 2 Mutant Flamer 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)
  • ArenaMatch3Points
    • 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 ArenaMatch3End <gen> (checking conditions)
  • ArenaMatch3End
    • Events
    • Conditions
      • ArenaMatch Equal to 18
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn off ArenaMatch3Points <gen>
      • Trigger - Turn on ArenaMatch4Points <gen>
      • Set ArenaMatch = 0
      • 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)
      • Wait 60.00 seconds
      • Trigger - Run ArenaMatch4 <gen> (checking conditions)
  • 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 24
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn off ArenaMatch4Points <gen>
      • Set ArenaMatch = 0
      • 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)
      • 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
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
"They are bugged"... give me a break.

What is the problem?

And change all unit group things to this:

  • Set Temp_Group_1 = (Units...)
    • Unit Group - Pick every unit in Temp_Group_1 and do (Actions)
      • Loop - Actions
        • // Do your things here
    • Custom script: call DestroyGroup(udg_Temp_Group_1)
 
Level 9
Joined
Dec 12, 2007
Messages
489
[K40$]-Spectre;1419628 said:

  • ArenaMatch1
    • Events
      • Unit - A unit enters ArenaEntrance <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Trigger - Turn off (This trigger)
      • 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 (Triggering unit) instantly to (Center of ArenaMatch <gen>), facing 0.00 degrees)
  • ...
ehm... in the pick action, in the do part, use picked unit, not triggering unit.

and the way you made the waves are... bad? you could use arrays for unit type and amount of unit, so its less and better code.
 
Level 17
Joined
Aug 19, 2007
Messages
1,380
"They are bugged"... give me a break.

What is the problem?
, it doesn't count the units of player 8 killed in the arena perfectly. And, but I think Dark_Axl's tip fixed that, it only moves player 1 to the arena.

easyer:
put this
Custom script - set bj_wantDestroyGroup = true
in fromt of the unit picking thing
, like this?:

  • ArenaMatch1
    • Events
      • Unit - A unit enters ArenaEntrance <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Trigger - Turn off (This trigger)
      • Custom script: set bj_wantDestroyGroup = true
      • 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)
      • Custom script: set bj_wantDestroyGroup = true
      • 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)
      • Custom script: set bj_wantDestroyGroup = true
      • 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)
      • Custom script: set bj_wantDestroyGroup = true
      • 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 1 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 3 Zombie Nightcrawler for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 3 Zombie Nightcrawler for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 3 Zombie Nightcrawler 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 20.00 seconds
      • Unit - Create 4 Flesh Golem for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 4 Flesh Golem for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 4 Flesh Golem 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)
ehm... in the pick action, in the do part, use picked unit, not triggering unit.

and the way you made the waves are... bad? you could use arrays for unit type and amount of unit, so its less and better code.
, thanks for pointing that out. I will read a tutorial about arrays than.
 
Level 17
Joined
Aug 19, 2007
Messages
1,380
It still leaks the center of ArenaMatch.
, does it still leak now?:

  • ArenaMatch1
    • Events
      • Unit - A unit enters ArenaEntrance <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Trigger - Turn off (This trigger)
      • Set TEMP_POINT = (Center of ArenaMatch <gen>)
      • Custom script: set bj_wantDestroyGroup = true
      • 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 TEMP_POINT, facing 0.00 degrees)
      • Custom script: set bj_wantDestroyGroup = true
      • 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 TEMP_POINT, facing 0.00 degrees)
      • Custom script: set bj_wantDestroyGroup = true
      • 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 TEMP_POINT, facing 0.00 degrees)
      • Custom script: set bj_wantDestroyGroup = true
      • 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 TEMP_POINT, facing 0.00 degrees)
      • Custom script: call RemoveLocation(udg_TEMP_POINT)
      • Game - Display to (All players) the text: Round 1 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 3 Zombie Nightcrawler for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 3 Zombie Nightcrawler for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 3 Zombie Nightcrawler 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 20.00 seconds
      • Unit - Create 4 Flesh Golem for Player 12 (Brown) at TEMP_POINT facing Default building facing degrees
      • Unit - Create 4 Flesh Golem for Player 12 (Brown) at TEMP_POINT2 facing Default building facing degrees
      • Unit - Create 4 Flesh Golem 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)
 
Status
Not open for further replies.
Top