Reaction tester picwin

By kerstt on May 05, 2007

m pretty proud at this script :)
especially cause i found a way to make it millisecond precise lol
typ /reaction or push F7 to start
then it explains it all really...
it just checks how fast ur reaction is
my highscore, 204ms lol

alias reaction {
  /window -c @reaction
  window -paCk0 +bfnt @Reaction -1 -1 300 300
  /drawtext @reaction 4 2 5 Push the dot when the color changes!
  /drawtext @reaction 4 2 25 Top score: $iif(%topscore == $null,0,%topscore)
  var %timer = $r(2000,8000)
  .timer -m 1 %timer /react
}
alias f7 {
  /window -c @reaction
  window -paCk0 +bfnt @Reaction -1 -1 300 300
  /drawtext @reaction 4 2 5 Push the dot when the color changes!
  /drawtext @reaction 4 2 25 Top score: $iif(%topscore == $null,0,%topscore)
  var %timer = $r(2000,8000)
  .timer -m 1 %timer /react
}
on *:input:@result:{
  if ($1 == quit) {
    window -c @result
    window -c @reaction
    unset %dot
  }
  if ($1 == restart) {
    /unset %dot
    window -c @result
    window -c @reaction
    /reaction
  }
}
on *:close:@Reaction:{
  .timers off
  window -c @result
  unset %dot
}
menu @Reaction {
  sclick:{
    if (!%dot) {
      window -c @reaction
    }
    if (%dot) {
      var %time = $calc($ticks - %dot)
      if (%time < %topscore) || (!%topscore) {
        window -e @Result -1 -1 400 200
        echo @Result Woohoo Good-job u have a new highscore!!
        echo @result new top time is: %time
        set %topscore %time ms
      }
      elseif (%time == %topscore) {
        window -e @Result -1 -1 400 200
        echo @Result Well good-job u have the exact same speed ;)
        echo @result ur speed was %time
      }
      elseif (%time > %topscore) {
        window -e @Result -1 -1 400 200
        echo @Result Oh oh, that wasnt such a good time ;)
        echo @result ur highscore is %topscore $+ , this score was %time
      }
      echo @result Wanna try again? typ restart in the edit-box
      echo @result wanna quit? typ quit in the edit-box
    }

  }
}
alias react {
  set %dot $ticks
  /drawdot @reaction $r(4,13) 100 150 150
} 

Comments

Sign in to comment.
|MELIORITE|   -  May 11, 2007

An entertaining script. When you fix the glitches will be even more fun.

 Respond  
kerstt   -  May 10, 2007

if u would read the comments u will see that this already has occured, and i know the problem, i will fix it sometime.

 Respond  
Noutrious   -  May 09, 2007

Oh oh, that wasnt such a good time ;)
ur highscore is 12140 ms, this score was 139
Wanna try again? typ restart in the edit-box
wanna quit? typ quit in the edit-box
Khem ^^

 Respond  
kerstt   -  May 06, 2007

i found out the scrip messed up if u clicked to early, i\'ll try fixing that.

and it wont say u have a new highscore with exact same speed :\

  elseif (%time == %topscore) {
 Respond  
Bouncer   -  May 05, 2007

I got the alot:

  • /drawdot: invalid window (line 66, script5)
 Respond  
Bouncer   -  May 05, 2007

Yeah it doesn\'t seem to be making much sense to me either...

 Respond  
Lindrian   -  May 05, 2007

219 ms x.x

Well, if you already have the same highscore, and get it again, it\'ll say u made a new one..

 Respond  
Mylesmart   -  May 05, 2007

Yeh, the game started freaking out on me:
Oh oh, that wasnt such a good time ;)
ur highscore is 27160 ms, this score was 343

?

 Respond  
sean   -  May 05, 2007

171ms lol

 Respond  
xDaeMoN   -  May 05, 2007

Nice :) Got 172ms =P

 Respond  
kerstt   -  May 05, 2007

ty for the 1 someone who thinks he s funny lol ;\

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.