number extensions
From Wiki
m |
|||
Line 5: | Line 5: | ||
This section is available since [[SomEx|1.1.2.1]]. Refer to [[SomEx/list of numbers]]. | This section is available since [[SomEx|1.1.2.1]]. Refer to [[SomEx/list of numbers]]. | ||
− | Extensions in this section take the form of custom | + | Extensions in this section take the form of custom [[#numbers]] which can then be used to assign values to any extensions that accept a ''number''. Typically such extensions end in _factor or _multiplier. If their numbers accept input parameters they end in _quantifier. An extension that ends in _identifier accepts a positive whole 24bit number or a packed series of numbers setup with [[SomEx/list_of_numbers#id|id]]. Such extensions may or may not accept input parameters. |
The name of an extension in this section is limited to a 30 character name, a subscript in the range of [0-65534], and a 30 character label, all separated by underscores (_). A name is required. If the subscript is unspecified then 0 is assumed. Labels cannot include equal signs (=) and cannot be applied when the subscript is omitted, as the subscript separates the name from the label. | The name of an extension in this section is limited to a 30 character name, a subscript in the range of [0-65534], and a 30 character label, all separated by underscores (_). A name is required. If the subscript is unspecified then 0 is assumed. Labels cannot include equal signs (=) and cannot be applied when the subscript is omitted, as the subscript separates the name from the label. |
Revision as of 09:49, 31 July 2013
! |
Transcluded by Sword of Moonlight Extension Library / list of extensions. |
This section is available since 1.1.2.1. Refer to SomEx / list of numbers.
Extensions in this section take the form of custom #numbers which can then be used to assign values to any extensions that accept a number. Typically such extensions end in _factor or _multiplier. If their numbers accept input parameters they end in _quantifier. An extension that ends in _identifier accepts a positive whole 24bit number or a packed series of numbers setup with id. Such extensions may or may not accept input parameters.
The name of an extension in this section is limited to a 30 character name, a subscript in the range of [0-65534], and a 30 character label, all separated by underscores (_). A name is required. If the subscript is unspecified then 0 is assumed. Labels cannot include equal signs (=) and cannot be applied when the subscript is omitted, as the subscript separates the name from the label.
A trailing underscore (_) is interpreted as an incomplete label. The value to the right of the equal sign (=) is taken to be the label. Just the same a number can be specified without being assigned to. Doing so will simply apply a label. It is not necessary to declare numbers in advance. Therefore applying labels is the only reason to omit the assignment. Numbers are not assigned in any particular order accept where _$ appears.
Note: that it would be ideal if where multiple Ex.ini files are in use assignment is encapsulated, or occurs before moving onto the next file by default. However this behavior has not yet been put into effect as of 1.1.2.1.