Converting Yaml value to Items

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

stickynote

Member
May 24, 2019
2
0
0
25
on invetory close i save the items From the GUI to Yaml Value
Here is the Code:
on inventory close:
if inventory name of player's current inventory contains "&d&l&nGUI":
loop 54 times:
set {vaults.item.%{vaults.open.%player%}%.%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
give player {vaults.item.%{vaults.open.%player%}%.%player%::%loop-number - 1%}
file "plugins/Owen/GUI.yml" doesn't exists:
repuska create file "plugins/Owen/GUI.yml"
set yaml value "GUI.Slot%loop-number%" from file "plugins/Owen/GUI.yml" to {vaults.item.%{vaults.open.%player%}%.%player%::%loop-number - 1%}

and the out put is like this
upload_2019-5-24_9-44-58.png


how can i turn it back to an item and put it in an inventory?
 
Probably using the same expression again (the yaml value expression)
 
Set a local variable to the expression, and broadcast that. Then send what it outputs here
 
Status
Not open for further replies.