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

(Difference between revisions)
Jump to: navigation, search
(Created page with '{{ scriptcommand | name =Include | type = | cat = | syntax = <Script_filename> | description = Adds the text of the specified file to the current file during Scenario compiling a…')
m
 
Line 16: Line 16:
| example2-description = Processes the events in the ''Balances.sct'' event file.
| example2-description = Processes the events in the ''Balances.sct'' event file.
-
:See [[media:Wiki_Example_Setup.xls|Spreadsheet Example]]
+
See [[media:WIki_Example_Setup.xls|Spreadsheet of examples]]  
| param1 =<Script_filename>
| param1 =<Script_filename>
| param1desc = Name of a valid file containing Script Commands
| param1desc = Name of a valid file containing Script Commands

Latest revision as of 17:38, 4 May 2010

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