#Alternative Ways to Store Location Variables (that work in non-main worlds)

1 messages · Page 1 of 1 (latest)

spare jetty
#

As it is when skript location variables load on startup if the world does not exist then the location variables just delete themselves. So I need a another way to store locations after restarts. I would like to find another way that is not looping all blocks in the world as my world I am using is massive so will cause it to be laggy or take forever.

ionic ledge
#

can see if theres an event for when a world loads

#

just save them then

spare jetty
#

sorry I was not clear I meant that when skript loads the first time it does not detect non-primary worlds so deletes so variables making it not possible to save these variables as locations

ionic ledge
#

yeah

#

so save them when the world is loaded

spare jetty
#

I am sorry I dont think I understand your answer. The problem is not that they dont save its that when the server restarts they delete themselves.

#

its like a {-test} variable

#

instead of a normal one

marble radish
#

variables that start with - aren't saved

#

same as _

quasi reef
#

The difference is that when you use _ it deletes at the end of the section, but when you use - it deletes when the skript disables

spare jetty
#

yes ik I am saying that location variables saving from non-primary worlds (like if u have 2 worlds) do not save just like variables with dashes dont

#

so I need another way to save locations

marble radish
#

you can still use variables, just use the world as the index and set the value as the location: set {locations::spawn::world_nether} to location(x, y, z)

solemn stone
#

@spare jetty

#

You can also store information in files and such

#

i thought locations could be saved maybe im being goofy

marble radish
#

they can.

spare jetty
#

Thanks I will try both of your solutions

spare jetty
#

If you dont trust the link I can send screenshots

marble radish
#

why wouldn't we trust github?

solemn stone
#

yeah thats what i was thinking

spare jetty
#

links can be easily faked and are in discord

#

it could have been gtihub which would likely mean it was a virus

ionic ledge
#

good thing discord pops up saying "Do you trust this link?" and directly shows the actual url

marble radish
#

sorry, caps lock was on for some reason.
But I was saying hovering over the link for a few seconds shows where the actual link goes to

spare jetty
#

ok

#

you guys seem to know what you are doing but I wanted to help for others who do not

#

it seems it worked out though

spare jetty
quasi reef
#

Probably skUtilities