Placementrules:帝国3放置建筑物规则





Placementrules文件夹里面除了colonies.xml外,其他xml文件就是第一个城镇中心、王者山丘及条约等建筑限制, 对应protoy.xml里面的<PlacementFile>xxxxx.xml</PlacementFile>语句。
打开里面的xml文件估计你也已经看懂了,我们打开buildinglarge.xml里面有:
<placementrules>

<obstructionatleastfromtype player="any" foundation="any" distance="8" errorstringid="34686">Mill</obstructionatleastfromtype>
<obstructionatleastfromtype player="any" foundation="any" distance="8" errorstringid="34686">Plantation</obstructionatleastfromtype>
<obstructionatleastfromtype player="any" foundation="any" distance="8" errorstringid="46694">FirePit</obstructionatleastfromtype>
<obstructionatleastfromtype player="any" foundation="any" distance="8" errorstringid="34686">Farm</obstructionatleastfromtype>
<obstructionatleastfromtype player="any" foundation="any" distance="8" errorstringid="34686">ypBerryBuilding</obstructionatleastfromtype>
<obstructionatleastfromtype player="any" foundation="any" distance="8" errorstringid="34686">ypRicePaddy</obstructionatleastfromtype>
从上到下意思为建造建筑必须离磨坊、种植园、火舞祭典、农田、樱桃园、稻田间隔8,经测试,不能增大。
<distanceatleastfromtype player="any" foundation="any" distance="20" errorstringid="69985">ypKingsHill</distanceatleastfromtype>
意思为建造建筑必须离ypKingsHill(王者山丘)间隔20,数值越大间隔越大。
<distanceatleastfromtype player="enemy" foundation="any" distance="65" errorstringid="25521">FirstTC</distanceatleastfromtype>
意思为建造建筑必须离敌人第一个城镇中心间隔65,数值越大间隔越大。你要不要试一下修改成1000,游戏中会出现隐藏彩蛋的哦。
<distanceatleastfromcliff distance="6" errorstringid="25529"/>
编辑器放置单位时,距离悬崖6以内显示{25529}“这里的地形不适合安置它”。注:并不代表你删了就能放置在悬崖上。
<distanceatmostfromtype player="team" foundation="any" distance="125" errorstringid="46622" norushonly="true">FirstTC</distanceatmostfromtype>
意思为条约局建造建筑必须在自己或队友第一个城镇125范围内。建议改成0,然后玩条约会出现神奇的事情。 </placementrules>
打开tradepost.xml里面多了一句
<distanceatmostfromsocket distance="x" errorstringid="25984" successstringid="26011">xxxxx</distanceatmostfromsocket>
意思为建造建筑必须在xxxxx建筑x范围内。 PS:any是任何人,enemy是敌人,team是队伍