Solved Lists as Tab complete

  • 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 community!

    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!

JuliHatSpaB

Member
Aug 18, 2023
47
1
8
Hello,
I am trying to make a /home skript. So now I'm trying to use the list of homes ({homes::%uuid of player%}) as a tab complete for /home. Can anyone help me diong this?
 
{homes::%uuid of player%} is not a list of homes
assuming you meant {homes::%uuid of player%::*}
Code:
on tab complete of "/home":
    set tab completions for position 1 to {homes::%player's uuid%::*}

 
{homes::%uuid of player%} is not a list of homes
assuming you meant {homes::%uuid of player%::*}
Code:
on tab complete of "/home":
    set tab completions for position 1 to {homes::%player's uuid%::*}
Code:
set {home.%arg-1%.%uuid of player%} to location of player%
add arg-1 to {homes::%uuid of player&%}
This is a part of my /sethome skript, so why can't I just do:
Code:
on tab complete for "/home":
    set tab completions for position 1 to {homes::%uuid of player%}
?
 
you should instead save the home in {home::%player's uuid%::%arg-1%} and set tab completions to indices of {home::%player's uuid%::*}