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.

Passing variables into imdb script?

Help for those learning Tcl or writing their own scripts.
Post Reply
v
voodoo
Voice
Posts: 1
Joined: Sun Apr 09, 2006 2:51 pm

Passing variables into imdb script?

Post by voodoo »

I have one of the imdb scripts from this site working fine on my eggdrop.

What i want to do is pass the name of a movie from a variable from another proc to the imdb script and have it use this movie.

How can i achieve this? Im pretty new at tcl scripting but can pick things up pretty quick so where can i look for some help with this?

Which method should i use to do this?

To elaborate:

I have variable1 within procedure1 = with the value of "scream" (for example)

How can i pass this to the !imdb command/script?

Thanks

voo
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

by examining the imdb script and integrating your proc within it
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
D
Doa
Voice
Posts: 5
Joined: Sat Nov 19, 2005 9:10 pm
Location: Oostende/Belgium

Post by Doa »

make it global
for example:

Code: Select all

proc blaat {n u h a} {
global pom
set pom "$n $a"
}

proc toem {} {
global pom
puts $pom
putlog "$pom"
}
Post Reply