Hmmm, I think I would do this with a function something like this:
<function name="testinput" parameters="actor, pattern ">
if (pattern ="CULT") {
if (actor.name="Adam") {
msg(""Yeah I heard something about a cult. You might want to talk to Boris."")
} else if (actor.cult_member) {
msg(""Sure, there is a secret cult. If you want to join, you have to do the initiation"")
} else {
msg(""I know nothing about a cult"")
}
} else if (pattern="WEATHER") {
msg(""It's awful weather, isn't it?"")
} else {
msg("I don't know about that")
}
<function>
It should be the same you want to do