User Login
Name
Password
Site Contents
News
About
Download
Scripts
Tutorials
Register
Support
FAQ
Script Reference
New User


Contact Me
Xide
Online Scripting Reference

INCLUDE


Usage:

INCLUDE scriptname


Description:

This macro will include the code from another script or pack2 include file during compilation.


Example:

include "includemove"


Xide - 17 February 2004 at 2:52 AM  (EST)
When a script is 'included' its code is essentially dumped straight into the file that includes it, each of its variables gets prefixed with the name of the included file, i.e. $test in include.ts would become $include~test ...

The reason for this is to allow includes to be able to have their own internal variables without having to worry about their names clashing with the scripts that include them.

The variables within the main script (the one that includes everything) don't have a prefix. You can access them from within the included scripts using a blank namespace, such as $~test.




Return to item listing