Amount of Item

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

Status
Not open for further replies.

rustedst

Active Member
Apr 24, 2020
97
4
8
Istanbul, Turkey
I somehow have to do something like this:
Code:
on inventory click: #example inventory event
    cancel event
    set {_count} to 0
    loop 5 times:
        add slot {_count} of event-inventory to {example::*}
        add 1 to {_count}
on inventory right click: #example inventory event, event isn't necessary here
    loop {example::*}:
        #here, I want to check if player has enough items and take those items like "remove loop-value from player's inventory" or smh like that. How do I define amount of items in loop-value?
Thanks for help.
 
I'm not quite sure what you want done, but I figured it's something like this
Code:
if loop-value > #insert your number/value here
 
  • Like
Reactions: rustedst
Status
Not open for further replies.