#help with gui
1 messages · Page 1 of 1 (latest)
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
It could be that you spelled " command " wrong
and forgot a colon
It should be " command /headgui: "
ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
but
when i do /headgui
it doesn't work
although it says its alright
the skript
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
so what doesnt work
set a metadata tag is wrong syntax
and youre specifying who to give the skull to twice
where twice
read your own code
so how do i fix the code
fix syntax remove to player
i can't understant anythig why am i so stupid
google metadata
google metadata
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
google metadata skript
its really not complicated
so i am just stupid
yes
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
its not that hard to find out
for me its hard ok please just tell me
lol
instead of wasting your time asking for help. you might find it faster actaully trying
just tell me
i tired
tried
alot
try harder. because people here cant tell you the answer for everything
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
i dont remember calling you toxic? i just said i dont want more of them
lol
i think i found out the problem. you are not reading things properly. thats maybe why you cant figure out the issue
ok
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
skript should not be that hard to understand its basicly just english words put togheter to do something
So what do you not understand?
everything
you have to start somewhere
i am trying
is this your first time touching skript?
no
what have you made earlier?
more simple stuff
was that also confusing?
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
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
ok
and you can do things like inventory click/open/exit ect. events
ok
to cancel or do something when that events gets called
and thats the basic of a chest gui
ok
what do you mean by called
when someone clicks in the gui the events gets called"executed"
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?
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
so why is the skript doesn't work
show error, or whats not working
well the on inventory click does not have any error
dont need to have set A metadata tag ..., remove the A
why is line 3 doesn't work?
i said remove a
and on line 4 its of player
so what is the proplem with that
yooooo
so the whole problem was the a
just the word
a
yo listen NewToSkbibtPLsHelp you helped me alot
tx
yo
yw
TY omg TYSM
yw
yo too