This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
emokid
Voice
Posts: 22 Joined: Fri Dec 07, 2007 5:31 pm
Post
by emokid » Sat Mar 01, 2008 2:57 pm
I am using this TriviaBot script:
http://www.egghelp.org/tclhtml/3478-4-0 ... rkMist.htm
Which is pretty simple, but I don't know why when it displays the questions, all the letters are in uppercase/capital letters. How do I make it back to lowercase? (The questions in the database are all lowercase letters.)
speechles
Revered One
Posts: 1398 Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)
Post
by speechles » Sat Mar 01, 2008 3:05 pm
emokid wrote: I am using this TriviaBot script:
http://www.egghelp.org/tclhtml/3478-4-0 ... rkMist.htm
Which is pretty simple, but I don't know why when it displays the questions, all the letters are in uppercase/capital letters. How do I make it back to lowercase? (The questions in the database are all lowercase letters.)
Code: Select all
tggamemsg "\00304===== Question [expr $tgquestionnumber+1]/$tgquestionstotal [expr $tghintnum?"(Hint $tghintnum/$tgmaxhint)":""] ====="
tggamemsg "\00312[strupr $tgcurrentquestion]"
tggamemsg "\00303Hint: [strupr $_hint]"
Change all that above to simply what is below. [strupr $var] forces uppercase, just remove them.
Code: Select all
tggamemsg "\00304===== Question [expr $tgquestionnumber+1]/$tgquestionstotal [expr $tghintnum?"(Hint $tghintnum/$tgmaxhint)":""] ====="
tggamemsg "\00312$tgcurrentquestion"
tggamemsg "\00303Hint: $_hint"
emokid
Voice
Posts: 22 Joined: Fri Dec 07, 2007 5:31 pm
Post
by emokid » Sat Mar 01, 2008 3:10 pm
Oh thanks, I didn't know about strupr.