;;;;;;;;;;;; Dialog Box ;;;;;;;;;;;;
Dialog Test {
Title "Scrim Finding Script"
Size -1 -1 100 110
option dbu
box "Number Of Players" 1, 3 -1 96 20
radio "5v5" 2, 5 7 15 10, push group
radio "4v4" 3, 30 7 15 10, push
radio "3v3" 4, 55 7 15 10, push
radio "2v2" 5, 80 7 15 10, push
box "Yours/Theirs" 6, 3 20 38 20
radio "Yours" 7, 5 28 16 10,push group
Radio "Ours" 8, 22 28 16 10, push
box "Location" 17, 42 20 57 20
radio "West" 18, 46 28 16 10,push group
radio "Cent" 19, 63 28 16 10, push
radio "East" 20, 79 28 16 10,push
combo 9, 47 40 50 50, drop result
text "What Color?" 10, 6 40 30 15
edit "Map?" 11, 5 60 45 10, center
edit "League?" 12, 50 60 45 10, center
text "De_ and Cal- Already Added" 13, 0 71 100 10, center
text "Limit the text to one word only for both." 14, 0 79 100 10, center
Button "Ok", 15, 15 98 30 10, ok
Button "Cancel", 16, 48 98 30 10, cancel
}
;;;;;;;;;;;; Aliases ;;;;;;;;;;;;
Alias SFS {
Colors
}
Alias Colors {
did -ca test 9 Select One
did -a test 9 Blue
}
;;;;;;;;;;;; On Commands ;;;;;;;;;;;;
ON *:DIALOG:Test:INIT:0: {
SFS
}
ON *:DIALOG:Test:sclick:2 {
set %Players 5v5
}
ON *:DIALOG:Test:sclick:3 {
set %Players 4v4
}
ON *:DIALOG:Test:sclick:4 {
set %Players 3v3
}
ON *:DIALOG:Test:sclick:5 {
set %Players 2v2
}
on *:dialog:Test:sclick:15 {
msg #randomosities %color1 %players %server %location
.timer1 1 2 unset %players
.timer2 1 2 unset %server
.timer4 1 2 unset %color1
.timer4 1 2 unset %color2
.timer5 1 2 unset %color3
.timer6 1 2 unset %location
.timer7 1 2 unset %map
.timer8 1 2 unset %league
}
on *:dialog:test:sclick:7 {
set %server Yours
}
on *:dialog:test:sclick:8 {
set %server Ours
}
on *:dialog:test:sclick:18 {
set %location West
}
on *:dialog:test:sclick:19 {
set %location Central
}
on *:dialog:test:sclick:20 {
set %location East
msg #randomosities $did(20)
}
on *dialog:test:sclick:9 {
if ($did(test,9).seltext == Blue) {
set %color1 2,1
set %color2 1,2
set %color3 0,2
}
}
;;;;;;;;;;;; Menu ;;;;;;;;;;;;
menu channel {
Scrim Box:dialog -m test test
}