您当前的位置:首页 > 铁血联盟 > 教程指南

铁血联盟1.13XML知多少

时间:2010-08-26 12:10:28  来源:铁资基地  作者:风之幻

概括说一下,先说好理解的部分:eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
1. 所有以-Inventory.xml结尾的,都是用来设定商人买卖哪些物品的;如AlbertoInventory.xml,是用来设定商人Alberto买卖哪些东西的。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
2. Cities.xml,标明城市的位置和大小,修改价值不大,介绍从略。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
3. Sounds.xml,记录声音文件的位置,修改价值不大,介绍从略。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
4. IMPItemChoices.xml,记录了IMP初始时可以获得哪些装备。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
5. EnemyGunChoices.xml,记录了敌军所用武器的选取范围。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
6. EnemyItemChoices.xml,记录了敌军所带其他物品的选取范围。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
7. Merges.xml,记录了哪些物品可以合并,哪些物品可以合成新物品。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
8. Armours.xml,分类记录了护具防护度、易损度。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
9. Attachments.xml,记录了何种物品可以作为附件装入另一种物品。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
10.IncompatibleAttachments.xml,记录了互不相容的附件组合。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
11.AttachmentInfo.xml,如果加装某种附件时需要考察某种技能值,那么就在这儿找吧。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
12.AttachmentComboMerges.xml,如果是三种物品合成一种物品,那就在这儿改吧。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
13.CompatibleFaceItems.xml,正如文件名所描述的,这个文件规定了面部装备的可共存的组合方式。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
14.Launchables.xml,记录了哪些物品可以被哪些武器所发射。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
15.Explosives.xml,分类记录了各种爆炸物的伤害值、作用范围、持续时间、易爆程度 等属性。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
16.Weapons.xml,分类记录了各种武器耗费的AP值、具有的破坏力、发射子弹速度、弹匣大小、射程、引用的声音文件 等 细节属性。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
17.AmmoStrings.xml,列举了各种子弹的口径信息,这些信息将显示在网上武器商店的武器弹药说明上。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
18.AmmoTypes.xml,将弹药分类为12类,并规定了各类弹药的本质特性,直接影响着子弹伤害度的计算方法。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
19.Magazines.xml,规定了每种弹匣所装弹药的种类和数量。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
20.Items.xml,记录了游戏中所有装备的共有属性,也是所有物品的总索引,由这个总索引出发,可以找到描述此物品细节属性的其他文件。 eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
因为Items.xml最重要,所以,这次先分析这个:eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
文件中使用的参数及其含义如下eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
uiIndex - the item index, number the items sequentially starting at 1 and ending at 5000 eeR铁资网 - 欧美硬游戏基地
在Items.xml文件中给物品排序的位置编号。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
szItemName - the short name of the itemeeR铁资网 - 欧美硬游戏基地
物品名称的缩写eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
szLongItemName - the item's long name, as displayed in the description boxeeR铁资网 - 欧美硬游戏基地
物品的完整名称,在游戏中的物品属性界面里有显示eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
szItemDesc - the item's descriptioneeR铁资网 - 欧美硬游戏基地
物品所具有的属性的一些文字描述eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
szBRName - the name of the item at Bobby Ray's (usually the same as the long name)eeR铁资网 - 欧美硬游戏基地
物品在Bobby的网上商店里面所使用的商品名eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
szBRDesc - the description of the item displayed at Bobby Ray'seeR铁资网 - 欧美硬游戏基地
Bobby在网上商店里面对物品作的一些说明性描述eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
usItemClass - the type of the item (gun, blade, launcher, bomb, etc.) - this should never be zero! If the code sees a zero ItemClass, it will think the list of items has ended. If you need space between items, place Nothing types between them.eeR铁资网 - 欧美硬游戏基地
该物品所属的类别(1 nothing ;2 Gun; 4 Knif; 8 Throwing Knife; 16 可装填发射器;…… )eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
ubClassIndex - the index of the item in the other files (Weapons, explosives, magazines, etc.) NB: the weapons.xml index should be the same as the items.xml uiIndex, the other's just need to point to the right uiIndex in the other file.eeR铁资网 - 欧美硬游戏基地
如果该物品有些属性需要单独记录,那么就需要记录在专门的文件里。这个ClassIndex所说的就是该物品在这个专门的文件中的位置编号。比如,如果是Gun的话,就有一些属性需要单独记录在 Weapons.xml文件中,那么,这个ClassIndex就是该物品在Weapons.xml文件中的位置编号。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
ubCursor - the cursor displayed when the item is usedeeR铁资网 - 欧美硬游戏基地
当把物品放在手中(或者用鼠标拿起)时,鼠标会变成哪种状态。例如,手握钢枪时,瞄准敌人,鼠标就会变成十字准线模样,表示要射击啦eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
bSoundType - does nothing, not sure what this was used foreeR铁资网 - 欧美硬游戏基地
尚不清楚是何用途eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
ubGraphicType - the type of graphics file used for an item, ie: 0 = MDGUNS.sti, 1 = P1ITEMS.sti, 2 = P2ITEMS.sti. For new items, just use 0 for guns, and 1 for other items, otherwise they may not display correctly in-gameeeR铁资网 - 欧美硬游戏基地
每个物品都有用来表示它的图片,该参数用来指明该物品的图片应该在哪个文件中找到。例如,该值如果为0,那么它的图片储存在MDGUNS.sti文件中;如果该值为1,则该物品的图片储存在P1ITEMS.sti文件中;如果该值为2,则该物品的图片储存在P2ITEMS.sti文件中;Gun 类的物品,统一放在MDGUNS.sti中,便于查找,所以Gun的该值都是0;如果添加非枪械类的物品,那就把该物品的图片储存在P1ITEMS.sti里面好了,不过要记得把该值写成1才表示P1ITEMS.sti这个文件哦eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
ubGraphicNum - the number of the graphic for the item as stored in the sti fileseeR铁资网 - 欧美硬游戏基地
刚才我们通过GraphicType的值找到了物品图片存放在哪个文件中,那么,这个参数就是用来标识该物品在该文件中的序号的(sti文件是个图片集文件,是多张图片的有序集合,这个参数刚好是图片序号,从0开始编号)eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
ubWeight - the weight of the item, in 100g units, so 77 = 7.7 kgeeR铁资网 - 欧美硬游戏基地
单位是0.1 公斤,表示物品的质量,俗称重量,就是这个意思eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
ubPerPocket - the quantity of this item that can fit in one large pocket. This is halved for small pockets. Guns should always be zero.eeR铁资网 - 欧美硬游戏基地
该值表示该物品在一个大口袋中最多放置的数量。(口袋有“大口袋”和“1/2口袋”之分哦)。如果该物品是枪,那么,默认该值为0 (你可以试着改成1哦^^ 但千万别改成更大的数,否则数据就有可能会覆盖到其他地方,Crash的机率很大哦,呵呵)eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
usPrice - $$$$ eeR铁资网 - 欧美硬游戏基地
价钱。。。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
ubCoolness - (1-10) how far along in the game you'll see the item. Zero means that it's not cool at all and won't be sold anywhere.eeR铁资网 - 欧美硬游戏基地
游戏进行到何种程度,你才能看到这种物品呢(指网上销售)? 如果该值为零,则这种物品何时何地也没卖的。。。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
bReliability - how quickly the item loses status. Positive numbers reduce status loss, negative numbers increase it.eeR铁资网 - 欧美硬游戏基地
物品的可靠性,也就是指物品完好度下降的速度快慢程度。正数慢,负数快,越正则越慢,越负则越快eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
bRepairEase - how easy the item is to repaireeR铁资网 - 欧美硬游戏基地
修理的难易程度,正数好修,负数难修,越负越难修。。。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
Damageable - (1/0) can the item be damaged?eeR铁资网 - 欧美硬游戏基地
该物品是否能被损坏,1表示能被损坏,0表示永不磨损型(钻石恒久远,一颗永流传^^)eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
Repairable - (1/0) can the item be repaired?eeR铁资网 - 欧美硬游戏基地
该物品是否能修好,1表示可以修eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
WaterDamages - (1/0) is the item damaged when it is submerged?eeR铁资网 - 欧美硬游戏基地
该物品遇到水的时候是否会受到侵蚀而使完好度下降,1表示不防水eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
Metal - (1/0) is the item made of metal? (used for metal detector and for reducing damage to the item)eeR铁资网 - 欧美硬游戏基地
该物品是否是金属的?eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
Sinks - (1/0) will the item sink under water to be lost forever?eeR铁资网 - 欧美硬游戏基地
该物品在水中是否会沉底?eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
ShowStatus - (1/0) is the item's status displayed?eeR铁资网 - 欧美硬游戏基地
正如我们所知道的,如果把物品放在口袋里,在该物品左侧会显示一个浅黄色的纵条。这个参数就是用来说明该纵条是表示什么的。如果该物品是一把枪,那纵条就表示该枪的完好度,此时ShowStatus值为1;如果该物品是一个弹匣,那么,该纵条就不是表示弹匣的完好度了,而是表示弹匣的装弹程度,此时ShowStatus值应为0,否则,如果为1的话,你可以拿个工具箱来修一下快打光子弹的弹匣,很快就把弹匣“修”满了哦^^eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
HiddenAddon - (1/0) is the item a hidden attachment?eeR铁资网 - 欧美硬游戏基地
该物品是否是这样一种物品,表面上看起来是一个不可以附加到其他物品上的物品,结果却可以附加到其他物品上或者融合成新物品eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
TwoHanded - (1/0) does the item require two hands to use?eeR铁资网 - 欧美硬游戏基地
该物品是否是双手使用的武器?eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
NotBuyable - (1/0) is the item not purchasable?eeR铁资网 - 欧美硬游戏基地
该物品能买到吗?eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
Attachment - (1/0) is this item an attachment? (if so, you'll need to open attachments.xml to set what it can be attached to)eeR铁资网 - 欧美硬游戏基地
该物品作为附件装在其他物品上时,是否会属性叠加?(当然,要想能把这个东东装到其他东东上,还要在attachments.xml文件中声明一下才可以,要不然,装不上的……什么,你想试试?…我看好你哦^^)eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
BigGunList - (1/0) not used anymore in 1.13eeR铁资网 - 欧美硬游戏基地
作用不明。。。也许就是没用。。。eeR铁资网 - 欧美硬游戏基地
eeR铁资网 - 欧美硬游戏基地
NotInEditor - (1/0) so far unusedeeR铁资网 - 欧美硬游戏基地
相信注释说的是对的^^

来顶一下
返回首页
返回首页
相关文章
栏目更新
栏目热门