Is there anyway to prevent editing the team size in a battle net lobby? Even though I have max teams set to 3 and max team size set to 2 it still alows it.
Again maybe you should clarify what exactly your trying to do. If you want to match the lobby players to the team that they originally entered on you can just lock the lobby. Your aware that players are numbered according to when they enter not where they are in lobby. Also what is with player 4?
----
Thats exactly what I'm trying to fix. Make player in team 1 act as if player 1, which is where the 2 arrays come in. They are both arrays of 6 ints. So far my system seems to be working right. I just wish there was an easier way to do it.
Ok so I have variables Player and Player t both are an array of 6 ints and NTeams is set to 3.
In the debugger I get that im accessing negitive array indexes.
Why wont this code work below?
Variable - Set Teams[1][1] = 1
Variable - Set Teams[1][2] = 4
------- --
Variable - Set Teams[2][1] = 2
Variable - Set Teams[2][2] = 3
------- --
Variable - Set Teams[3][1] = 5
Variable - Set Teams[3][2] = 6
------- --
General - For each integer Team from 1 to NTeams with increment 1, do (Actions)
Actions
General - For each integer Play from 1 to 2 with increment 1, do (Actions)
Actions
Variable - Set Player[(Player Play from (Players on team Team))] = Teams[Team][Play]
Variable - Set PlayerT[Teams[Team][Play]] = (Player Play from (Players on team Team))
What is a better way to get my result? What I want is for the players in teams override the battlenet player number and have everything work correctly so you can choose your spawn location based on team number.
I understand for loops very well and use them a lot, I simply set this up as a test, once it works I convert to a loop. My purpose for these players is for it to chose the correct player base.
0
@MaskedImposter: Go
No more like how if you get to a certain level with a race on bnet you can change your skins. That type of thing.
0
Does anyone know how to change unit skins by triggers? I have not looked into it much but if anyone could let me know, that would be great.
0
@Necromoni: Go
What if I want to allow people to change what team their on?
0
Is there anyway to prevent editing the team size in a battle net lobby? Even though I have max teams set to 3 and max team size set to 2 it still alows it.
0
The reason why I did it the way I did is because team 1 isnt 1 and 2 it is 1 and 4.
0
Wont let me edit my above post :/.
So far my system seems to be working right. I just wish there was an easier way to do it.
0
@hobbidude:
Quote from hobbidude:
@penguinwars: Go
Again maybe you should clarify what exactly your trying to do. If you want to match the lobby players to the team that they originally entered on you can just lock the lobby. Your aware that players are numbered according to when they enter not where they are in lobby. Also what is with player 4?
----
Thats exactly what I'm trying to fix. Make player in team 1 act as if player 1, which is where the 2 arrays come in. They are both arrays of 6 ints. So far my system seems to be working right. I just wish there was an easier way to do it.
0
@hobbidude:
Well Player is used for converting player to new player( team deceides it )
PlayerT is used for converting team player to new player.
0
Just an if to check if the returned value of player on team is >=0?
0
@DeltaV:
I am doing it from test document. How would I fix the problem though?
0
Ok so I have variables Player and Player t both are an array of 6 ints and NTeams is set to 3.
In the debugger I get that im accessing negitive array indexes.
Why wont this code work below?
Variable - Set Teams[1][1] = 1
Variable - Set Teams[1][2] = 4
------- --
Variable - Set Teams[2][1] = 2
Variable - Set Teams[2][2] = 3
------- --
Variable - Set Teams[3][1] = 5
Variable - Set Teams[3][2] = 6
------- --
General - For each integer Team from 1 to NTeams with increment 1, do (Actions)
Actions
General - For each integer Play from 1 to 2 with increment 1, do (Actions)
Actions
Variable - Set Player[(Player Play from (Players on team Team))] = Teams[Team][Play]
Variable - Set PlayerT[Teams[Team][Play]] = (Player Play from (Players on team Team))
0
Think I may have found what I want. Variable - Set Player[(Player 1 from (Players on team 1))] = Teams[1][1];
0
What is a better way to get my result? What I want is for the players in teams override the battlenet player number and have everything work correctly so you can choose your spawn location based on team number.
0
@hobbidude: Go
I understand for loops very well and use them a lot, I simply set this up as a test, once it works I convert to a loop. My purpose for these players is for it to chose the correct player base.
0
Does anyone know if what I had above would work right or a better solution?