heres a way simpler trivia script i made up
Code:
alias trivia {
  msg %trivchan $read(q.txt)
  set %anum $readn
  set %answer $read(a.txt, %anum)
}
on *:text:*:#:{
  if ($1 == !start) {
    timert 1 10 trivia
    timert2 0 40 trivia  
  }
  if ($1- == %answer) {
    msg $chan $nick is correct, the answer is %answer $+ .
    timert off
    timert2 off    
    timert 1 10 trivia
    timert2 0 35 trivia
  }
  if ($1 == !stop) {
    timert off
    timert2 off  
  }
  if (($1 == !answer) && ($ulevel >= 4)) {
    msg $chan %answer
  } 
  if (($1 == !skip) && ($ulevel >= 4)) {
    timert off
    timert2 off    
    timert 1 10 trivia
    timert2 0 35 trivia
  }
}

is it a piece of crap yes
does it get the job done yes
did i really name it pos_trivia_bot yes

as per usual im insistent on using my own stuff
and seeing as i have no experience with tokens
and frankly i didnt want real polished its just a study aid

i had to go ultra simple, but at least i came out with something that does what i need it to do

i really appreciate you taking the time to write that and i'll certainly hang on to it should i ever be struck by the urge to do a trivia bot semi right

Last edited by NeUtRoN_StaR; 11/12/05 04:50 AM.