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.

Execute script commands from another script

Help for those learning Tcl or writing their own scripts.
Post Reply
c
cvanmeer
Halfop
Posts: 40
Joined: Tue Dec 02, 2003 1:00 pm
Location: The Netherlands
Contact:

Execute script commands from another script

Post by cvanmeer »

Hi all,

Situation:

2 scripts, first script has a trigger !a that performs an action.
Second script has trigger !b that performs an action.

They are both seperate scripts (e.g. a.tcl and b.tcl)

Now I want to create a new script (e.g. c.tcl) and set a trigger !c that will execute !a and !b.

Is that possible? To call triggers from another script?

Thx

Chris
User avatar
Trixar_za
Op
Posts: 143
Joined: Wed Nov 18, 2009 1:44 pm
Location: South Africa
Contact:

Post by Trixar_za »

Yeah, it's completely possible. Just make sure you load a.tcl and b.tcl before c.tcl in the conf, otherwise you'll get errors.
User avatar
CrazyCat
Revered One
Posts: 1280
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

And the c'proc must send the good args to the a & b proc.
c
cvanmeer
Halfop
Posts: 40
Joined: Tue Dec 02, 2003 1:00 pm
Location: The Netherlands
Contact:

Post by cvanmeer »

Thx lads
Post Reply