1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with variables

Discussion in 'Skript' started by MasterOfHardcore, Apr 12, 2020.

Thread Status:
Not open for further replies.
  1. MasterOfHardcore

    Joined:
    Apr 12, 2020
    Messages:
    1
    Likes Received:
    0
    Hi, I want to make sellchest skript with variables but don't know how to make for more placed chest to work the same way as first one.
    So I can do like this:
    on place of chest:
    set {location::%player%} to location of event-block

    but how can I make like for player to place maximum 5 of them? And all variables to work for their chests?
     
  2. krainser

    krainser Member

    Joined:
    Jan 27, 2017
    Messages:
    60
    Likes Received:
    3
    are you trying to put multivariables inside a multivariable? no prob! use this {location::%player%::%location of event-block%}
    and this to count the amount of placed chest
    Code (Text):
    1. loop {location::%player%::*}:
    2.     add 1 to {_amountOfChest}
    3. if {_amountOfChest} is more than 5:
    4. #do stuff
     
Thread Status:
Not open for further replies.

Share This Page

Loading...