Top

Trivia


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  5.1
Scores Submitted  8
Date Added  Apr 02, 2005
Last Updated  Sep 04, 2008
  Bookmark and Share

Introduction

Type !trivia to start it type !strivia to stop it

When u have put it in Remotes type /write Trivia.txt

then type /run trivia.txt

then add all the things underneath the Questions bit until it says "End"

then type /chans

and put in the channel u want trivia to run in

you can add questions by typing /run trivia.txt , to open the file then add the question the format is question?|hint1|hint2|answer

e.g
what does red and blue make?|p-----|pu---e|purple
the answer would be Purple so u put the question like that u want the second hint to have more characters filled in.
You can Add As Many Questions as You Want into the Txt file
Have fun =D

Grab the Code

Comments

  (43)  RSS
PoiXon
Comments: 144
 
mIRC Snippet:  Trivia
Posted on Apr 2, 2005 7:18 am
Bit added so u dont see all the "* Timer 1 halted" e.t.c =)
PoiXon
Comments: 144
 
mIRC Snippet:  Trivia
Posted on Apr 2, 2005 7:44 am
bit added "on *:input:#: { to answer the questions to start trivia e.t.c
supergeo
Comments: 257
 
mIRC Snippet:  Trivia
Posted on Apr 2, 2005 9:19 am
nice
PoiXon
Comments: 144
 
mIRC Snippet:  Trivia
Posted on Apr 2, 2005 10:00 am
First time Ive Ever Used $gettok in a script =D
aaslyfox
Comments: 20
 
mIRC Snippet:  Trivia
Posted on Apr 2, 2005 3:20 pm
well done poixion, very nice script, keep up the good work
DarkSoul
Comments: 7
 
mIRC Snippet:  Trivia
Posted on Apr 3, 2005 6:08 pm
when i type in /chans all i get is «««« CHANS: That's An (Unknown) Command ! »»»» is there something i missed or didnt put in?
PoiXon
Comments: 144
 
mIRC Snippet:  Trivia
Posted on Apr 4, 2005 6:52 am
there is a /chans command add this "alias chans { set %chans $$?="Enter Channel For Trivia" }" then when u type /chans it should come up with a little dialog thing then just put ur channel in then type !trivia in the channel u put in the little box
DarthReven
Comments: 468
 
mIRC Snippet:  Trivia
Posted on Apr 4, 2005 6:32 pm
you might want to do this poixon alias chans { %chans = $iif($1,$1,$$?="Enter channel Name") } so they can type /chan #roomname or just /chan and have the dialog
DarkSoul
Comments: 7
 
mIRC Snippet:  Trivia
Posted on Apr 4, 2005 6:45 pm
erm im not too good with where everything goes so were am i suppose to put this bit of code? alias, remotes, etc?
DarthReven
Comments: 468
 
mIRC Snippet:  Trivia
Posted on Apr 4, 2005 7:13 pm
Remotes
DarkSoul
Comments: 7
 
mIRC Snippet:  Trivia
Posted on Apr 4, 2005 8:43 pm
ok thnx i fixed it now :D but one im wondering if theres a way to change it from 30 secs to 60 secs? and is there away to reset the points people get so people start off with zero points each game? because i start a new game and everyone has their original points, is that suppose to happen?
PoiXon
Comments: 144
 
mIRC Snippet:  Trivia
Posted on Apr 5, 2005 6:06 am
DarkSoul to change it to 60secs .. change all the ".timer3 1 35 wrong" line in the script to ".timer3 1 60 wrong" ( btw there are 2 of the .timer3 1 35 wrong ) and yes there points are suppose to stay unless u type //unset %score* which will unset everyones points :)
PoiXon
Comments: 144
 
mIRC Snippet:  Trivia
Posted on Apr 5, 2005 6:06 am
And DarthReven . ive added sumthin like that now :)
DarkSoul
Comments: 7
 
mIRC Snippet:  Trivia
Posted on Apr 5, 2005 6:56 pm
ok thanks a lot :D very nice script btw :P
Yoinx
Comments: 424
 
mIRC Snippet:  Trivia
Posted on May 8, 2005 1:00 pm
You know, you can make a topic in your snippet to store the questions. Then just use loadbuf in an alias to write the questions over to a text file from that topic.
PCTech
Comments: 17
 
mIRC Snippet:  Trivia
Posted on May 15, 2005 10:26 pm
is it possible to keep track of scores and if a user has a certain score they get VOICE and another level they get HALFOP and then OP?
bLeuZ
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Jul 7, 2005 9:22 am
i tried to add questions with 2 werd answers and it didnt werk...players are nt able to answer even if they typed d correct answer...what should i do to make it werk??

and is there any way to add a timer to indicate the number of sec players get the right answer?? err get wat i mean??
bLeuZ
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Jul 7, 2005 9:33 am
i tried to add questions with 2 werd answers and it didnt werk...players are nt able to answer even if they typed d correct answer...what should i do to make it werk??

and is there any way to add a timer to indicate the number of sec players get the right answer?? err get wat i mean??
xDaeMoN
Comments: 693
 
mIRC Snippet:  Trivia
Posted on Jul 9, 2005 12:57 pm
In regards to problem with the answers, find this part " if ($1 == %answer) {" then change the "$1" to "$1-". That should do it.
bLeuZ
Comments: 4
 
mIRC Snippet:  Trivia
Posted on Jul 9, 2005 8:17 pm
hehehe... xDaeMoN ur owaz helping me....thank u again...
Jump
Comments: 1
 
mIRC Snippet:  Trivia
Posted on Aug 9, 2005 2:00 pm
I can't read the questions, because the color is wrong or there are no questions..
DeathRyder082
Comments: 100
 
mIRC Snippet:  Trivia
Posted on Aug 9, 2005 5:21 pm
Did you put the questions in a .txt file?
Sev
Comments: 1
 
mIRC Snippet:  Trivia
Posted on Jun 8, 2006 7:31 pm
I'm sorry for my ignorance, but where does everything go?
sean
Comments: 109
 
mIRC Snippet:  Trivia
Posted on Jun 9, 2006 12:41 am
please read previous posts.
[1]Copy the questions to a .txt
[2]load the rest of the script into remotes
Kobilas
Comments: 1
 
mIRC Snippet:  Trivia
Posted on Oct 27, 2006 6:31 am
how can i use this, to more than one channels?
mind-freak
Comments: 3
 
mIRC Snippet:  Trivia
Posted on Dec 30, 2006 10:32 pm
very nice i like but you cant add answer with two words in it :s fix that =)
mind-freak
Comments: 3
 
mIRC Snippet:  Trivia
Posted on Dec 31, 2006 1:53 am
oh and also how do i restart the scores??
mountaindew
Comments: 1,767
 
mIRC Snippet:  Trivia
Posted on Jun 30, 2007 9:27 am
to restart scores type //unset %score*

also i was wondering if there was a way to put a timer, to see how fast the person got the answer, and have it say their rank when they get it right, and their streak. Like congrats, $nick! you got it in ___ Seconds! You're in __th. You got _ in a row! or you just moved up in rank!

Also, like PCTech said, i think it would be cool to have like if u get 100, you get voice, 200, you get halfop, 1000, you get op.

One more thing. Is there any way to edit people's scores?
mountaindew
Comments: 1,767
 
mIRC Snippet:  Trivia
Posted on Jun 30, 2007 9:29 am
also, is there a feature on it already for it to stop after N questions?
mountaindew
Comments: 1,767
 
mIRC Snippet:  Trivia
Posted on Jun 30, 2007 9:33 am
oh, i see there is a feature to voice and op ppl depending on their score...nice!
mountaindew
Comments: 1,767
 
mIRC Snippet:  Trivia
Posted on Jun 30, 2007 9:36 am
top 10 would be cool
mountaindew
Comments: 1,767
 
mIRC Snippet:  Trivia
Posted on Jun 30, 2007 11:28 am
this was what it said in another trivia game, i thought its cool

msg $chan 6That's the way4 $nick $+ 6! The answer was4 (ANSWER) $+ 6. You got it in4 (TIME) 6seconds. You've moved up in rank!
msg $chan 6 $+ $nick 6now has4 (SCORE) 6points and is ranked 4 (RANK)6of 4(RANK) 6behind4 (NICK AHEAD OF HIM) 6with4 (OTHER NICKS SCORE)

i was wondering if theres anyway to include that in this script along with a top 10?
mountaindew
Comments: 1,767
 
mIRC Snippet:  Trivia
Posted on Jul 1, 2007 12:31 pm
One thing doesnt work in this. When a new user begins to play, and they get their first question right, it says $nick has points. It says this because u increased the score AFTER it says their points. So make it like this.

instead of
msg %chan 12You Got It Right The Answer Was:4 $+(%answer,!)$+ $+(12,$nick)$+ Has %score [ $+ [ $nick ] ] Point(s)!
inc %score [ $+ [ $nick ] ]

make it
inc %score [ $+ [ $nick ] ]
msg %chan 12You Got It Right The Answer Was:4 $+(%answer,!)$+ $+(12,$nick)$+ Has %score [ $+ [ $nick ] ] Point(s)!

also, i added a feature to check other ppl's scores.
if ($1 == !score) {
if (%score [ $+ [ $nick ] ] == $null) && ( $2 == $null ) {
notice $nick You Have 0 Points
}
elseif (%score [ $+ [ $nick ] ] != $null) && ( $2 == $null ) {
notice $nick You Have %score [ $+ [ $nick ] ] Points!
}
elseif (%score [ $+ [ $2 ] ] == $null) && ( $2 != $null ) {
notice $nick $2 Has 0 Points
}
elseif (%score [ $+ [ $2 ] ] != $null) && ( $2 != $null ) {
notice $nick $2 Has %score [ $+ [ $2 ] ] Points!
}
}
}


jdslasher72
Comments: 1
 
mIRC Snippet:  Trivia
Posted on Sep 2, 2007 2:51 am
hey, i have it all done, except when some1 anwsers it does not show anything even if its right, and i tryed the ($1-) above, help please!
erry
Comments: 13
 
mIRC Snippet:  Trivia
Posted on Oct 19, 2007 8:31 am
replace $1 with $2-
kortho
Comments: 6
 
mIRC Snippet:  Trivia
Posted on Nov 24, 2007 10:41 pm
i like it, makes it easier to put in your own questions and edit colours a bit
very well done mate
M[n]M
Comments: 97
 
mIRC Snippet:  Trivia
Posted on Apr 5, 2008 5:16 pm
man can't you make it a !Top10 or !Top20 ?
Dragon1-9-8-4
Comments: 29
 
mIRC Snippet:  Trivia
Posted on Dec 1, 2008 5:17 pm
i got this message when i tried to run trivia.txt. /run: unable to open file 'trivia.txt'
so i guess something aint right
mountaindew
Comments: 1,767
 
mIRC Snippet:  Trivia
Posted on Dec 1, 2008 8:51 pm
Did you /write it first?
Dragon1-9-8-4
Comments: 29
 
mIRC Snippet:  Trivia
Posted on Dec 2, 2008 5:23 pm
yeah i sure did and it works but it doesnt read the questions from the text file

jonesy44
Comments: 1,320
 
mIRC Snippet:  Trivia
Posted on Dec 2, 2008 5:41 pm
Code:
//echo -a $iif($read(trivia.txt),File Exists,File Doesn't Exist)
Run that
Dragon1-9-8-4
Comments: 29
 
mIRC Snippet:  Trivia
Posted on Dec 3, 2008 8:17 am
ok ill try it
jonesy44
Comments: 1,320
 
mIRC Snippet:  Trivia
Posted on Dec 3, 2008 1:14 pm
If it says it doesnt exist, it clearly don't ;)

Please Register or Login to start posting comments.
Bottom