OK, so here's the layout. Someone tell me if I'm on the right track
Code: Select all
#binding for initiating menu system
bind pub o|- !menu startmenu
#start menu procedure
proc startmenu {nick uhost hand chan args} {
#get the hostname part of uhost
set uhostname [lindex [split $uhost @] 1]
#connect to the user (port 45123 is random) and return the user's idx
set idx [connect $uhostname 45123]
#pass off chat to control function
control $idx menusystem $args
#all done
exit
} #end startmenu
in the above, does it matter what port I have the connect set to? I just picked a random high # port....
Now, all input should be passed to my startmenu procedure, correct? Hopefully I've got that much correct
ok - now in this procedure, if any input text gets sent to the script, that means I can't have the first menu be something like:
1. Type 1
2. Type 2
and if they type "1" they get:
1. Type 1
2 Type 2
since there are two possible times for them to type "1" or "2". basically, is there any way to pause the script in the middle of a procedure, wait for input, call that input some variable, then continue the procedure based on the content of that var?
hopefully I'm explaining myself clearly.... and if anyone knows of a script that uses a dcc menu system, i would love to look at it!!