mod参数/canBuild

AbAb留言 | 贡献2023年2月20日 (一) 18:00的版本 (创建页面,内容为“{{RW代码|name:|string(s)|"List of unit identifiers this unit can create. Can be buildings or units. Add ""setRally"" to create a rally button"|"name: setRally, tank, hoverTank, heavyTank"}} {{RW代码|pos:|float|Order build link appears in this unit UI.|pos: 0.1}} {{RW代码|tech:|int|Tech level. Mostly just affects build link colour in this unit UI. Defaults to 1.|tech: 2}} {{RW代码|forceNano:|bool|Builds target as if it was a building if true. (even if it…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
name:
string(s)
描述"List of unit identifiers this unit can create. Can be buildings or units. Add ""setRally"" to create a rally button"
pos:
float
描述Order build link appears in this unit UI.
tech:
int
描述Tech level. Mostly just affects build link colour in this unit UI. Defaults to 1.
forceNano:
bool
描述Builds target as if it was a building if true. (even if it's a unit)
isVisible:
LogicBoolean
描述Hide this build link if true in this unit UI.
isLocked:
LogicBoolean
描述Dynamically locks this build option and shows isLockedMessage if true.
isLockedMessage:
string
描述Set to tell to players why a unit is locked.
isLockedMessage_{LANG}:
string
描述isLockedMessage_es: -Necesita 2 Cuarteles
isLockedAlt:
LogicBoolean
描述Another reason for this to be locked. Just allows a different message to be shown.
isLockedAltMessage:
string
描述Message for isLockedAlt.
isLockedAlt2:
LogicBoolean
描述Like isLockedAlt but to show one more message.
isLockedAlt2Message:
string
描述Message for isLockedAlt2.
addResources:
price(s)
描述Adds these resources to self when placing the building or producing the unit.
price:
price(s)
描述Overrides builded units/buildings price. Defaults to target unit prices.
isGuiBlinking:
LogicBoolean
描述Generates a blinking effect in UI if true.