Soldat CTF League Forums ~ Archive Forum Index
Author Message

<  General Discussions  ~  SCTFL10 randomization script

DragonSlayer
Posted: Wed Jun 20, 2007 8:25 pm Reply with quote
Administrator Joined: 06 Aug 2005 Posts: 1114 Location: Finland
In case someone wants to see the script we used for randomizing playoff match ups, here it is:

Code:
sctfl {
  set %sctfl.clans Asy/ |LP| AE/ #BC.Cr3w {EF} |MG| [SW] ~/SM\~ (SN) SoB| war| Ap/ pr0phecy [NMS] -+I//I+- m00ps.
  set %sctfl.random $null
  var %sctfl.pool1 = $gettok(%sctfl.clans, 4-8, 32)
  var %sctfl.pool2 = $gettok(%sctfl.clans, 9-13, 32)
  var %total = $numtok(%sctfl.pool1, 32)
  while (%total > 0) {
    var %r1 = $rand(1, %total)
    var %r2 = $rand(1, %total)
    var %c1 = $gettok(%sctfl.pool1, %r1, 32)
    var %c2 = $gettok(%sctfl.pool2, %r2, 32)
    %sctfl.pool1 = $deltok(%sctfl.pool1, %r1, 32)
    %sctfl.pool2 = $deltok(%sctfl.pool2, %r2, 32)
    set %sctfl.random %sctfl.random $iif($rand(0,1),%c1 %c2,%c2 %c1)
    dec %total
  }
  play -a sctflplay $iif($me ison $1, $1, #sctfl) sctfl.txt $iif($2 isnum, $2, 5000)
}
 
sctflplay {
  var %chan = $1, %msg = $2-
  while ($regex(%msg, /<C\d+>/)) {
    %msg = $regsubex(%msg, /<C(\d+)>/, $gettok(%sctfl.clans,\1,32))
  }
  while ($regex(%msg, /<R\d+>/)) {
    %msg = $regsubex(%msg, /<R(\d+)>/, $gettok(%sctfl.random,\1,32))
  }
  msg %chan %msg
}


And the text file it uses:

Code:
SCTFL Playoff randomization is starting!
-
The following clans made it to the playoffs:
#1: <C1>
#2: <C2>
#3: <C3>
#4: <C4>
#5: <C5>
#6: <C6>
#7: <C7>
#8: <C8>
#9: <C9>
#10: <C10>
#11: <C11>
#12: <C12>
#13: <C13>
#14: <C14>
#15: <C15>
#16: <C16>
-
Randomizing Side A of the bracket first:
-
Position 1 is pre-determined for 1st clan.
Position 1: <C1>
Position 2 is pre-determined for 16th clan.
Position 2: <C16>
Randomizing position 3...
Position 3: <R1>
Randomizing position 4...
Position 4: <R2>
Randomizing position 5...
Position 5: <R3>
Randomizing position 6...
Position 6: <R4>
Randomizing position 7...
Position 7: <R5>
Randomizing position 8...
Position 8: <R6>
-
Randomizing Side B of the bracket next:
-
Position 1 is pre-determined for 2nd clan.
Position 1: <C2>
Position 2 is pre-determined for 15th clan.
Position 2: <C15>
Randomizing position 3...
Position 3: <R7>
Randomizing position 4...
Position 4: <R8>
Randomizing position 5...
Position 5: <R9>
Randomizing position 6...
Position 6: <R10>
Position 7 is pre-determined for 14th clan.
Position 7: <C14>
Position 8 is pre-determined for 3rd clan.
Position 8: <C3>
-
The match ups are the following:
-
<C1> vs. <C16>
<R1> vs. <R2>
<R3> vs. <R4>
<R5> vs. <R6>
-
<C2> vs. <C15>
<R7> vs. <R8>
<R9> vs. <R10>
<C14> vs. <C3>
-
Good luck to all clans!


Just figured out I will post it in case someone wants to check it for mistakes whatsoever.

_________________

AE/DragonSlayer
View user's profile Send private message Visit poster's website
RealRook
Posted: Wed Jun 20, 2007 10:23 pm Reply with quote
Gather Admin Joined: 23 Oct 2005 Posts: 55 Location: Prague
ITS FAKE I KNOW THE BRACKETS WERE MADE BEFORE! NOW PROVE YOURSELF FINN! Cool

_________________
http://img156.imageshack.us/img156/2485/39cu4.jpg
View user's profile Send private message Visit poster's website ICQ Number
mar77a
Posted: Thu Jun 21, 2007 1:02 am Reply with quote
Administrator Joined: 07 Oct 2006 Posts: 117 Location: Argentina
You see, here's how it was rigged:

sctfl {
set %sctfl.clans Asy/ |LP| AE/ #BC.Cr3w {EF} |MG| [SW] ~/SM\~ (SN) SoB| war| Ap/ pr0phecy [NMS] -+I//I+- m00ps.
set %sctfl.random $null
var %sctfl.pool1 = $gettok(%sctfl.clans, 4-8, 32)
var %sctfl.pool2 = $gettok(%sctfl.clans, 9-13, 32)
var %total = $numtok(%sctfl.pool1, 32)
while (%total > 0) {
var %r1 = $rand(1, %total)
var %r2 = $rand(1, %total)
var %c1 = $gettok(%sctfl.pool1, %r1, 32)
var %c2 = $gettok(%sctfl.pool2, %r2, 32)
if %c1 = "AE"
%c2 = rand("NMS", %0, 32)
$getok = set_pool(void)
if.end
%sctfl.pool1 = $deltok(%sctfl.pool1, %r1, 32)
%sctfl.pool2 = $deltok(%sctfl.pool2, %r2, 32)
set %sctfl.random %sctfl.random $iif($rand(0,1),%c1 %c2,%c2 %c1)
dec %total
}
play -a sctflplay $iif($me ison $1, $1, #sctfl) sctfl.txt $iif($2 isnum, $2, 5000)
}


just kidding <3 rami, thanks for all your hard work (needs more whipping dslayer)

_________________
SNAG

20:03 <+ouchy`> i usually put my hands in my underpants
20:03 <+ouchy`> before important matches
20:03 <+ouchy`> warm them up
View user's profile Send private message Visit poster's website
Blood Shaman
Posted: Thu Jun 21, 2007 2:10 am Reply with quote
Joined: 01 Oct 2005 Posts: 318 Location: Georgia, United States
I'm sure it's a fluke that war and SM got matched
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
poop
Posted: Thu Jun 21, 2007 2:15 am Reply with quote
Administrator Joined: 22 Sep 2004 Posts: 1029 Location: USA
How the bracket is made:

Code:
<ouchy> Put SN and Prophecy in our group
<Poop> ouchy ill trade you war for Prophecy, so that leaves Prophecy, I/I and SW in our group and you get war ouchy
<Dslayer> fuck.. well I guess we will take NMS and AP then

_________________
Have no fear, The Poop is here!
View user's profile Send private message MSN Messenger
MikeShinoda
Posted: Thu Jun 21, 2007 2:16 am Reply with quote
Joined: 02 Jan 2006 Posts: 14
Sounds about right...

_________________

.phx .bot+ {B}{H} NS - nv` .dfa s/0][ /HS/- </ sk:// `SL - c'n's R7. |LP|
View user's profile Send private message MSN Messenger
ramirez
Posted: Thu Jun 21, 2007 6:49 am Reply with quote
Administrator Joined: 06 Jul 2005 Posts: 310 Location: Finland
For the record I was not part of that discussion it's the first time I see it! :<

_________________
View user's profile Send private message Visit poster's website MSN Messenger
DragonSlayer
Posted: Thu Jun 21, 2007 6:56 am Reply with quote
Administrator Joined: 06 Aug 2005 Posts: 1114 Location: Finland
Blood Shaman wrote:
I'm sure it's a fluke that war and SM got matched

Well, the probability was 1/5 so it's not that amazing, although it was pretty hilarious after what Transit said.

Quote:
18:11:16 (Ciesta) can the match be played tonight?
18:11:19 (Ciesta) after randomizing
18:11:21 (@DSlayer) Ciesta
18:11:27 (@DSlayer) not right after
18:11:31 (@DSlayer) but tonight yeah
18:11:27 (+mar77a) Ciesta: we won't have 3 at night
18:11:32 (+mar77a) wops
18:11:41 (+mar77a) well i sort of revealed extra info there!

_________________

AE/DragonSlayer
View user's profile Send private message Visit poster's website
Troopera
Posted: Mon Jun 25, 2007 12:33 am Reply with quote
Joined: 02 Mar 2006 Posts: 18
ok, the true script:
Code:
alias asd {
say Side A:
say Asy/ vs. m00ps.
say pr0phecy vs. |MG|
say {EF} vs. SoB|
; asda :o
say war| vs. ~/SM\~

say Side B:
say |LP| vs. -+I//I+-
say #BC.Cr3w vs. (SN)
say [SW] vs. Ap/
;say |LP| vs. AE/
;say Asy/ vs. AE/
say [NMS] vs. AE/

;say fu all ;_;
say Good Luck to all clanz! >:0
}
View user's profile Send private message

Display posts from previous:  

All times are GMT + 1 Hour
Page 1 of 1
Post new topic

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum