2015-02-03 14:05:58 k73游戏之家 作者:雾墨楼主
关于开局激光枪守卫全套是玩家们都想要拥有的,而玩友已经分享了最终版,小编觉得还是比较全面的,那么下面我们就来看看吧。
首先要找到物品场景的ID,这个很容易,在img文件夹中有所有东西的图片,按照下面的名称在xml文件中搜索就可以了
第一步 搜索位置
开局的地形应该是全游戏中唯一一个可以执行搜索的独特地形
在xml中搜索CryoBldg的到ID
</table>
<table name="encounters">
<column name="id">61</column>
<column name="strName">Scavenge Gyges Cryo Facility.</column>
<column name="strDesc">Despite its high-tech appearance, this facility seems to be tucked away in the wilderness, out of sight.
This bodes well for the chances of finding something of value, or even shelter, provided nothing else has set up shop here with those same ideas.</column>
<column name="strImg">ItmScavengeCryoBldg.png</column>
<column name="nTreasureID">3</column>
<column name="nRemoveTreasureID">3</column>
<column name="aConditions">1</column>
<column name="aPreConditions"></column>
<column name="fPrice">0</column>
<column name="aResponses">90.10x1=42x1x0x0x0,=40x1x0x0x0,91.4x1=1536x1x0x0x0,91.1x1=1535x1x0x0x0</column>
<column name="aMinimapHexes"></column>
<column name="bRemoveCreatures">0</column>
<column name="bRemoveUsed">0</column>
<column name="nItemsID">3</column>
<column name="nCreatureID">0</column>
<column name="ptCreatureHex">0,0</column>
<column name="ptTeleport">0,0</column>
<column name="ptEditor">-4745,8566</column>
<column name="nType">1</column>
<column name="fLootChance">1</column>
<column name="fAccidentChance">0</column>
<column name="fCreatureChance">0.1</column>
<column name="vAccidents">1</column>
<column name="vLoot">574</column>
看到这个 <column name="fLootChance">1</column> 没有 这个代表的是这个地形的搜索成功几率,在这个地形上出现的东西百分百会被搜索出来。
第二步
接着看到<column name="vLoot">574</column> 这个代表在这个地形上可以搜索出来的东西有什么 于是查询574 得到这个
</table>
<table name="treasuretable">
<column name="id">574</column>
<column name="strName">cryo usable window</column>
<column name="aTreasures">26.4x1.0x1-1</column>
<column name="bNested">0</column>
<column name="bSuppress">0</column>
<column name="bIdentify">0</column>
这里的 <column name="aTreasures">26.4x1.0x1-1</column> 就代表了搜索的东西的代码,那么意味着我们只要找到想要的东西的代码,把他粘到这里来,就可以了
第三步寻找代码
这个游戏的代码实际上很简单,我以激光枪为例
<table name="itemtypes">
<column name="id">99</column>
<column name="nGroupID">60</column>
<column name="nSubgroupID">2</column>
<column name="strName">rifle</column>
<column name="strDesc">high-tech rifle</column>
<column name="strDescAlt">Deltec LAR-10 Laser Rifle</column>
<column name="nCondID">87</column>
<column name="vImageList">ItmLaserRifle.png,ItmLaserRifleStored.png,ItmLaserRifleHeld.png</column>
<column name="vSpriteList">14=CreItmHuntingRifleShoulderR.png,20=CreItmHuntingRifleHeldL.png,21=CreItmHuntingRifleHeldR.png</column>
<column name="vImageUsage">1,1,0,0,2,2</column>
<column name="fWeight">3.6</column>
<column name="fMonetaryValue">1800</column>
<column name="fMonetaryValueAlt">1800</column>
<column name="fDurability">1</column>
<column name="fDegradePerHour">0</column>
<column name="fEquipDegradePerHour">0.001</column>
<column name="fDegradePerUse">0.01</column>
<column name="vDegradeTreasureIDs">35,35</column>
<column name="aEquipConditions"></column>
<column name="aPossessConditions"></column>
<column name="aUseConditions"></column>
<column name="aCapacities">2x2</column>
<column name="vEquipSlots">14=0=0,21=2=2,20=2=2</column>
<column name="vUseSlots"></column>
<column name="bSocketLocked">0</column>
<column name="vProperties">2,9,10,17,28,32,48,50,75,87</column>
<column name="aContentIDs">9</column>
<column name="nFormatID">3</column>
<column name="nTreasureID">37</column>
<column name="nComponentID">3</column>
<column name="bMirrored">0</column>
<column name="nSlotDepth">0</column>
<column name="strChargeProfiles"></column>
<column name="aAttackModes">20=13,21=13,20=14,21=14</column>
<column name="nStackLimit">1</column>
<column name="aSwitchIDs"></column>
<column name="aSounds">cueRiflePickup,cueRifleScope1Putdown</column>
</table>
这里面的 <column name="nGroupID">60</column> 代表他属于什么类型,这里就是枪支
后面的<column name="nSubgroupID">2</column> 代表他是这个类型的什么东西(sub前缀 次的 下面的 分支的) 那么这个枪的代码就是 :60 小数点 2 乘号 1 .0 乘号 1 - 1 就是这样60.2x1.0x1-1,你把想要的东西代码都找出来,之间用逗号隔开,粘到上一楼说的位置,重新开局就行了,在出生地搜索(不要用任何技能)就行。