i’ve toyed around with the interactive terminal template for a bit, but the commands there seem to be isolated from each other, and can’t contain spaces. is it possible to make commands that work like, say, a “look” command that on its own displays the list of subcommands connected to itself (“look” might display “look left”, “look right”, and “look up”), and then each of those subcommands can have its own output?
thank you in advance for answering! :0

  • VioneTM
    link
    English
    21 year ago

    See this demo generator.

    You can add sub commands to a command by adding a space and input i.e. command (input).

    For example, on the name command, to set a name you will do something like name john which will set the name to john. But if you do name only, it will set the name to just blank. Thus, the sub-command/input is john.

    On that demo, instead of having output = ... I changed it to be a list with Dynamic Odds. It then checks the input. If the input is blank, it will then output the correct syntax for the command. If the input is valid, it will then output the appropriate output.