游民星空 > 攻略秘籍 > 秘籍 > 正文

《骑马与砍杀》0808版本 武器动作的具体修改

2008-09-17 16:12:01 来源:本站原创 作者:佚名 我要投稿

第1页:

展开

0808版本 武器动作的具体修改


去官方网站下载0808版ModuleSystem
再装个Python
到ModuleSystem目录下右键点module_info.py用Python编辑输出目录,当然你要先把这个目录文件夹先建立(很关键哦,不然输出不了)

再到ModuleSystem目录下右键点header_items.py用Python编辑打开
会发现最下面的命令行

#combined capabilities
itc_cleaver = itcf_force_64_bits | (itcf_overswing_onehanded|itcf_slashright_onehanded|itcf_slashleft_onehanded |
                                    itcf_horseback_slashright_onehanded|itcf_horseback_slashleft_onehanded)
itc_dagger  = itc_cleaver | itcf_thrust_onehanded

itc_parry_onehanded = itcf_force_64_bits | itcf_parry_forward_onehanded| itcf_parry_up_onehanded | itcf_parry_right_onehanded

|itcf_parry_left_onehanded
itc_longsword = itc_dagger | itc_parry_onehanded
itc_scimitar  = itc_cleaver | itc_parry_onehanded

itc_parry_two_handed = itcf_force_64_bits | itcf_parry_forward_twohanded | itcf_parry_up_twohanded |

itcf_parry_right_twohanded | itcf_parry_left_twohanded
itc_cut_two_handed = itcf_force_64_bits | (itcf_slashright_twohanded | itcf_slashleft_twohanded | itcf_overswing_twohanded |
                                           itcf_horseback_slashright_onehanded|itcf_horseback_slashleft_onehanded)
itc_greatsword = itc_cut_two_handed |  itcf_thrust_twohanded | itc_parry_two_handed |itcf_thrust_onehanded_lance
itc_nodachi    = itc_cut_two_handed | itc_parry_two_handed

itc_bastardsword = itc_cut_two_handed |  itcf_thrust_twohanded | itc_parry_two_handed |itc_dagger

itc_parry_polearm = itcf_parry_forward_polearm | itcf_parry_up_polearm | itcf_parry_right_polearm | itcf_parry_left_polearm
itc_poleaxe    = itc_parry_polearm| itcf_overswing_polearm

|itcf_thrust_polearm|itcf_slashright_polearm|itcf_slashleft_polearm
itc_staff      = itc_parry_polearm| itcf_thrust_onehanded_lance |itcf_thrust_onehanded_lance_horseback|

itcf_overswing_polearm |itcf_thrust_polearm|itcf_slashright_polearm|itcf_slashleft_polearm
itc_spear      = itc_parry_polearm| itcf_thrust_onehanded_lance |itcf_thrust_onehanded_lance_horseback | itcf_thrust_polearm
itc_pike       = itcf_thrust_onehanded_lance |itcf_thrust_onehanded_lance_horseback | itcf_thrust_polearm

itc_greatlance = itcf_thrust_onehanded_lance |itcf_thrust_onehanded_lance_horseback| itcf_thrust_polearm

这些都是武器的动作类型,请大家耐心看

itcf_overswing_onehanded   单手能从上而下劈砍
itcf_slashright_onehanded  单手能从右而左横挥
itcf_slashleft_onehanded   单手能从左而右横挥
itcf_thrust_onehanded      单手能刺击
     horseback             能在马背上动作
     twohanded             双手
     parry_forward         能格挡刺击
     parry_up              能格挡从上而下劈砍
     parry_right           能格挡从右而左横挥
     parry_left            能格挡从左而右横挥
     cut                   能从上而下劈砍,仅限双手
     polearm               长柄武器
thrust_onehanded_lance    能同时拿盾牌的单手长柄武器

比如itc_cleaver是在地面和马上都能挥舞,但不能刺击
  itc_dagger就把itc_cleaver动作定义赋值后再加了一个动作itcf_thrust_onehanded,就是说itc_dagger能在地面和马上都能挥舞又能刺击
往下看就知道所有的武器动作,依次类推,赋值和新添动作从而合成一个新的动作

好了,讲了这么多大家也不耐烦了,进入正题

那么比如想要把greatlance改成在马上和地面都能挥舞怎么改呢?

先要定义一个新动作,在itc_greatlance = 。。。。。。。。。下面一行新加一个动作比如itc_1

那么定义:
itc_1 = itc_poleaxe |itcf_horseback_slashright_onehanded|itcf_horseback_slashleft_onehanded |itcf_overswing_onehanded |

itcf_thrust_onehanded_lance

这个动作itc_1 = 长柄斧的所有动作 & 马背上单手左右挥舞 & 马上从上而下劈砍 & 能拿盾牌

这样这个动作就是:地面不拿盾时,砍、刺、挥舞均可;拿盾时只能刺和砍,不能挥舞X_X;马背上不论拿不拿盾都可砍、刺、挥舞,还能马背

蹲伏攻击(骑枪专利)

好了,保存退出

到ModuleSystem目录下右键点module_items.py用Python编辑
看到了武器的定义命令
找到
["great_lance",         "Great Lance", [("heavy_lance",0)], itp_type_polearm|itp_merchandise|

itp_spear|itp_primary|itp_penalty_with_shield, itc_greatlance, 237 , weight(5)|difficulty(0)|spd_rtng(55) | weapon_length

(215)|swing_damage(0 , cut) | thrust_damage(19 ,  pierce),imodbits_polearm ],

里面的itc_greatlance,替换成itc_1,把里面的swing_damage(0 , cut)改一下,保存退出。

双击build_module.bat,结束输出后到你最开始建立的输出目录下找到item_kinds1.txt
查找里面的

itm_great_lance Great_Lance Great_Lance 1  heavy_lance 0  1078034436 4222124742938370 237 10 5.000000 100 0 0 0 0 0 55 0 214

0 275 0
0
注意那个一长串数字4222124742938370,这个是代表武器动作的值,根据itc的改变而改变

好了,现在把这串数字复制后,进入到你玩的MOD的目录里,比如X:\Mount&Blade\Modules\XXXXXXX目录下
打开里面的item_kinds1.txt,查找里面的任何长柄武器,把这串数字替代原始数字(注意,找对地址,不然后果。。。。)
比如
itm_vaegir_lance Vaegir_Lance Vaegir_Lance 1  vaegir_lance 0  1078034436 4222124742938370 237 10 5.000000 100 。。。(后面数

字段省略,不要以为没有)

保存退出,进入游戏后,试试看就知道了:)

好了,小弟在此抛砖,如果大家有想象力,可以改的更变态一些,所有武器都能通过定义新动作赋值来改动作类型

另外改武器属性的话module_items.py,里面的语言都很通俗易懂,比item_kinds1.txt里的那一串串数字要直观的多了,想怎么改就怎么改

祝大家玩的开心



>>骑马与砍杀 攻略秘籍专区

更多相关内容请关注:骑马与砍杀:战团专区

责任编辑:dsgames568

本文是否解决了您的问题

游民星空APP
随手浏览游戏攻略
code
单机游戏下载
休闲娱乐
综合热点资讯
游民星空联运游戏