Its a game oki
bi blaze1454
menu nicklist,channel,query,status {
button:dialog -md button button
}
dialog button {
title "push the button"
size -1 -1 107 103 90 90
option dbu
button "PUSH", 1, 8 4 75 75
text "", 2, 8 80 75 10
button "exit", 3, 8 91 75 10, exit
text "Level:", 4, 88 20 75 10
text "", 5, 88 28 75 10
}
on *:DIALOG:button:init:*: {
did -a button 2 $iif($read(Button.txt),Button pressed $read(Button.txt) times.,press da button)
did -a button 5 $iif($read(level.txt),$read(level.txt),0)
}
on *:DIALOG:button:sclick:1: {
inc %pressed
write Button.txt %pressed
did -a button 2 Button pressed %pressed times.
if (%pressed isnum 100) { did -a button 5 1 | .write level.txt 1 }
if (%pressed isnum 250) { did -a button 5 2 | .write level.txt 2 }
if (%pressed isnum 500) { did -a button 5 3 | .write level.txt 3 }
}
on *:DIALOG:button:sclick:3: {
write Button.txt 0
dialog -x button
}