mod参数:修订间差异

测试,粗处理,但减少人工干预造成的错误
→‎[core]:​ 粗略处理
(测试,粗处理,但减少人工干预造成的错误)
第1行:
== .ini ==
=== [core] ===
{{RW代码|name:|string|"Defines the unit raw name, game uses it to identify as a unique name. (This is not displayed in-game)"|name: customTank1}}
{{RW代码|mass:|int|"The 'weight' of the unit, defines how it collides with other units, a greater value means it's tougher to push."|mass: 3000}}
第60行 ⟶ 第58行:
{{RW代码|dont_load:|bool|"Do not load unit, and don't error on missing data. Can be useful when used with copyFrom."|dont_load: true}}
{{RW代码|overrideAndReplace:|string(s)|Overrides another unit with this unit. Build links and map positions to target unit will be replaced.|"overrideAndReplace: builder, combatEngineer"}}
{{RW代码|onNewMapSpawn:|string|"Values: emptyResourcePools_asNeutral, emptyOrOccupiedResourcePools_asNeutral, mapCenter_asNeutral, mapCenter_eachActiveTeam, spawnPoint_eachActiveTeam",|onNewMapSpawn: spawnPoint_eachActiveTeam}}
{{RW代码|globalScale:|float|Defaults to 1. Changing not recommended.|globalScale: 2}}
{{RW代码|isLocked:|bool|Disallow building of this unit. Can be used with overrideAndReplace to restrict units player can build.|isLocked: true}}
第69行 ⟶ 第67行:
{{RW代码|createOnAggressiveTeam:|bool|Set to true to always spawn the unit on aggressive teams on single player matches.|createOnAggressiveTeam: true}}
{{RW代码|tags:|string(s)|"List of comma separated strings. Used to classify units, create special actions and balances."|"tags: tank, smallTank, piercingDamage"}}
{{RW代码|defineUnitMemory||"Can define several variables for custom storage, unique for each unit. Allowed types: boolean, float/number, unit, string."|"defineUnitMemory: boolean nukeActive, boolean laserReady, float experience, unit nextTarget, unit homeBase, string customText "}}
{{RW代码|||Add a pair of square brackets to turn them into arrays for those specific data types|"defineUnitMemory: unit[] squad, float[] mango"}}
{{RW代码|fogOfWarSightRange:|int|Sets number of tiles this unit can see through the fog of war. Defaults to 15.|fogOfWarSightRange: 35}}
573

个编辑