SDL中文论坛

标题: WML标签:unit_type [打印本页]

作者: ancientcc    时间: 2020-11-29 10:57
标题: WML标签:unit_type
本帖最后由 ancientcc 于 2020-11-29 11:00 编辑

unit_type标签用于定义单位类型。

单位包括部队和建筑物。相应的对于部队来说,unit_type等同定义兵种,像骑兵、弓兵。对建筑物来说,unit_type定义建筑物种类,像城市、市场、箭塔。

unit_type标签下可存在以下键值/标签。


作者: ancientcc    时间: 2020-11-29 11:01
标题: [attack]
[attack]块用于描述该兵种能使用的战法。一兵种最多能使用3种战法,也就是说一个[unit_type]内最多只能存在3个[attack]块,多余[attack]会被忽略。






欢迎光临 SDL中文论坛 (http://www.libsdl.cn/bbs/) Powered by Discuz! X3.3