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.
#Alternative Ways to Store Location Variables (that work in non-main worlds)
1 messages · Page 1 of 1 (latest)
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
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
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
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
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)
@spare jetty
You can also store information in files and such
i thought locations could be saved maybe im being goofy
they can.
Thanks I will try both of your solutions
Github Post on the Problem: https://github.com/SkriptLang/Skript/issues/6445
GitHub
[Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/ [Skript] Skript'...
If you dont trust the link I can send screenshots
why wouldn't we trust github?
yeah thats what i was thinking
links can be easily faked and are in discord
it could have been gtihub which would likely mean it was a virus
good thing discord pops up saying "Do you trust this link?" and directly shows the actual url
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
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
is there any way to take this info from the file via skript or would that mean I would need to use normal plugins (bukit)
Probably skUtilities