Solved Question » Skript

  • 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.
Dec 31, 2017
26
1
0
24
how can I load another script from another folder in my script.
It was something like ...
load script from file "folder/scriptname.sk"
But I'm not sure.

 
Is it in the Skript/scripts folder (or within a folder there)?
 
Then you will have to copy it from that folder to the scripts folder
 
Then you will have to copy it from that folder to the scripts folder
you do not understand me, I mean I want to upload to script inside my script to be able to use everything that script contains in my script
I mean, if I create a script in a folder called
"plugins/hoocker/skname.sk"
I want this to only load if an option is activated..
since it is something optional, that if the user wants it, he puts it and if not, then no.
example:
code_language.skript:
options:
    #enable hook with advancedsettings
    filename: AdvSettings
    #without .sk
    #folder location
    folder: plugins/AdvS
    
    #enable hook system.
    enabled: true

on load:
    if {@enabled} is true:
        load script from file "{@folder}/{@filename}.sk"
[doublepost=1544989923,1544989856][/doublepost]
you do not understand me, I mean I want to upload to script inside my script to be able to use everything that script contains in my script
I mean, if I create a script in a folder called
"plugins/hoocker/skname.sk"
I want this to only load if an option is activated..
since it is something optional, that if the user wants it, he puts it and if not, then no.
example:
code_language.skript:
options:
    #enable hook with advancedsettings
    filename: AdvSettings
    #without .sk
    #folder location
    folder: plugins/AdvS
   
    #enable hook system.
    enabled: true

on load:
    if {@enabled} is true:
        load script from file "{@folder}/{@filename}.sk"

since then errors are leaked and that script would be taken as dependency.
this is my Hook system idea.
 
Then use Skript to copy the file (SkUtilities or skript-mirror). There is no way to load scripts from other folders.
 
Then use Skript to copy the file (SkUtilities or skript-mirror). There is no way to load scripts from other folders.
if there is a bro, I tell you so xD, that I'm from the old school of skript, that's why I tell you, I've used it before but I do not remember what it was like.
 
Status
Not open for further replies.