单位或建筑自动恢复HP
回顾一下civs.xml的语句:
<unitregen> 自动回血
<unittype>XXXXXX</unittype> 单位标签或单位调用名
<rate>X.00</rate> 每秒回复X%血量,100.00就是瞬间满血,改成负数就变成减血
<idletimeout>X.0</idletimeout> 空闲X.0秒才会回血,可以删除,这样无论何时都在回血或减血
</unitregen>
让所有单位与建筑自动恢复HP方法:
在civs搜索你要改的国家,然后按照格式添加
<unitregen>
<unittype>Unit</unittype>
<rate>0.25</rate>
<idletimeout>3.5</idletimeout>
</unitregen>
<unitregen>
<unittype>Building</unittype>
<rate>2.25</rate>
<idletimeout>3.5</idletimeout>
</unitregen>
|
civs.xml - 记事本 |
____ |
□ |
X |
|
|
文件(F) 编辑(E) 格式(O) 查看(V) 帮助(H) |
|
|
|
|
|
<civ> <name>Germans</name> <main>1</main> <statsid>DE</statsid> <portrait>objects\flags\germans</portrait> <culture>EasternEurope</culture> <displaynameid>22866</displaynameid> <rollovernameid>26065</rollovernameid> <alliedid>26446</alliedid> <alliedotherid>26445</alliedotherid> <unalliedid>26444</unalliedid> <hcshipmentmodifier>1.10</hcshipmentmodifier> <agetech> <age>Age0</age> <tech>Age0German</tech> </agetech> <agetech> <age>Age1</age> <tech>ColonializeGerman</tech> </agetech> <agetech> <age>Age2</age> <tech>FortressizeGerman</tech> </agetech> <agetech> <age>Age3</age> <tech>IndustrializeGerman</tech> </agetech> <agetech> <age>Age4</age> <tech>ImperializeGerman</tech> </agetech> <postindustrialtech>PostIndustrialGerman</postindustrialtech> <postimperialtech>PostImperialGerman</postimperialtech> <buildingefficiency>0.3</buildingefficiency> <gold>0</gold> <food>0</food> <wood>0</wood> <startingunit>Explorer</startingunit> <townstartingunit>SettlerWagon</townstartingunit> <townstartingunit>SettlerWagon</townstartingunit> <townstartingunit>SettlerWagon</townstartingunit> <townstartingunit>CrateofFood</townstartingunit> <townstartingunit>CrateofFood</townstartingunit> <townstartingunit>CrateofWood</townstartingunit> <homecityfilename>homecitygerman.xml</homecityfilename> <homecityflagtexture>objects\flags\germans</homecityflagtexture> <homecityflagbuttonset>germanFlagBtn</homecityflagbuttonset> <homecityflagbuttonsetlarge>germanFlagBtnLarge</homecityflagbuttonsetlarge> <postgameflagtexture>ui\ingame\ingame_ui_postgame_flag_german</postgameflagtexture> <matchmakingtextures> <bannertexture>ui\eso\civ_flags_quick_launch</bannertexture> <bannertexturecoords>0 0.25 0.78125 0.375</bannertexturecoords> <portraittexture>ui\eso\eso_quick_search_politicians_01</portraittexture> <portraittexturecoords>0.005859375 0.00390625 0.396484375 0.392578125</portraittexturecoords> <smallportraittexture>ui\singleplayer\cpai_avatar_germans</smallportraittexture> <smallportraittexturecoords>0 0 1 1</smallportraittexturecoords> </matchmakingtextures> <unitregen> <unittype>Hero</unittype> <rate>0.25</rate> <idletimeout>3.5</idletimeout> </unitregen> <unitregen> <unittype>Minuteman</unittype> <rate>-2.0</rate> </unitregen> <unitregen> <unittype>AbstractDaimyo</unittype> <rate>0.25</rate> <idletimeout>3.5</idletimeout> </unitregen>
<unitregen> <unittype>Unit</unittype> <rate>0.25</rate> <idletimeout>3.5</idletimeout> </unitregen> <unitregen> <unittype>Building</unittype> <rate>2.25</rate> <idletimeout>3.5</idletimeout> </unitregen> </civ>
|
|
|
城墙之类的单位不能自动回血的话,要去protoy把<unittype>AbstractWall</unittype>删掉才能自动回血。
删掉了就会影响到对AbstractWall加成的科技,但是我不是已经放出了被官方遗弃(未使用)的48个单位标签吗?
直接在protoy.xml、techtreey.xml用Ctrl+H,两分钟搞定。
不过我感觉把AbstractWall替换掉好像会用副作用,但是副作用不明确。