How does a custom command return a value to other commands?

  • for instance
    @set value=mycmd xxx // mycmd is ScriptCommand, xxx is argument

Scripts can set variables with other commands can then use.

But it's often easier to make the script itself run the other commands.