I am trying to figure out how to create a trigger to add 2 players at random to player groups, having 8 players total, making 4 groups of 2 each in them. Anyone have any thoughts?
A simple way that is easy to accomplish would be the following:
Use an array with a size of 8. Fill it with the playernumbers of your players.
Use a random integer from 0 to 7, put that player in the first team. Now move the Integer value from position 7 to the position you just used.
example:
random integer = 4
team1, player 1 = MyArray[4]
MyArray[4] = MyArray[7]
Now repeat this (beginning with the random integer) till you got your teams filled.
pseudo code:
int[4][2] Teams;
int TeamCounter;
int TeamMember;
int[8] RandomizationArray;
int Random;
int Counter;
Counter = 0;
while (Counter <= 7) {
RandomizationArray[Counter] = Counter;
Counter += 1;
}
Counter = 7;
TeamCounter = 0;
TeymMember = 0;
while (Counter >=0){
Random = RandomInt(0,Counter);
Teams[TeamCounter][TeamMember] = RandomizationArray[Random];
if (TeamMember == 0) {
TeamMember = 1;
} else {
TeamMember = 0;
TeamCounter += 1;
}
RandomizationArray[Random] = RandomizationArray[Counter];
Counter -= 1;
}
I just got to watch the video because even though I was there I was trying to work out tech problems with the chat since I was the social media guy so I was distracted but check it out guys the video is super fucking great!
Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.