PDA

View Full Version : Teams


Akkadius
12-14-2009, 04:56 PM
There is a script that I have been trying to get together that will divide people into teams, now I have spoke with Secrets and she came up with something like this which would simple place 1 and 2, but how would I cap it out at different limits?

CODE:
sub EVENT_SAY
{
my $number = 0;
if($number%2==1)
{
quest::say("Number is Odd.");
$number++;
}
else {
quest::say("Number is Even.");
$number++;
}
}

Any help would be appreciated, or Trevius if you're around if you could PM me and help me out with something i'm trying to achieve I would make it worth your while.

trevius
12-14-2009, 07:15 PM
For the record, I don't take money for helping around here lol :P

If you can describe exactly what it is you are trying to do, I can probably help come up with a solution for it. I just need more details on what you are doing. Most likely, you can use qglobals to track the teams and how many are in each team and to divvy out teams evenly and so on. The qglobals are very useful and versatile and once you know how to use them well enough, you can do almost anything with them fairly easily.