Solved Variable Problem

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

Yaşarhan

Active Member
May 16, 2020
87
6
8
23
Turkey Istanbul
Code:
format slot 0 of player with {amount.%{_seller}%} {itemtype.%{_seller}%} named "Good" with lore "Good" to close then run [execute player command "/good"]

I think it is the same problem with the other thread problem, there is no problem with the variables, while creating a chest gui, I want to determine the item type and amount values with the variable.

How can I do that ?
 
I suggest you use TuSKe and SkQuery together, they can be pretty good I found, So you dont have to make so much commands
Example:
Code:
format gui slot 0 of player with {amount.%{_seller}%} {itemtype.%{_seller}%} named "Good" with lore "Good" to close then run:
make player command "/good"

This isnt a great example but Its good for making gui's in gui's
 
I suggest you use TuSKe and SkQuery together, they can be pretty good I found, So you dont have to make so much commands
Example:
Code:
format gui slot 0 of player with {amount.%{_seller}%} {itemtype.%{_seller}%} named "Good" with lore "Good" to close then run:
make player command "/good"

This isnt a great example but Its good for making gui's in gui's

Thanks, i fixed the problem, i will share it soon.
[doublepost=1611932723,1611915114][/doublepost]I solved the problem.

Code:
set {_type} to {itemtype.%player%} named "%{itemname.%player%}%" with lore "Lore"
format slot 0 of player with {itemamount.%player%} of {_type} to close
 
Status
Not open for further replies.