Solved sorting skript..

  • 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.
Code:
loop {_items::*}:
  if lore of loop-value is not set:
    add 1 to {_count}
    delete {_items::%loop-index%}
Thank you, but sorry I don't know good at the loop. I am writing code to sell raw iron, so I created a variable named "{_i}" in the function and assigned it raw iron. What exactly do I put in {_items::*} to make it only delete raw irons without lore?
 
Thank you, but sorry I don't know good at the loop. I am writing code to sell raw iron, so I created a variable named "{_i}" in the function and assigned it raw iron. What exactly do I put in {_items::*} to make it only delete raw irons without lore?
{_items::*} is array with items what you want to sort
also this can be something like this:
Code:
loop items in inventory of player:
  if lore of loop-value is not set:
    add 1 to {_count}
    remove loop-value from inventory of player
 
  • Like
Reactions: BluePenguin_Won
{_items::*} is array with items what you want to sort
also this can be something like this:
Code:
loop items in inventory of player:
  if lore of loop-value is not set:
    add 1 to {_count}
    remove loop-value from inventory of player
It counts 1 slot to 1 item. It means skript counts 1 stack of item to 1.
I want to make it to count 1 stack of item to 64.
 
Status
Not open for further replies.