#help with gui

1 messages · Page 1 of 1 (latest)

swift marsh
#

my guess is that you did not follow it 100%, take 1 more look at the video and then at your code

fluid spade
#

it looks exactly like in the video

#

could you help me

swift marsh
#

all i can help with is to say take a good look at your code. i dont want to tell you exactly whats wrong because then you wont learn how to find errors

weary crescent
#

It could be that you spelled " command " wrong

#

and forgot a colon

#

It should be " command /headgui: "

fluid spade
#

ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

#

but

#

when i do /headgui

#

it doesn't work

#

although it says its alright

#

the skript

fluid spade
#

yoo

#

i can't see

#

the head

#

why?

#

i tried doing it again still doesn't work

#
command /headgui:
    trigger:
        set metadata tag "head" of player to chest inventory with 3 rows named "head"
        set slot 13 of metadata tag "head" of player to player's skull named "drop head"
        open (metadata tag "head" fo player) to player

on inventory click:
    if event-inventory = (metadata tag "head" of player):
        cancel event
        if index of event-slot is 13
            give 1 of player's skull to player 
onyx quest
#

so what doesnt work

fluid spade
#

it showes 2 errors

onyx quest
#

set a metadata tag is wrong syntax

#

and youre specifying who to give the skull to twice

fluid spade
#

where twice

onyx quest
#

read your own code

fluid spade
#

i read it

#

just hard to understand

onyx quest
#

you are literally looking for one work twice in one line

#

and ive told you which line

fluid spade
#

so how do i fix the code

onyx quest
#

fix syntax remove to player

fluid spade
#

ok

#

thx

#

one error left

onyx quest
#

google metadata

#

fix syntax

fluid spade
#

i can't understant anythig why am i so stupid

onyx quest
#

google metadata

fluid spade
#

i googled

#

please tell meeee

onyx quest
#

google metadata

fluid spade
#

I GOOGLEDDDD

#

please i hope i am not asking for a lot just explain or tell me what do to so i will learn coz on google i can't learn

#

here proof

#

see

#

i remove "to player"

#

still one error left

onyx quest
#

google metadata skript

fluid spade
#

ohhh man

#

this is so complicated to mee

onyx quest
#

its really not complicated

fluid spade
#

so i am just stupid

onyx quest
#

yes

fluid spade
#

emotional damge

#

please just tell me

#

what to do

#

just tell me what to write

#

not on google

#

on the skript

#

gab

#

its not that hard to tell me

onyx quest
#

its not that hard to find out

fluid spade
#

i already have a headache

#

please just tell me

fluid spade
swift marsh
#

lol

fluid spade
#

yoo

#

help meee

swift marsh
#

instead of wasting your time asking for help. you might find it faster actaully trying

fluid spade
#

just tell me

swift marsh
#

try harder. because people here cant tell you the answer for everything

fluid spade
#

i reworte the whole thing 6 times i read all that metadata

#

just one thing

swift marsh
#

there is enough of the toxic 12 yearolds that is expecting a spoonfeed here in this discord. and i dont want more. so please try to find the answer yourself

fluid spade
#

ok boss

#

first i am not 12 years old and i am not toxic well i think i am not toxic

swift marsh
#

i dont remember calling you toxic? i just said i dont want more of them

fluid spade
swift marsh
fluid spade
#

what do you mean?

#

I've been reading stuff for like 2 hours and every time i read i am just more confused

#

even more than 2

#

and now i am just lost

swift marsh
#

skript should not be that hard to understand its basicly just english words put togheter to do something

#

So what do you not understand?

fluid spade
#

everything

swift marsh
#

you have to start somewhere

fluid spade
#

i am trying

swift marsh
#

is this your first time touching skript?

fluid spade
#

no

swift marsh
#

what have you made earlier?

fluid spade
#

more simple stuff

swift marsh
#

was that also confusing?

fluid spade
#

not like this skript

#

newtoskbib

#

can you explain to me this skript?

#
command /headgui:
    trigger:
        set a metadata tag "headgui" of player to chest inventory with 3 rows named "&6head gui"
        set slot 13 of metadata tag "headgui" to player's skull named "&6%player%s head" with lore "&7&lclick the head to get your skull"
        open (metadata tag "headgui" of player) to player

on inventory click:
    if event-inventory = (metadata tag "headgui" of player):
        cancel event
        if index of event-slot is 13:
            give player 1 of player's skull
swift marsh
#

so a chest gui is basicly setting a metadata tag to a chest gui with some rows and the name of the chest, then you open the gui for the player easy

#

then you can do more to it like setting a slot to any item

fluid spade
#

ok

swift marsh
#

and you can do things like inventory click/open/exit ect. events

fluid spade
#

ok

swift marsh
#

to cancel or do something when that events gets called

#

and thats the basic of a chest gui

fluid spade
#

ok

fluid spade
swift marsh
#

when someone clicks in the gui the events gets called"executed"

fluid spade
#

so first line is the command
then on line 3 it sets a chest gui with 3 rows named "headgui"
then on slot 13 of the metadata tag "headgui" the chest gui with 3 rows
it will place a head of the player that did the command
and then open that gui to the player
and then on inventory click.... from here i don't understant

#

please tell me if i am correct?

swift marsh
#

so the on inventory click: event will be executed each time someone clicks in any gui. then on the next line you will check what chest gui you have open like the metadata tag. so if the player has the metadata tag "headgui" that inv click is true so any code under will be runned

fluid spade
#

so why is the skript doesn't work

swift marsh
#

show error, or whats not working

fluid spade
swift marsh
#

well the on inventory click does not have any error

swift marsh
# fluid spade

dont need to have set A metadata tag ..., remove the A

fluid spade
#

why is line 3 doesn't work?

swift marsh
#

i said remove a

swift marsh
fluid spade
#

so what is the proplem with that

swift marsh
#

of player

#

add it

fluid spade
#

yooooo

#

so the whole problem was the a

#

just the word

#

a

#

yo listen NewToSkbibtPLsHelp you helped me alot

#

tx

#

yo

onyx quest
#

yw

swift marsh
onyx quest
#

yw

fluid spade