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.

Which command in TCL?

Old posts that have not been replied to for several years.
Locked
R
Real
Voice
Posts: 24
Joined: Mon Mar 08, 2004 11:27 am

Which command in TCL?

Post by Real »

1) I have a rather stupid question.

What is the $+ command in TCL?

I've tried searching for it in google and on this forum, but it's quite impossible to search for since it only uses special characters.

Thanks in advance

2) Is there a way to save global variables, so that they are still there when the bot is rebooted? Now, in my script there's set var "", but I actually want it to have to same value as it did before the loading of the script. Is this possible?
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

maybe if u write it to a txt file .. then read it on startup .. other wize i can't think of a way how you could do this ..
XplaiN but think of me as stupid
d
dollar
Op
Posts: 178
Joined: Tue Oct 28, 2003 3:47 pm
Location: Netherlands

Re: Which command in TCL?

Post by dollar »

Real wrote:1) I have a rather stupid question.

What is the $+ command in TCL?

I've tried searching for it in google and on this forum, but it's quite impossible to search for since it only uses special characters.

Thanks in advance
Not everyone speaks mirc (guess), try explaining what it does...
dollar (or something similar) at:
#eggdrop / #tcl - undernet
#egghelp / #tcl / #eggtcl - efnet
#eggdrop.support / #tcl - quakenet
#eggdrop - ircnet
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

also $+ means join vars or something eh
but in tcl u can just write them next to eachother like

$test$test$test$test

no need for

$+($test, $test, $test, $test)
XplaiN but think of me as stupid
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You could if you so wish, use concat.

Code: Select all

set a "hello"
set b "world"
set var [concat $a $b]
set var
Would output "helloworld"
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

thats usefull to know ;)
XplaiN but think of me as stupid
Locked