高级玩家

- 贡献度
- 40
- 金元
- 1070
- 积分
- 267
- 精华
- 0
- 注册时间
- 2011-3-30
|
本帖最后由 phc2008 于 2011-6-29 04:00 编辑
以下教程前提是下载了http://bbs.3dmgame.com/thread-2086944-1-1.html[原创MOD]最给力商人MOD:每章最强武器装备商人有售;高价回收孽鬼牙;巨魔舌;诱发物(2)药水药效延时30分钟MOD[另送MOD制作教程]的MOD
文件说明
def_item_armor.xml (护甲)
def_item_boots.xml (鞋子)
def_item_gloves.xml (手套)
def_item_ingredients.xml (怪物掉落)
def_item_mutagens.xml (诱发物)
def_item_pants.xml (裤子)
def_prices.xml (物品价格)
def_shops.xml (商店)
def_stats_item_swordsilver.xml (银剑)
def_stats_item_swordsteel.xml (钢剑)
def_stats_item_potion.xml (药水)
1,修改某样物品在商店有卖
例如:我要添加"孽鬼爪"在神秘商人那有卖
1/打开def_item_ingredients.xml(用记事本就可以编辑,记得用UTF-16编码,否则可能出现乱码或游戏不能运行)
2/在文档中找到"孽鬼爪"的项目
<item name="Nekker claws" category="craftingingredient" ability_slots="0" stackable = "true" equip_slot="" hold_slot="">
<tags>SortTypeIngridient,CraftingIngridient, AlchemyIngridient,Hydragenum</tags>
<base_abilities>
<a>Price_500</a>
<a>Weight_01</a>
</base_abilities>
</item>
以上时物品的一般格式,我们只要用到 name 和 Price 两个属性(有些文件是没有Price属性,那就不要再强求Price啦)
name="Nekker claws" 表示"孽鬼爪"的英文名是 Nekker claws (双引号中间的内容,包括空格)
Price_500 表示在商店里销售的基数价格,但并不表示就是这个价格, 对比关系是:
Price_500 商店回收价格=25
Price_5000 商店回收价格=250
Price_10000 商店回收价格=500
你也可以把Price_500改成Price_50000,但是要在def_prices.xml文件里进修添加:
<ability name="Price_50000">
<item_price mult="false" always_random="false" min="50000" max="50000"/>
</ability>
3/好了,我们知道了"孽鬼爪"英文名是"Nekker claws";接下来就是在商人收货单里添加了
4/打开def_shops.xml文件(用记事本就可以编辑,记得用UTF-16编码,否则可能出现乱码或游戏不能运行)
#a1 Inkeeper - picie, jedzenie (表示第一章 旅店 - picie, jedzenie)这两个旅店老板卖的东西
以此类推
第二章的旅店老板是:#a2 Inkeeper - picie, jedzenie
第三章的旅店老板是:#a3 Inkeeper - picie, jedzenie
第一章神秘商人:# a1 DLC Equipment
第二章神秘商人:# a2 DLC Equipment
第三章神秘商人:# a1 DLC Equipment
5/找到商人的位置后
我以第一章旅店的两个女服务员(一个在一楼一个在负一楼)为例:
#a1 Kelnerka - picie, jedzenie
<loot name="Shop Waitress Act1">
<loot_entry name="Fish" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
<loot_entry name="Apple" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
<loot_entry name="Old cheese" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
<loot_entry name="Potato" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
<loot_entry name="Cucumber" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
<loot_entry name="Plum" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
</loot>
原来她们两都是卖烂鱼烂苹果烂土豆等,现在我要加多一个"孽鬼爪"给她们卖
按照格式加入一行
<loot_entry name="Nekker claws" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
chance="100" 表示出现几率100%
quantity_max="99" 表示最大数量99
quantity_min="99" 表示最小数量99
respawn_time="120" 表示刷新时间120秒
修改后就是:
#a1 Kelnerka - picie, jedzenie
<loot name="Shop Waitress Act1">
<loot_entry name="Fish" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
<loot_entry name="Apple" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
<loot_entry name="Old cheese" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
<loot_entry name="Potato" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
<loot_entry name="Cucumber" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
<loot_entry name="Plum" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
<loot_entry name="Nekker claws" chance="100" quantity_max="99" quantity_min="99" respawn_time="120"></loot_entry>
</loot>
6/然后保存,退出,替换The Witcher 2\CookedPC\items\里的文件
7/进入游戏,你就发现"孽鬼爪"有卖了
(2)修改药水毒素和作用时间
1/打开def_stats_item_potion.xml(一样是用记事本就可以编辑,记得用UTF-16编码,否则可能出现乱码或游戏不能运行)
2/比如说猫尿(夜视那个)
<ability name="Cat _Stats">
<damage_min mult="true" display_perc="true" always_random="false" min="0.9" max="0.9" type="bonus"/>
<tox_level mult="false" always_random="false" min="10" max="10" type="bonus"/>
<durration mult="false" always_random="false" min="1800" max="1800" type="bonus"/>
</ability>
<ability name="Cat _Stats2" prerequisites="alchemy_s7">
</ability>
<ability name="Cat _Stats3" prerequisites="alchemy_s7_2">
</ability>
还是name="Cat _Stats" 最重要,你也可以在商店加入这个东西卖
<tox_level mult="false" always_random="false" min="10" max="10" type="bonus"/> 表示毒素是10 min最小毒素 max最大毒素,你可以自己修改数字
<durration mult="false" always_random="false" min="1800" max="1800" type="bonus"/> 表示作用时间 1800 秒(30分钟),你可以自己修改数字
3/修改好后记得保存
4/然后保存,退出,替换The Witcher 2\CookedPC\items\里的文件
5/打开游戏,你就发现药水的毒素和药效都改变了 |
|