Somniator MightyBot

Joined: 17 Jul 2006 Posts: 173
|
Posted: Sun Oct 25, 2009 8:40 pm Post subject: Catchrule - Command |
|
|
One feature that would solve a lot of problems (that I have, at least ) is a modified <send> command.
Nowadays a send command pushes my Verbot out of a rule hierarchy pretty frequently, because when the new rule fires the focus remains on the new rule and does not return to the rule in the rule hierarchy that contains the <send> command.
#rule hierarchy .... level2 .... level3: #rule A: One thing: <send rule_b> .... level4 ....
...
..
.
.
#rule_b
After level3: #rule A has fired, level4 will never be achieved.
If there was a command like <catchrule xyz> that is sent to the engine, executes the rule but then gets back to the sending rule within the rule hierarchy, "hijacked inputs" can be avoided.
Moreover it would be possible to store #csharp code in special rules and call it up with the <catchrule > command instead of writing it in every output where it is needed. |
|