How to reload or unload scripts from other folder

  • 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 comminuty!

    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!

Status
Not open for further replies.

Wolvingdark

Member
Mar 16, 2017
2
0
0
26
Hello, I'm trying to use the Effect 'load scripts from "folder" ' fom the addon WildSkript and I want to know if there is a way to unload or reload them. Cuz when I reload the script where the Effect is in I get the error that the skript from the loaded folder exist already.

Thanks!
 
Hello, I'm trying to use the Effect 'load scripts from "folder" ' fom the addon WildSkript and I want to know if there is a way to unload or reload them. Cuz when I reload the script where the Effect is in I get the error that the skript from the loaded folder exist already.

Thanks!

I wasn't able to get WildSkript's 'load skripts from "folder" ' to work either, it may be a issue with WildSkript, or we both may be calling the expression incorrectly.

In addition, I wasn't able to get skUtilities' expression to work either.

A, slightly messy, workaround could be to do it manually via the console:

code_language.skript:
command /testreload:
    trigger:
        set {_scripts::*} to files in "plugins/Skript/scripts/test" #WildSkript
        loop {_scripts::*}:
            execute console command "skript reload test/%loop-value%"
 
I wasn't able to get WildSkript's 'load skripts from "folder" ' to work either, it may be a issue with WildSkript, or we both may be calling the expression incorrectly.

In addition, I wasn't able to get skUtilities' expression to work either.

A, slightly messy, workaround could be to do it manually via the console:

code_language.skript:
command /testreload:
    trigger:
        set {_scripts::*} to files in "plugins/Skript/scripts/test" #WildSkript
        loop {_scripts::*}:
            execute console command "skript reload test/%loop-value%"
code_language.skript:
execute console command "sk reload test/"
 
Status
Not open for further replies.