《騎馬與砍殺》武器動作程式碼
今天,在boyzhanxun大大帖子的指引下,完成了以下這篇文章,在他帖子中他說看不懂那長串數字的規律,其實
header_檔案裡寫的非常非常清楚了,boyzhanxun大大繞了一大圈才達到目的,其實只要告訴我們以下內
容就行了
# Item capabilities:
itcf_thrust_onehanded 單手刺 = 0x0000000000000001
itcf_overswing_onehanded 單手砍 = 0x0000000000000002
itcf_slashright_onehanded 單手右砍 = 0x0000000000000004
itcf_slashleft_onehanded 單手左砍 = 0x0000000000000008
itcf_thrust_twohanded 雙手刺 = 0x0000000000000010
itcf_overswing_twohanded 雙手砍 = 0x0000000000000020
itcf_slashright_twohanded 雙手右砍 = 0x0000000000000040
itcf_slashleft_twohanded 雙手左砍 = 0x0000000000000080
itcf_thrust_polearm 長杆刺 = 0x0000000000000100
itcf_overswing_polearm 長杆砍 = 0x0000000000000200
itcf_slashright_polearm 長杆右砍 = 0x0000000000000400
itcf_slashleft_polearm 長杆左砍 = 0x0000000000000800
itcf_shoot_bow = 0x0000000000001000
itcf_shoot_javelin = 0x0000000000002000
itcf_shoot_crossbow = 0x0000000000004000
itcf_throw_stone = 0x0000000000010000
itcf_throw_knife = 0x0000000000020000
itcf_throw_axe = 0x0000000000030000
itcf_throw_javelin = 0x0000000000040000
itcf_shoot_pistol = 0x0000000000070000
itcf_shoot_musket = 0x0000000000080000
itcf_shoot_mask = 0x00000000000ff000
itcf_horseback_thrust_onehanded 沒用過 = 0x0000000000100000
itcf_horseback_overswing_right_onehanded 沒用過 = 0x0000000000200000
itcf_horseback_overswing_left_onehanded 沒用過 = 0x0000000000400000
itcf_horseback_slashright_onehanded 單手馬上右砍 = 0x0000000000800000
itcf_horseback_slashleft_onehanded 單手馬上左砍 = 0x0000000001000000
itcf_thrust_onehanded_lance 槍騎單手刺 = 0x0000000004000000
itcf_thrust_onehanded_lance_horseback 槍騎單手馬上刺 = 0x0000000008000000
itcf_carry_mask = 0x00000007f0000000
itcf_carry_sword_left_hip = 0x0000000010000000
itcf_carry_axe_left_hip = 0x0000000020000000
itcf_carry_dagger_front_left = 0x0000000030000000
itcf_carry_dagger_front_right = 0x0000000040000000
itcf_carry_quiver_front_right = 0x0000000050000000
itcf_carry_quiver_back_right = 0x0000000060000000
itcf_carry_quiver_right_vertical = 0x0000000070000000
itcf_carry_quiver_back = 0x0000000080000000
itcf_carry_revolver_right = 0x0000000090000000
itcf_carry_pistol_front_left = 0x00000000a0000000
itcf_carry_bowcase_left = 0x00000000b0000000
itcf_carry_axe_back = 0x0000000100000000
itcf_carry_sword_back = 0x0000000110000000
itcf_carry_kite_shield = 0x0000000120000000
itcf_carry_round_shield = 0x0000000130000000
itcf_carry_buckler_left = 0x0000000140000000
itcf_carry_crossbow_back = 0x0000000150000000
itcf_carry_bow_back = 0x0000000160000000
itcf_carry_spear = 0x0000000170000000
itcf_carry_katana = 0x0000000210000000
itcf_carry_wakizashi = 0x0000000220000000
itcf_show_holster_when_drawn = 0x0000000800000000
itcf_reload_pistol = 0x0000007000000000
itcf_reload_musket = 0x0000008000000000
itcf_reload_mask = 0x000000f000000000
這部分是格擋
itcf_parry_forward_onehanded = 0x0000010000000000
itcf_parry_up_onehanded = 0x0000020000000000
itcf_parry_right_onehanded = 0x0000040000000000
itcf_parry_left_onehanded = 0x0000080000000000
itcf_parry_forward_twohanded = 0x0000100000000000
itcf_parry_up_twohanded = 0x0000200000000000
itcf_parry_right_twohanded = 0x0000400000000000
itcf_parry_left_twohanded = 0x0000800000000000
itcf_parry_forward_polearm = 0x0001000000000000
itcf_parry_up_polearm = 0x0002000000000000
itcf_parry_right_polearm = 0x0004000000000000
itcf_parry_left_polearm = 0x0008000000000000
itcf_force_64_bits *標註1 = 0x8000000000000000
舉例來說 這是一個長杆武器的動作程式碼4222124877155584
換成16進位制:F00000D800D00
F,就是10進位制的15,代表了它擁有長杆武器格擋的4個動作
D,就是10進位制的13,代表了它擁有單手馬上左砍 槍騎單手刺 槍騎單手馬上刺
8,代表了它擁有單手馬上右砍
D,代表了它擁有除了砍以外的長杆武器動作
如果您是資深玩家,現在來猜猜這把武器究竟是什麼樣的動作呢
答案就是:地面上,無盾牌時可以用長杆武器標準刺殺 左右砍,用盾牌時使用騎兵長矛標準刺殺,馬上,即使用盾也
可以左右砍,因為是單手攻擊動作,不受盾的影響,但是馬上是沒有長杆武器標準刺殺動作的,並且不用盾牌時可以格
擋很多動作是地面馬上合併在一起的,豎砍這個動作,只要加了,地面馬上都會有,想只能地面砍,馬上不砍是做不到
的(起碼我不會),刺殺也一樣,為了保險起見,也為了好看,我這把武器用了3個刺殺動作,其實僅僅一個槍騎單手
刺,功能就足夠了
*標註1:有很多非長杆武器有此程式碼,但我並不知道它的作用,求高人解答
附表:
單手武器:4259842 破盾程式碼:541130754
雙手武器:6356995 破盾程式碼:543227907
長杆武器:1078034436(這個程式碼對盾牌有懲罰,也是預設的配置)4292612 破盾程式碼:541163524
長杆武器(不能配盾):6389764 破盾程式碼:543260676
弓: 6357000 破盾程式碼:543227912
單/雙手武器:4259843 破盾程式碼:541130755
弩: 6357001 破盾程式碼:543227913
手槍: 4259856 破盾程式碼:541130768
長杆火槍:6357009 破盾程式碼:543227921