I am having trouble getting this to work. I want to create a catch-all topic that accepts commands from the caller, that enables and disables topics. I want this topic to run any time and not interfere with the flow of other topics unless it disables them. Its operation should be invisible to the user.
This is what I have so far:
topic: ~MASTER_TOPIC noerase repeat priority ( \[ test1 \] \[ test2 \])
#! This topic is a catch all that always runs. It only accepts commands from the engine that enable and disable other topics in this script
#! enable CHILDHOOD topic
s: ( \[ test1 \] ) “CHILDHOOD topic enabled”
#! disable CHILDHOOD topic
s: (\[ test2 \]) “CHILDHOOD topic disabled”
It outputs the expected results, but interferes with the CHILDHOOD topic, if I am part way though it.
Also if I change the test1 line to:
s: ( \[ test1 \] ) ^enable(CHILDHOOD all) “CHILDHOOD topic enabled”
It no longer outputs “CHILDHOOD topic enabled”. It says, “I don’t know what to say.”
Any suggestions?