Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You can actually do this with normal Skript if you know the slot index #169

Open
Ruk789 opened this issue Aug 4, 2023 · 6 comments
Open

Comments

@Ruk789
Copy link

Ruk789 commented Aug 4, 2023

How can I obtain the icon with ID x in the GUI? And display the lore of each icon

@APickledWalrus
Copy link
Owner

Hmm I don't believe there is a direct way to do this. You could read the characters of the shape of the GUI if you need to dynamically determine what indexes are valid

@Ruk789
Copy link
Author

Ruk789 commented Aug 4, 2023

How can I obtain slots for ID? By the way, when will version 1.4 be released?

@APickledWalrus
Copy link
Owner

You would have to create your own solution. Something like

set {_chars::*} to shape of {_gui} split at ""
loop {_chara::*}:
  if loop-value is "x":
    set {_item} to slot {_index} of {_gui}
  add 1 to {_index}

also, I unfortunately don't have much to share regarding 1.4 at the moment (not that there has been much progress)

@Ruk789
Copy link
Author

Ruk789 commented Aug 4, 2023

Thank you for your answer! But I am setting the gui slot to a removable item. Please note that the item is not an air and I cannot replace the removable item by dragging the items in my backpack. Is this a bug?

@APickledWalrus
Copy link
Owner

APickledWalrus commented Aug 4, 2023

You should be allowed to do an inventory drag as long as all of the slots are removable. It could that something is wrong if it's not letting you.

@Ruk789
Copy link
Author

Ruk789 commented Aug 4, 2023

create a gui with virtual chest inventory with 3 rows named "":

make gui 10 with removable lever:
			
    send " OK! "

open last gui to player

This does not allow for dragging items for replacement, but it will also prompt OK! This information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants