I am tryin to fix a path for setting different catogories in a trivia script, but seems not to get it right.
script is triviaplus.tcl
Code: Select all
#Cheat protection for blocking people from just trying and guessing.
#This is especially handy with multiplechoice question with one answer.
#They have to wait for the next hint or answer.
#
# Greetings Hairy_Scary@hotmail.com 21-06-2004
###########################################################################
# The full path to the file containing the questions and answers.
# The account the bot runs on must have read access to this file.
# This is the default question file used at startup
set tgqdb "scripts/trivragen/demoquestions.txt"
#Set your questions data files here
#If u dont use one of them
#use <return> as seperator or put everything on one line with a space!! eg: set questionfiles"file&desc file&desc file&desc"
#The first line contains the default database set above
set questionfiles "$tgqdb&default
scripts/trivragen/demoquestions.txt&demo
scripts/trivragen/ccnaquestions.txt&CCNA"
# What trigger should be used for changing the category?
set tgchoosecmd "!choose"
set tgcommandlist $tgchoosecmd$
# Flags required to be able to use the reset command.
set tgflagschoose "-|-"
# The character that seperates the question and the answer in the
# question/answer file.
set tgqdbsep "|"
...
....
.....
This is the place where i want toset 4 Question files
set questionfiles "$tgqdb&default
scripts/trivragen/demoquestions.txt&demo
scripts/trivragen/ccnaquestions.txt&CCNA
Shell path where Files are loaded.
~/eggdrop/scripts/sports.txt
~/eggdrop/scripts/sex.txt
~/eggdrop/scripts/history.txt
~/eggdrop/scripts/ccnaquestions.txt
help me how to set the path thanks in advance.
Mash