Hello again!
I have a problem in simplecontrol with this rule:
if (%response == 0)
{
@8 = ^GambitTopics() # all topics with gambits (excluding system topics)
loop()
{
$$topic = pick(@8)
nofail(TOPIC ^Gambit($$topic)) # try a topic at random
if (%response != 0)
{
^end(RULE)
}
}
}
The rule is followed by one last rule where I added a ^respond(DEFAULT_TOPIC) for when all else fails. I don’t have many gambits and when I’ve used them all up the above rule causes
FAILRULE (^gambittopics)
—> FailTopic ~control
and hence the next rule never gets a chance. So how can I prevent that FAILRULE from occurring?
Thanks!