HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Imported Script

11-21-2008, 09:58 PM#1
XieLong
Hi Guys

I would like to source some JASS script out in an external file, which I can add via the import editor.
The problem is that WC3 don't import a script file from the map archive to the maps script but that would be exactly what I want it to do.
I know that there's the following command in
Collapse vJASS:
//! import "Script.j"
But with this code I allways would have to give 2 files (the map and the external script).
The better method take the external script directly out of the map archive and include it to the maps script.
For this, I tried to export the map files with
Collapse vJASS:
//! external FileExporter
But with this command I allways extract ALL files - and as per PitzerMikes information is there no way to export a single file with an //! external call.

I don't know how to solve this problem - so I would be very glad about your solution proposals :)
11-21-2008, 11:15 PM#2
Vexorian
You cannot use //! import on stuff in the import manager, and it would be hard for //! external to work since it is evaluated after vJass is compiled.

My tip: Just use the file outside of WE, it is easier, yes, really. Much easier. You may still distribute your map with the files imported on it later.