Solved All List elements

  • 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.

Narek7445

Member
May 12, 2019
4
0
1
27
Guys, i want to make artifacts system. and i want to make /artifacts command that shows you all elements of {artifacts::*.%player%}
How i can do that?
 
To loop over all the values of {artifacts::*.%player%} you would write: loop {artifacts::*.%player%}:

To message the player what each artifact is, you would write: message "%loop-value%" in the inside of the previously mentioned loop. If you instead wanted to display all the items in a GUI, you need to create a virtual inventory. Let me know if you need more help.
 
To loop over all the values of {artifacts::*.%player%} you would write: loop {artifacts::*.%player%}:

To message the player what each artifact is, you would write: message "%loop-value%" in the inside of the previously mentioned loop. If you instead wanted to display all the items in a GUI, you need to create a virtual inventory. Let me know if you need more help.
Thanks
 
Status
Not open for further replies.