Changes

Jump to navigation Jump to search
13 bytes added ,  15:24, 5 March 2022
Line 432: Line 432:  
|-
 
|-
 
|Features
 
|Features
|A list of features, as with the main software type. Each feature also additionally has an optional '''MaxFactor''' number that works like a multiplier for the player, e.g. setting it to 3, means the player can multiply this features effect from 1 to 3. If MaxFactor is used, you can also use '''AmountScript''' to write a SIPL script that formats the number, e.g. '''x + " bunnies"''', will write "3 bunnies" if the player picks 3 as the factor. '''LocalizePlural('Employee', x)''' will use the plural enabled localization key based on the factor, e.g. 3 would write "3 employees". and '''Switch(x, clampBool, localizeBool, 'one', 'two', 'three')''' will pick one of the strings based on the factor value, e.g. 4 would be 'three' if clampBool is true and 'one' if it is false. Finally features can optionally define DependsOn, which  is a feature in the main product that needs to be present to use this feature in an add-on.
+
|A list of features, as with the main software type. Each feature also additionally has an optional '''MaxFactor''' number that works like a multiplier for the player, e.g. setting it to 3, means the player can multiply this features effect from 1 to 3. If MaxFactor is used, you can also use '''AmountScript''' to write a SIPL script that formats the number, e.g. '''x + " bunnies"''', will write "3 bunnies" if the player picks 3 as the factor. '''LocalizePlural('Employee', x)''' will use the plural enabled localization key based on the factor, e.g. 3 would write "3 employees". and '''Switch(x, clampBool, localizeBool, 'one', 'two', 'three')''' will pick one of the strings based on the factor value, e.g. 4 would be 'three' if clampBool is true and 'one' if it is false. Finally features can optionally define '''DependsOn''', which  is a feature in the main product that needs to be present to use this feature in an add-on.
 
|-
 
|-
 
|Manufacturing
 
|Manufacturing
Line 438: Line 438:  
|-
 
|-
 
|NameGenerator
 
|NameGenerator
|The [[Data Modding#Name generators|name generator]] to use for simulated companies or for when the player clicks the name button in the design document.
+
|The [[Data Modding#Name generators|name generator]] to use for simulated companies or for when the player clicks the name button in the add-on design document.
 
|-
 
|-
 
|}
 
|}

Navigation menu