#NO VAR HERE

1 messages · Page 1 of 1 (latest)

haughty gyro
#

u cant use variables there

#

easy

spare verge
#

well then where CAN i use varables

#

i tried send and broadcast and execute player command and execute console command

haughty gyro
#

Well what do u want to do with that skript

spare verge
#

run the command "home %{player.chest.menu.INT}st of {homes.list.%player%::*}%"

haughty gyro
#

So u want a player to teleport to a home?

spare verge
#

yes

haughty gyro
#

Well they cant bc they havent chosen one

spare verge
#

what

haughty gyro
#

So u want the player to do the command and show the homes?

spare verge
#

join gen 1

haughty gyro
#

Or like /home (homes)

haughty gyro
spare verge
#

i will screenshare what i have

haughty gyro
spare verge
#

1 sec

#

thats what i have done

viral haven
#

what is this

#

why are you using essentials home?

spare verge
#

a chest menu that goes to a normal ohme

viral haven
#

and just do {home::%arg-1%}, no?

spare verge
#

that dosent work it gave me an error

viral haven
#

then you did it wrong

spare verge
#
 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%::*}%"```
viral haven
#

code blocks.`

#

```code```

spare verge
#

the other error died

viral haven
#

3 backticks, not 1

spare verge
#

i dident save it

#

where

viral haven
#

why is your indentation inconsistent between structures

spare verge
#

because i had help from someone else

viral haven
#

in the top/bottom commands you indent with 1 space, tab everywhere else

viral haven
spare verge
#

bro dog this is why i only send the bottom thats not the issue

viral haven
#

no but you should still fix it

spare verge
#

ik

#

once i get it working

#

anything working

#

ever

haughty gyro
#

U didnt even send the original /home skript

spare verge
#

if i ever do

viral haven
#

and i would just set {homes::%player's UUID%::%arg-1%} to player's location

#

much easier

#

(when setting it)

spare verge
#

I KNOW THIS IS LETARLY JUST A TEST PROJECT

#

I CAN FIX IT LATER

#

WIP

viral haven
#

do it now and it will fix your other error too

spare verge
#

your wip looks garbage

viral haven
#

teleport them to that var

spare verge
viral haven
#

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

viral haven
haughty gyro
#

It doesnt do shi bruh

spare verge
#

i give up deleting this and my account

haughty gyro
#

Lmao

spare verge
#

its just an alt

haughty gyro
#

K

viral haven
#

still

#

if you give up youll never make progress

haughty gyro
#

Leave him alone lol

cobalt basin
#

me agin SO WHY DOSE IT SAY THAT STUPID ERROR FUCK ANYTHING ELSE WHY

cobalt basin
#

@haughty gyro @viral haven

#

still here

#

still

haughty gyro
#

Ok lmao

cobalt basin
#

came back on my main

#

x8 has me blocked

haughty gyro
#

Well it doesnt understand what u want to do

cobalt basin
#

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

haughty gyro
#

I mean i cant help bc i cant explain

#

Ill try my best

cobalt basin
#

i think i need to read all the fucking docs because they dont serch right

haughty gyro
#

So u want the player to teleport to a home?

cobalt basin
#

no

haughty gyro
#

What do u want it to do lol

cobalt basin
#

i want a name in chat when they click on switch

haughty gyro
#

U want a neqme in chat when they click on q swirch

#

A switch*

cobalt basin
#

the name of the diamond they clicked

haughty gyro
#

So why the /home command there lol

#

But ok

cobalt basin
#

witch is based of a list

#

the list is what the blocks are named

haughty gyro
#

Try
Send “%name of clicked item%” to player

#

Idk

#

It might work lmao

cobalt basin
#

leme check docs

haughty gyro
#

Ye check

#

I cant really so yeah

viral haven
cobalt basin
#

nahh because most ppl do

#

for me rambling and being an stupid ass

cobalt basin
viral haven
#

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?
haughty gyro
#

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

viral haven
haughty gyro
#

Dang

cobalt basin
#

ohhh

#

ty

#

thats all i need

haughty gyro
#

Close tho lol

cobalt basin
#

how do i change tag to solved

viral haven
#

right click and edit tags

cobalt basin
#

oh i have to go to alt agin

cobalt basin
#

script done