Solved different variables in list

  • 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 our Wiki for downloads and any other information about Skript!

Status
Not open for further replies.

Kolsenstein

Member
Jul 1, 2021
4
0
1
19
I want to add player name and random number to a list, but idk how to add more then one variable into a list at a time. I want it to look like this when you use /contacts:
 

Attachments

  • image_2021-07-17_192707.png
    image_2021-07-17_192707.png
    7 KB · Views: 75
try this
Code:
command /addcontact [<player>]:
  trigger:
    add 1 to {contacts::num::%player's uuid%}
    set {contacts::contact::%player's uuid%::uuid::%{contacts::num::%player's uuid%}%} to uuid of arg-1
    set {contacts::contant::%player's uuid%::number::%{contacts::num::%player's uuid%}%} to YOUR NUMBER THING HERE

on join:
  set {contacts::lastname::%uuid of player%} to "%player%"

command /contacts:
  trigger:
    send "Your contacts:"
    set {_num} to 0
    loop {contacts::contant::%player's uuid%::*}:
      add 1 to {_num}
      send "%{contacts::lastname::%{contacts::contact::%player's uuid%::uuid::%{_num}%}%}% - %{contacts::contact::%player's uuid%::number::%{_num}%}%"
    send "You have a total of %{contacts::num::%player's uuid%}% contacts."

And BTW. this is the wrong section. With this system the numbers are not consistent, if you want a whole phone number system go to script requests.
 
Status
Not open for further replies.