Custom tab complete in argument

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

illusion

Member
May 17, 2019
12
0
0
How to make a tab complete for argument 1/2?
Exemple:

/nick [<tab>]:
send "clear, name, skin, list" to player

/nick skin [<tab>]:
send "name" to player

sorry for bad english, i'm brazilian
 
How to make a tab complete for argument 1/2?
Exemple:

/nick [<tab>]:
send "clear, name, skin, list" to player

/nick skin [<tab>]:
send "name" to player

sorry for bad english, i'm brazilian
Try with:
code_language.skript:
on tab complete for "/nick":
    set {_com::*} to "clear", "name", "skin", and "list":
    loop {_com::*}:
        add loop-value to completions
 
Try with:
code_language.skript:
on tab complete for "/nick":
    set {_com::*} to "clear", "name", "skin", and "list":
    loop {_com::*}:
        add loop-value to completions
[18:57:51 ERROR]: [Skript] can't understand this event: 'on tab complete for "/nick"' (KitPvP.sk, line 88: on tab complete for "/nick":')
 
Try:
code_language.skript:
on command:
    command is "nick"
    add "clear", "skin", "list", "name" to tab completions
[19:10:10 ERROR]: Tab completers can only be accessed from tab complete events. (kitpvp.sk, line 90: add "nome", "limpar", "lista", "skin" to tab completions')
 
Give me your skript, i'll selove this problem and make it for u
[doublepost=1559168249,1559168165][/doublepost]
code_language.skript:
 on tab complete:
    command is "nick"
    add "add", "clear", "skin", "random", "name" to  tab completions
[doublepost=1559168280][/doublepost]My discord _cya#8085
 
My Skript.jar?
Give me your skript, i'll selove this problem and make it for u
[doublepost=1559168249,1559168165][/doublepost]
code_language.skript:
 on tab complete:
    command is "nick"
    add "add", "clear", "skin", "random", "name" to  tab completions
[doublepost=1559168280][/doublepost]My discord _cya#8085
 
Status
Not open for further replies.