inputs() will give you the number of words entered.
My approach to this is to introduce a word limit in the settings to prevent this kind of issue.
In the meantime, you have inputs() to play with.
on_command {
: if (inputs() > 2) {
: print "This game only accepts a maximum of maximum of two words for its commands";
: done; // Stop execution
}
}There is a caveat. The local (per location) on_command {} handlers run first, so this must be added to each local handler, or each local handler must reference a subroutine first.
I'll also add a settings to configure subroutines to call before executing on_commands sometime soon, to make interceptors compatible with local handlers.