Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

Include

From AGEWiki

Jump to: navigation, search

Include

Syntax  

Include = <Script_filename>

Description

Adds the text of the specified file to the current file during Scenario compiling and Event file execution.

This command allows easy sharing of common code between different scenarios and events.
The "included" file can be either an "Event Script" file found in folder \Events (file suffix .scr)
:or
an "includes" file found in folder \Includes (file suffix .inc)

The contents of these files must be in Script Command format, usually generated by the csv splitter

Example  

Include = CitiesCampaign.inc

Inserts and processes the contents of the CitiesCampaign.inc file during the Scenario compilation  

Include = Balances.sct

Processes the events in the Balances.sct event file.

See Spreadsheet of examples

 

Parameters

<Script_filename>

Name of a valid file containing Script Commands

Forums