Help with variables

  • 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.
Apr 12, 2020
1
0
0
24
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?
 
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:
loop {location::%player%::*}:
    add 1 to {_amountOfChest}
if {_amountOfChest} is more than 5:
#do stuff
 
Status
Not open for further replies.