SRL Archive - Help and Support

Including your own scar files


Bionicle

2010-02-23 20:07:07

Is it possible to include a file by the script path of the script that is open? like i know you can use file functions using ScriptPath + '\blah\blah.scar', but is there any way to do that to include a file?
Like i know it doesn't work and its a stupid example, but just to show you what I mean:
{.include} + ScriptPath + {\Filename\File.scar}
Somthin like that..idk

Wanted

2010-02-23 20:52:16

From: bionicle1800
Is it possible to include a file by the script path of the script that is open? like i know you can use file functions using ScriptPath + '\blah\blah.scar', but is there any way to do that to include a file?
Like i know it doesn't work and its a stupid example, but just to show you what I mean:
{.include} + ScriptPath + {\Filename\File.scar}
Somthin like that..idk


If it's in the same folder like \Scripts\TehScript.scar and \scripts\yourinclude.scar then you can just use {.Include YourInclude.SCAR} but if it's in like \scripts\includes\yourinclude.scar use like {.Include ..\Includes\yourinclude.scar} you'll need another ..\ for every parent folder.