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
;========================;
;=======QUESTIONS=========;
what is The Scientific name for a Spider?|A-------|Ar-----d|Arachnid
What nation has had a monarchy the longest?|J----|J---n|Japan
What childhood disease did 312 Americans have in 11993, a record low?|m------|me----s|measles
What Italian city had the Roman name Mediolanum?|M----|Mi--n|milan
What distant planet circles the sun every 84 years?|U-----|Ur---s|Uranus
What European country is threatened by over 100 active volcanoes?|I------|Ic----d|Iceland
Who is the helmsman of the boat when you are sailing into Hades?|C-----|C---on|Charon
What dog shares his owner with Garfiled the Cat?|O---|O--e|Odie
What was JFK's nickname for his daughter Caroline?|B------|B----ns|Buttons
What type of number describes the ratio of the speed of a plane to the speed of sound?|m---|ma--|mach
What color are a zebra's stripes during the first six months of life?|b----|br--n|brown
Who is the Barber of Seville?|F-----|F-g-a-o|Figaro
What city in Nepal translates as "wooden temples?"|------du|Ka----du|K------u|K-t--ndu|Katmandu
Earth's outer layer of surface soil or crust is called the _____________.|lit--------|lit------re|lithosphere
This county has the lowest point in South America.|A--------|A----t-na|Argentina
What US City is known as The River capital of the world?|A----|Ak---|Akron
What's the worlds widest river?|A-----|Am---n|Amazon
What weapon is tattooed on Glen Campell's arm?|d-----|d-gg--|dagger
What subject did Mr. Chips teach?|L----|La--n|Latin
What did Wilhelm Roentgen discover in 1895?|X-----|X-R---|X-rays
What's the better-known name of the card game Twenty-One?|B--------|Bl---j---|Blackjack
What coutnry did 300,000 Chinese troops invade in February, 17979?|V------|Vi----m|Vietnam
From what "black metal" did blacksmith's take their name?|i---|i--n|iron
What Italian city is considered the fashion capital?|M----|Mi---|Mila
What 1970 movie hit was banned on military bases?|M---|MA--|MASH
Jimmy Carter once thought he saw a UFO; what was it?|V----|Ve---|Venus
What country used the deadly nerve gas SARIN against Kurdish minority factions in the 1990s?|I---|I--q|Iraq
What is the computer acronym for "picture element?"|p----|P-x--|Pixel
What segment of television receieves the ACE awards?|c----|C--le|Cable
;=============END===============;
on *:text:!trivia:%chans: {
if (%trivia == $null) {
msg $chan 4Trivia12 Has Started. You Have4 30 12seconds to Answer
set %thing $read(trivia.txt)
set %question $gettok(%thing,1,124)
set %trivia on
set %answer $gettok(%thing,4,124)
msg $chan 4Question:12 %question
set %chan #
.timer1 1 15 msg $chan 12HINT:4 $gettok(%thing,2,124)
.timer2 1 25 msg $chan 12HINT:4 $gettok(%thing,3,124)
.timer3 1 35 wrong
haltdef
}
else { msg $nick 4Trivia12 is Already On }
}
alias wrong {
if (%trivia == on) {
msg %chan 12You Failed To Answer The Question! next Question in4 5 12seconds!
unset %answer
unset %question
unset %thing
.timer 1 5 new
haltdef
}
}
alias new {
if (%trivia == on) {
set %thing $read(trivia.txt)
set %question $gettok(%thing,1,124)
set %trivia on
set %answer $gettok(%thing,4,124)
msg %chan 12New Question:4 %question
.timer1 1 15 msg %chan 12HINT:4 $gettok(%thing,2,124)
.timer2 1 25 msg %chan 12HINT:4 $gettok(%thing,3,124)
.timer3 1 35 wrong
haltdef
}
}
on *:text:*:%chans: {
if ($1 == %answer) {
.timer3 off
.timer1 off
.timer2 off
msg %chan 12You Got It Right The Answer Was:4 $+(%answer,!)$+ $+(12,$nick)$+ Has %score [ $+ [ $nick ] ] Point(s)!
inc %score [ $+ [ $nick ] ]
unset %answer
unset %question
unset %thing
.timer 1 5 new
haltdef
}
if ($1 == !strivia) {
msg %chan 4Trivia12 Has Been Halted!
.timer1 off
.timer2 off
.timer3 off
.timer4 off
unset %trivia
unset %answer
unset %question
unset %thing
haltdef
}
if ($1 == !won) {
if (%score [ $+ [ $nick ] ] == $null) {
notice $nick You Have 0 Points
}
elseif (%score [ $+ [ $nick ] ] != $null) {
notice $nick You Have %score [ $+ [ $nick ] ] Points!
}
}
}
on *:join:%chans: {
if ($me isop #) {
if (%score [ $+ [ $nick ] ] > 49) && (%score [ $+ [ $nick ] ] < 99) {
mode # +h $nick
}
elseif (%score [ $+ [ $nick ] ] > 99) {
mode # +o $nick
}
elseif (%score [ $+ [ $nick ] ] == $null) {
msg $chan 4Welcome12 to4 $chan 12Type4 !trivia12 to play the Trivia Game, Type 4!strivia12 to stop
}
}
}
alias chans {
if (!$1) {
set %chans $$?="Enter Channel For Trivia!"
}
else {
set %chans $1
}
}
on *:input:#: {
if ($1 == !trivia) {
if (%trivia == $null) {
msg $active $1-
msg $active 4Trivia12 Has Started. You Have4 30 12seconds to Answer
set %thing $read(trivia.txt)
set %question $gettok(%thing,1,124)
set %trivia on
set %answer $gettok(%thing,4,124)
msg $chan 4Question:12 %question
set %chan #
.timer1 1 15 msg $chan 12HINT:4 $gettok(%thing,2,124)
.timer2 1 25 msg $chan 12HINT:4 $gettok(%thing,3,124)
.timer3 1 35 wrong
haltdef
}
}
if ($1 == !strivia) {
msg $active $1-
msg $active 4Trivia12 Has Been Halted!
.timer1 off
.timer2 off
.timer3 off
.timer4 off
unset %trivia
unset %answer
unset %question
unset %thing
haltdef
}
if ($1 == !won) {
if (%score [ $+ [ $me ] ] == $null) {
echo -a 12You Have4 0 12Points
}
elseif (%score [ $+ [ $nick ] ] != $null) {
echo -a 12You Have4 %score [ $+ [ $nick ] ] 12Points!
}
}
if ($1 == %answer) {
msg $active $1-
.timer3 off
.timer1 off
.timer2 off
inc %score [ $+ [ $nick ] ]
msg %chan 12You Got It Right The Answer Was:4 $+(%answer,!)$+ $+(12,$nick)$+ Has %score [ $+ [ $nick ] ] point(s)!
unset %answer
unset %question
unset %thing
.timer 1 5 new
haltdef
}
}
you can make the script a little easier to set up of you edit the questions part:
on:load: { if (!$read(trivia.txt) {
write trivia.txt what is The Scientific name for a Spider?|A-------|Ar-----d|Arachnid
write trivia.txt (question etc etc)
} }
That will make the script auto add in the questions when someone loads it, if they don't have the list made.
Very nice script though. 8/10
Great script! but why not fix the bug here:
if ($1 == !strivia) {
msg %chan 4Trivia12 Has Been Halted!
.timer1 off
.timer2 off
.timer3 off
.timer4 off
unset %trivia
unset %answer
unset %question
unset %thing
haltdef
}
Why not add && (%trivia == on) to the first line so people don't spam !strivia?
Great script!
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!
}
}
}
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?
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?