Wouldn't really be much point in doing it exactly how you want. I'd suggest an alias.
alias textit { write -a file.txt on *:text:*hello*:#: $+ $chr(123) $pm(bye) $chr(125) }
alias actionit { write -a file.txt on *:action:*hello*:#: $+ $chr(123) $act(bye) $chr(125) }
alias pm { return .privmsg $chr(36) $+ chan $1- }
alias act { return .describe $chr(36) $+ chan $1- }
or something like that...
Edited Dec 7, 2004 4:27 PM by Cleric xtx
thx,
but i meant a list of words, there'd be a list in the .ini file, and when the first word was said in the room it'd say the second word on that same line
Edited Dec 7, 2004 5:56 PM by Nimbus03
"the important thing was, that i had an onion on my belt, which was the style at the time"
on *:text:*:#:{ tokenize 32 $strip($1-) | if ($ini(<inifile>,$1)) msg $chan $readini(<inifile>,$1) }
on *:action:*:#:{ tokenize 32 $strip($1-) | if ($ini(<inifile>,$1)) describe $chan $readini(<inifile>,$1) }
then load the ini file with this kind of thing..
hello=bye
bye=hello
one=two
first=second
blah=blahblah
i think that will work
Edited Dec 7, 2004 11:26 PM by vexation
thx cleric, it works great
,
but how can i get it to define whether the command is TEXT or ACTION in the way that i mentioned before with the 0 hello^1 bye thing?
thx again 
i just found a problem, it does the command when you only type just one letter, when it's meant to do it when you type the whole word or words, and i dunno how to fix this
, i hope you can hellp further
thx
Edited Dec 8, 2004 1:01 AM by Nimbus03
"the important thing was, that i had an onion on my belt, which was the style at the time"