#(Stewe) command script custom tab completes

22 messages · Page 1 of 1 (latest)

eager temple
#

how do i make the tab completes for arg2 be based of arg1?

like for example if i typed /command red the next arguments are going to be pink and orange

but if i type /command blue the next arguments are going to be green and purple

how would i do that

pseudo wyvernBOT
#

(Stewe) command script custom tab completes

pseudo wyvernBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

modern willow
#

!l command script container

idle yewBOT
# modern willow !l command script container

Command script containers allow you to register your own custom commands to the server.
This also allows the command to show up in the '/help' command, with some info on the command.

Note that existing names or aliases from other plugins will be overridden.
If you want to run a script at the same time as an existing command, see !event on command.

The following is the format for the container.

The required keys are 'name:', 'description:', 'usage:', and 'script:'
All other keys can be excluded if unneeded.
If you are not intentionally setting a specific value for the other keys, it is
strongly recommended that you simply not include them at all.

Please note that 'name:' is the true name of the command (written by users),
and 'usage:' is for documentation in the '/help' command.
...

Group

Script Container System

modern willow
#

you can use tab complete key

#

and make yourself a procedure

#

which would determine those completions based on the other args

eager temple
#

yea but how

#
- if <context.args.get[1]> == red:
  - determine orange|pink```? like that
idle yewBOT
# undone moth !tias
Info: tias

Try it and see!

If somebody pulled this up for you, you're probably asking a question of the public channel that's easier and faster to figure out by just attempting your idea in-game and looking at the result of that attempt.

eager temple
#

can you please tell me if it works? because i dont want to start my server for that

#

i somtimes write scripts and tets them later when ihave something

misty badge
#

yes that'd work

#

though you probably want a null fallback

eager temple
#

yes ofc

#

thanks