1.4.2.8
Optimized with Cython, resulting in a slight performance improvement.
Added a new neutral computer faction. Zhong Lifang will not attack anyone unless attacked first.
How to set it up:
For example, in a map, use:
computer_only 0 0 neutral followed by various units and buildings.
If the neutral keyword is present, the computer will be neutral; if neutral is not added, it will be hostile.
Added support for setting fixed spawn points for players. For details, please refer to mapmaking.rst.
player_start
............
"player_start" 将第 N 名玩家(从 1 开始,与 ``trigger playerN`` 对应)固定在游戏开始时的某个特定格子。第 N 个加入大厅的客户端将始终在那里出生,无论 ``random_starts`` 如何设置。有两种写法:
简单式 —— "player_start N <格子>" 只更换出生格,保留该位置已有的资源 / 单位列表::
player_start 1 a1
player_start 2 c1
player_start 3 e1
完整式 —— "player_start N <资源...> <格子> <单位...>" 像 ``player`` 行那样一并定义资源、出生格和单位,并把它们固定给第 N 名玩家::
player_start 1 5 10 a1 townhall peasant
上面这行等价于把 ``player 5 10 a1 townhall peasant`` 固定成第 1 个加入的玩家。单位写法与 ``starting_units`` 一致(支持倍率数字,例如 ``townhall 5 peasant``)。
注意:
- ``<格子>`` 可以是 ``a1`` / ``1,1`` / 已注册的 ``square_name`` 别名。
- 两种写法可以在同一张地图中混用。
- 未被 ``player_start`` 行覆盖的玩家保持原有行为
(从剩余的 ``starting_squares`` 中随机或顺序选取)。
- 对于简单式,如果覆盖的格子不属于 ``starting_squares``,引擎会
在那里用全局的 ``starting_units`` / ``starting_resources``\ (或匹配的
``player`` 行,如果存在)注入一个隐式的出生位。完整式则直接用该行重建整个出生位。
- 即使没有人以该玩家编号加入,被固定的位置也会为该编号保留:
其他客户端不会被传送到那里。
The English documentation in doc/en/ has also been updated.
game: