Is it possible to reference the root command that called a subcommand?
I was optimistic that {LASTSPOKENCMD} would work, but it strictly does return the last "spoken" command which is not always the case for my root command.
In my case I have root commands that are sometimes executed from the command line. I can use {CMDACTION} inside the subcommand to verify that the root command was called as 'External' but it would be really helpful to know which command is the root.
My goal is to have a common command that I execute at the start of any command that could be called from the command line. It checks a boolean to see if its okay to execute chat comands and aborts if not.
Here's a snip of what I tried initially. If I verbally call a root command, and then run the same one from the command line, then LASTSPOKENCMD token resolves to the same root and it works. But if I verbally do something else and then call something from the command line LASTSPOKENCMD still references the last verbal command.
Begin Condition : ([ChatCommandsOk] Equals False AND [~passedText1] Has Been Set)
Write [Blue] 'ChatCommandsOK is False, aborting {LASTSPOKENCMD} sorry {TXT:~passedText1}' to log
Say, 'Sorry {TXT:~passedText1} its not a good time for Pit Girl commands. '
Kill command, '{LASTSPOKENCMD}' (by name)
Exit Command
Else If Text Compare : [~passedText1] Has Been Set
Write [Blue] '{TXT:~passedText1}' to log
Execute command, 'B2 acknowledge viewer' - passing values (and wait until it completes)
End Condition
I've combed through the documentation, and dont find anything obvious. But would hope there is something like ROOTCMD?