Please freaking help with list variables and items.

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

King_Creeperz

Member
Oct 6, 2020
45
0
8
So basically me wanted to make a zombie survival thing. And I wanted to make it so it gives every item in the queue items, but instead of giving items to the players, it adds it to the variable. I tried EVERYTHING. I spent over half a hour trying to figure out it. I really want to actually like make the gamemode but of course this stupid thing denies me for GIVING A ITEM. Please fix this as fast as you can. Thanks!
Code:
give {zplayers::*} 5 emerald named "&a&lEmerald Coin" with lore "&7Use this in the shop for better gear"
(This is a example I didn't try only one thing)
 
Maybe you can try this:
Code:
add uuid of player to {_zplayers::*}
set {_i} to emerald named "&a&lEmerald Coin" with lore "&7Use this in the shop for better gear"
loop {_zplayers::*}:    
    set {_p} to loop-value parsed as player
    give 5 of {_i} to {_p}
Make your skript more readable and cost less performance perhaps.
 
Status
Not open for further replies.