egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to make lowercase letters

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
emokid
Voice


Joined: 07 Dec 2007
Posts: 22

PostPosted: Sat Mar 01, 2008 2:57 pm    Post subject: How to make lowercase letters Reply with quote

I am using this TriviaBot script: http://www.egghelp.org/tclhtml/3478-4-0-0-1-trivia-tcl-DarkMist.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.)
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Mar 01, 2008 3:05 pm    Post subject: Re: How to make lowercase letters Reply with quote

emokid wrote:
I am using this TriviaBot script: http://www.egghelp.org/tclhtml/3478-4-0-0-1-trivia-tcl-DarkMist.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:
 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:
 tggamemsg "\00304===== Question [expr $tgquestionnumber+1]/$tgquestionstotal [expr $tghintnum?"(Hint $tghintnum/$tgmaxhint)":""] ====="
 tggamemsg "\00312$tgcurrentquestion"
 tggamemsg "\00303Hint: $_hint"
Back to top
View user's profile Send private message
emokid
Voice


Joined: 07 Dec 2007
Posts: 22

PostPosted: Sat Mar 01, 2008 3:10 pm    Post subject: Reply with quote

Oh thanks, I didn't know about strupr.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber