Alias File Format
The "Alias File" sets up a group of "Aliases" for use in Scripts in place of hard number values. They are loaded by an Alias Def
The following is a detailed description of each of the entries in an
Alias File. For a more practical view, see the example below
The number of Aliases defined in this file is calculated automatically when the file is read. Each Alias entry is made up of two lines:
- Alias Name
The name of the Alias; with the exception of the leading underscore ("_"), this is the exact text that is used in Scripts to represent the given number value (If "Alias Name" reads "Alias", then it would be called on from other scripts by using the text "_Alias")
Note: No Alias Names may contain the following characters: '#', ':', '.', '@', '~', ';'
Note: Alias Names that are meant to be used in Keyword Expressions can not contain mathematical or comparison operators
- Alias Value
This is the value that HCGE should interpret the given Alias Name as standing in for (If the Alias Name is "Alias", and this value is "2", then any time the text "_Alias" is read from a script, HCGE will interpret it as "2")
Example Font File
The following is an example setup for an Alias File to better demonstrate how to
put the above information into practice. Use the same format and fill in the appropriate
values given the information contained throughout the various documents to create Aliases for use in HCGE Game scripts.
; Example Alias File ;
:True ;When the text "_True" is encountered in any script will be interpreted as the value "1"
:False ;When the text "_False" is encountered in any script will be interpreted as the value "0"
:Value3 ;When the text "_Value3" is encountered in any script will be interpreted as the value "3"
:AnotherAlias ;When the text "_AnotherAlias" is encountered in any script will be interpreted as the value "42"