#NO VAR HERE
1 messages · Page 1 of 1 (latest)
well then where CAN i use varables
i tried send and broadcast and execute player command and execute console command
Well what do u want to do with that skript
run the command "home %{player.chest.menu.INT}st of {homes.list.%player%::*}%"
So u want a player to teleport to a home?
yes
Well they cant bc they havent chosen one
what
So u want the player to do the command and show the homes?
join gen 1
Or like /home (homes)
Cant
i will screenshare what i have
Is this right or not
a chest menu that goes to a normal ohme
and just do {home::%arg-1%}, no?
that dosent work it gave me an error
trigger:
add arg 1 to {homes.list.%player%::*}
send "%{brand.name}% &aset new home named &6%arg-1%"
command chest-menu:
trigger:
set {player.chest.menu.INT} to 0
set metadata tag "homes" of player to chest inventory with 3 rows named "&ehomes"
loop {homes.list.%player%::*}:
broadcast "metadata"
set slot {player.chest.menu.INT} of metadata tag "homes" of player to diamond named "%loop-value%"
broadcast "slot set"
open (metadata tag "homes" of player) to player
add 1 to {player.chest.menu.INT}
on inventory click:
if event-inventory = (metadata tag "homes" of player):
cancel event
set {player.chest.menu.INT} to 0
loop {homes.list.%player%::*}:
if index of event-slot is {player.chest.menu.INT}:
send "TRUE teleporting %{player.chest.menu.INT}% " to player
execute player command "skbkh %{player.chest.menu.INT}%"
stop
else:
add 1 to {player.chest.menu.INT}
command skbkh <text>:
trigger:
send "transfered. teleporting"
execute player command "home %{player.chest.menu.INT} of {homes.list.%player%::*}%"```
the other error died
.
why is your indentation inconsistent between structures
because i had help from someone else
in the top/bottom commands you indent with 1 space, tab everywhere else
make it consistent
bro dog this is why i only send the bottom thats not the issue
no but you should still fix it
U didnt even send the original /home skript
if i ever do
and i would just set {homes::%player's UUID%::%arg-1%} to player's location
much easier
(when setting it)
do it now and it will fix your other error too
your wip looks garbage
then you just do the same thing
teleport them to that var
i cant because it says no vars
then you dont have to do the whole "home %{player.chest.menu.INT} of {homes.list.%player%::*}%" thing, which i dont even know what youre trying to do
variables can be used there, you just used them in some made up syntax
It doesnt do shi bruh
i give up deleting this and my account
Lmao
its just an alt
K
Leave him alone lol
me agin SO WHY DOSE IT SAY THAT STUPID ERROR FUCK ANYTHING ELSE WHY
and
@haughty gyro @viral haven
still here
still
Ok lmao
Well it doesnt understand what u want to do
make the error go away
its just a name selecter
it dosent sethome yet
but it works elsewhere
actualy it never did work
i dont think
i think i need to read all the fucking docs because they dont serch right
So u want the player to teleport to a home?
no
What do u want it to do lol
i want a name in chat when they click on switch
the name of the diamond they clicked
leme check docs
just because i didnt respond immediately?
its not a thing 😦
so, just to clarify:
- you want to save a player's homes in a list
- you want to open a gui that has a diamond for each home
- when they click on it they are teleported to that home?
I mean there are some bad skripters like me that try to help but make it worse some times but x8ight is very supportive and help many people so no need drama with him
name of event-slot, not clicked item
Dang
Close tho lol
how do i change tag to solved
right click and edit tags
oh i have to go to alt agin
script done

