There's an easier way to achieve this. Since your responses all have the same prefix "has to", you can just toss that into the response itself and create a list of items you want to add using tokens. Then you wouldn't need to keep track of how many tokens you have, since you can just use $numtok(text, C) to get the number of tokens and comparing it to %r. After doing this, you just append the returned token to your response and it makes the script much more usable. You can also use a text file and allow people to add their own responses via a command if you'd like.