ON *:TEXT:*3rd*:*: {
ON *:TEXT:*->*:*: {
if ($nick == Nickname) {
%value = $mid($1-, $calc($pos($1-, 3rd, 1) + 14), $calc($pos($1-, Second, $pos($1-, Second, 0)) - $pos($1-, 3rd, 1) - 23))
}
}
if($nick == Nickname) {
msg $chan $mid($1-, $calc($pos($1-, ->, 1) + 6), $calc($pos($1-, <-, $pos($1-, <-, 0)) - $pos($1-, ->, 1) - 9))
msg $chan %value
}
}
Chatoutput goes like
Nickname: It's the 3rd candy
Nickname: It's the second candy
What i want to do is, if the text 3rd is in the sentence trigger ON *:TEXT:*->*:*: {
and make a %variable
of the input of 3rd in %value
with the text of 3rd and pass it to the other line.
If not 3rd is in the sentence do nothing.
I hope i'm clearly with what i want it to do hope someone can help me.