REACTION TEST

By Daxter_Stacker on Mar 09, 2015

Hey guys, this is my creation, a simple reaction test script, where the bot will announce a reaction test at a spesific time, the user have to say the word correctly, hope you like it :)

on *:TEXT:!randRS*:*: {
  /rsrand
}
on *:TEXT:%word2:#stormtalk: {
  /timer1a off
  /timer2b off
  msg #stormtalk 44 congratulation $nick !!! you have won 5 points!!!
  /set %points.given $calc( $readini( points.ini, $nick, points ) + 5 ) 
  /writeini points.ini $nick points %points.given
  unset %word2
}
alias rsrand {
  Set %word2 $rand(1,26)
  if (%word2 == 1) set %word2 GGHHLKOH
  if (%word2 == 2) set %word2 LKJ
  if (%word2 == 3) set %word2 ackuf
  if (%word2 == 4) set %word2 LtafBu
  if (%word2 == 5) set %word2 gGhH
  if (%word2 == 6) set %word2 JoJoBandit
  if (%word2 == 7) set %word2 LtaerHG
  if (%word2 == 8) set %word2 JJHGG
  if (%word2 == 9) set %word2 maKiong
  if (%word2 == 10) set %word2 juhepg
  if (%word2 == 11) set %word2 Jupongu
  if (%word2 == 12) set %word2 hhhhhh
  if (%word2 == 13) set %word2 LithOath
  if (%word2 == 14) set %word2 NKJFGH
  if (%word2 == 15) set %word2 ABCDEFH
  if (%word2 == 16) set %word2 asdfgh
  if (%word2 == 17) set %word2 qwertyu
  if (%word2 == 18) set %word2 NosPoghj
  if (%word2 == 19) set %word2 PPHHJkl
  if (%word2 == 20) set %word2 PHPHTML
  if (%word2 == 21) set %word2 XML
  if (%word2 == 22) set %word2 JQuEry
  if (%word2 == 23) set %word2 Rubighy
  if (%word2 == 24) set %word2 VBSVBS
  if (%word2 == 25) set %word2 CSSSSC
  if (%word2 == 26) set %word2 LOLOLghfg
  msg #stormtalk 44Reaction Test: who ever first type " %word2 " under 20 seconds wins 5 points!!
  /timer1a 1 20 /msg #stormtalk Looks like no one wins
  /timer2b 1 20 /unset %word2
}
on *:TEXT:!points:#:{
 /msg $chan 10 $nick has $readini(points.ini, $nick, points) points.
}

commands
!rsrand to make a reaction test
!points to see ur points

just change the channel #stormtalk to your channel

and wait, put this code in your aliases

/RS /timerRS 1000 50 /rsrand
/RSoff /timerRS off

just type /RS if you want to start the reaction test script, the script above will make a new reaction test every 50 seconds.
and type /RSoff to turn your reaction test script off.

Comments

Sign in to comment.
BamseTheKing   -  Apr 08, 2015

change
/timer1 off
/timer2 off

to

/timer1a off
/timer2b off

else it still says "Looks like no one wins" even if you get it right :)

Daxter_Stacker  -  Jul 12, 2015

im just a little new on minecraft scripting.

n thx for the comment, i made 2 of those scripts, so im confused to post wich one is working or not, and i incidently post the not working one :)

and also, sorry for the late reply :)

Sign in to comment

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.