Teams Spawning in Arena

sionts

New Member
Reaction score
0
I have an arena match scenario in my map, where 2 teams out of 5 teams in total will be selected and spawned inside the arena to fight. 2 regions per side(1 per hero) and there is only 2 sides.

What i want is to have all the teams to play against each other eventually, So if Team 1 beats Team 2, Team 1 goes up against the Winner of match between Team 3 and Team 4 and Team 2 goes up against the losing team. But there can only be 1 match at a time.

I'm unsure how to set up the spawning for the arena, and how to incorporate team 5. :confused:

The Regions.
Trigger:
  • Set Spot1_Arena_Spawn_P[1] = (Center of ArenaSpawn1T1 <gen>)
    • Set Spot1_Arena_Spawn_P[2] = (Center of ArenaSpawn2T1 <gen>)
    • Set Spot2_Arena_Spawn_P[1] = (Center of ArenaSpawn1T2 <gen>)
    • Set Spot2_Arena_Spawn_P[2] = (Center of ArenaSpawn2T2 <gen>)


The Teams.
Trigger:
  • Actions
    • Player Group - Add Player 1 (Red) to Team_1
    • Player Group - Add Player 2 (Blue) to Team_1
    • Player Group - Add Player 3 (Teal) to Team_2
    • Player Group - Add Player 4 (Purple) to Team_2
    • Player Group - Add Player 5 (Yellow) to Team_3
    • Player Group - Add Player 6 (Orange) to Team_3
    • Player Group - Add Player 7 (Green) to Team_4
    • Player Group - Add Player 8 (Pink) to Team_4
    • Player Group - Add Player 9 (Gray) to Team_5
    • Player Group - Add Player 10 (Light Blue) to Team_5
    • Player Group - Add Player 11 (Dark Green) to CreepOwner_1
    • Player Group - Add Player 12 (Brown) to CreepOwner_2
    • Set TeamPlayed[1] = False
    • Set TeamPlayed[2] = False
    • Set TeamPlayed[3] = False
    • Set TeamPlayed[4] = False
    • Set TeamPlayed[5] = False


The Spawning
Trigger:
  • Actions
    • Set Match = True
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • TeamPlayed[1] Equal to False
        • TeamPlayed[2] Equal to False
      • Then - Actions
        • Player Group - Pick every player in Team_2 and do (Actions)
          • Loop - Actions
            • Unit - Order Hero[(Player number of (Picked player))] to Stop
            • Unit - Move Hero[(Player number of (Picked player))] instantly to Spot2_Arena_Spawn_P[(Player number of (Picked player))], facing (Center of ArenaCenter <gen>)
            • Unit - Set life of Hero[(Player number of (Picked player))] to 100.00%
            • Unit - Set mana of Hero[(Player number of (Picked player))] to 100.00%
            • Unit - Reset ability cooldowns for Hero[(Player number of (Picked player))]
            • Selection - Select Hero[(Player number of (Picked player))] for (Picked player)
            • set TempPoint=Center of ArenaCenter <gen>
            • Camera - Pan camera for (Picked player) to TempPoint over 0.00 seconds
            • Call RemoveLocation(udg_TempPoint)
            • Set TeamPlayed[1] = True
        • Player Group - Pick every player in Team_1 and do (Actions)
          • Loop - Actions
            • Unit - Order Hero[(Player number of (Picked player))] to Stop
            • Unit - Move Hero[(Player number of (Picked player))] instantly to Spot1_Arena_Spawn_P[(Player number of (Picked player))], facing (Center of ArenaCenter <gen>)
            • Unit - Set life of Hero[(Player number of (Picked player))] to 100.00%
            • Unit - Set mana of Hero[(Player number of (Picked player))] to 100.00%
            • Unit - Reset ability cooldowns for Hero[(Player number of (Picked player))]
            • Selection - Select Hero[(Player number of (Picked player))] for (Picked player)
            • set TempPoint=Center of ArenaCenter <gen>
            • Camera - Pan camera for (Picked player) to TempPoint over 0.00 seconds
            • Call RemoveLocation(udg_TempPoint)
            • Set TeamPlayed[2] = True
      • Else - Actions


This is what i currently have if this helps. I'm sure there is a much better way of achieving what i stated above.
 
I have an arena match scenario in my map, where 2 teams out of 5 teams in total will be selected and spawned inside the arena to fight. 2 regions per side(1 per hero) and there is only 2 sides.

What i want is to have all the teams to play against each other eventually, So if Team 1 beats Team 2, Team 1 goes up against the Winner of match between Team 3 and Team 4 and Team 2 goes up against the losing team. But there can only be 1 match at a time.

I'm unsure how to set up the spawning for the arena, and how to incorporate team 5.

I have no clue, on how to make the arena-ladder, but you could find and Download an arena map which has the same 1on1/2on2 system that your working on - to see how the arena and and all that are set up.

I can remember a few, but i don't know the name of them atm, sry.
 
We're considering even changing the game layout from 5 teams of 2s to something else.. But first thought we'd ask on here.

We could get two teams dueling easy enough I'm pretty sure, but not when it comes to how to pit out balanced duels of 2v2 picking from 5 teams. Any suggestions, tips or opinions about a dueling system at all is appreciated. Thanks.
 
I would suggest you not to be using things like: Center of ArenaCenter <gen>
Code:
Camera - Pan camera for (Picked player) to ([COLOR="Red"]Center of ArenaCenter <gen>[/COLOR]) over 0.00 seconds
Instead of that you should be using
Code:
set TempPoint=Center of ArenaCenter <gen>
Camera - Pan camera for (Picked player) to [COLOR="red"]TempPoint [/COLOR]over 0.00 seconds
Call RemoveLocation(udg_TempPoint)
If you do this you wont get a memory leak - Everytime you call something, such as the Center of (Region) you will get a memory cached, and you need to destroy it again, can be done ny what i just showed you.

I just checked you trigger and noticed some memory leaks, and just felt like informing you :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top