Is it possible to do this?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Feb 25, 2023
2
0
1
Is it possible to do it so when there is multiple skripts with the same code but different name only 1 of them work and if the working skript gets deleted it makes another skript with the same code work
 
Is it possible to do it so when there is multiple skripts with the same code but different name only 1 of them work and if the working skript gets deleted it makes another skript with the same code work

Hi, Assuming i am understanding you correct you are tying to basically backup your skript files with multiple versions of them and only one set is active at a time? It's a hassle and easier to just auto backup with your host or on your pc, but if you want to do it. It can be done, firstly create your multiple files. Disable all of them by adding "--" before the name (DO NOT add the quotes). after that you can setup a snippet of code with skript-yml or json or whatever. I recommend Yml or MySQL for this. make it check if the specific file your looking for is loaded, and if not make it loop all files and remove the "--" Infront of the file name.


Please not i am not sure if skript-yml can edit file names. if it can not, in this case you will simply just use skutilites, skript-json or MYSQL

Here are a few useful links
Skript-yml Guide
Skript-yml Github Wiki
Skript-Json Github Wiki
Skript Hub Tutorials