Inputs - 12/12/02 02:04 AM
I am creating a script that calls for multiple inputs, then inserts those inputs into a command. How do I asign each input to a value, then use those values later when it runs the command? Thank you.
my.input { set %input.nick $$?="Enter your nick" set %input.age $$?="Enter your age" set %input.color $$?="Enter your fav color" }
/personal.input { unset %personal.input var %personal.input $$?="please enter your personal info" if (%personal.input !== $null) { /writeini -n preform.ini personal input %personal.input } unset %personal.input }
alias /addchannel { if [ %channel1 == $null ] { set %channel1 #$$?="Enter Channel" | goto end } if [ %channel2 == $null ] { set %channel2 #$$?="Enter Channel" | goto end } if [ %channel3 == $null ] { set %channel3 #$$?="Enter Channel" | goto end } if [ %channel4 == $null ] { set %channel4 #$$?="Enter Channel" | goto end } if [ %channel5 == $null ] { set %channel5 #$$?="Enter Channel" | goto end } if [ %channel6 == $null ] { set %channel6 #$$?="Enter Channel" | goto end } if [ %channel7 == $null ] { set %channel7 #$$?="Enter Channel" | goto end } if [ %channel8 == $null ] { set %channel8 #$$?="Enter Channel" | goto end } if [ %channel9 == $null ] { set %channel9 #$$?="Enter Channel" | goto end } else { echo -a 4,15You Have Too Many Channels In Your List! | halt } :end echo -a 14»»»12 $! Has Been Added To Your Channel List
on *:CONNECT: join %AutoJoin.Channels alias addchannel { if ($numtok(%AutoJoin.Channels,44) < 11) { set %AutoJoin.Channels $addtok(%AutoJoin.Channels,#$$?="Enter Channel",44) echo -a »»» $gettok(%AutoJoin.Channels,-1,44) Has Been Added To Your Channel List } else echo -a »»» Your Channel List Is Already Full! $+($chr(40),$replace(%AutoJoin.Channels,$chr(44),$chr(32)),$chr(41)) } alias delchannel { if ($istok(%AutoJoin.Channels,#$$1,44) { set %AutoJoin.Channels $remtok(%AutoJoin.Channels,#$1,1,44) echo -a #$1 Has Been Deleted From Your Channel List } else echo -a #$1 Is Not In Your Channel List }