明輝手游網(wǎng)唯一官網(wǎng):m.79things.com

本站App下載  |  

首頁(yè) > 游戲資訊 > 單機(jī)游戲

騎馬與砍殺 0.894加入新npc的辦法

作者:佚名   來(lái)源:本站   時(shí)間:2023-08-07  點(diǎn)擊:

電腦大家應(yīng)該不怎么陌生吧!現(xiàn)在電腦已經(jīng)普及到大多數(shù)人的家庭之中了,電腦的用途非常地廣,不同年齡段、不同行業(yè)的人對(duì)電腦的用處不同。但是對(duì)于很多的年輕人來(lái)說電腦最大的用途就是玩游戲了。電腦游戲大家肯定玩過吧!它可以使人上癮。

研究了一整天先說說最簡(jiǎn)單的方法
前提是要有module system
打開module_troops.py
搜尋馬德尼marnid

會(huì)找到以下文字(npc技能跟裝備我修改過了,僅供參考)
  ["borcha","Borcha","Borcha",tf_hero, 0, reserved, fac_commoners,[itm_plate_armor,itm_iron_greaves,itm_scale_gauntlets,itm_knife,itm_magyar_helmet_a,itm_wooden_stick,itm_tutorial_sword],str_6|agi_6|int_30|cha_30|level(28),wp(50),knows_pathfinding_2|knows_tactics_8|knows_trainer_9|knows_spotting_2,0x000000000010918a01f248377289467d],
  ["marnid","Marnid","Marnid", tf_hero, 0,reserved, fac_commoners,[itm_mail_with_surcoat,itm_hide_boots,itm_short_sword,itm_turret_hat_green,itm_flintlock_pistol],str_3|agi_12|int_26|cha_3|level(28),wp(50)|wp_firearm(200),knows_trade_10|knows_inventory_management_5|knows_engineer_10,0x00000000000c600301c2510211a5b292],
  ["ymira","Ymira","Ymira",tf_female|tf_hero, 0, reserved, fac_commoners,[itm_court_dress,itm_morningstar],def_attrib|level(28),wp(90),knows_wound_treatment_8|knows_first_aid_7|knows_surgery_7,0x000000000000000201c152351bab4558],
  ["rolf","Rolf","Rolf",tf_hero, 0, reserved,  fac_commoners,[itm_leather_jerkin,itm_nomad_boots, itm_sword],def_attrib|level(1),wp(20),knows_common,0x00000000000c840001f8c0a4ab8ad50a],

這裡就是放著npc加入的代碼,0.894跟0.808的加入代碼是不通的,
作者是利用slot的方式來(lái)處理加入npc,我搞不太懂,不過要加入新npc是很簡(jiǎn)單的,只要複製上面任何一個(gè)人,
貼到下方,把前三個(gè)名字改掉,例如:"rolf","Rolf","Rolf"改成"jack","Jack","Jack"
應(yīng)該會(huì)隨機(jī)在酒店出現(xiàn)新的npc,不過沒測(cè)試過,我是把出現(xiàn)位置放到禪達(dá)酒館,
其他檔案都不用管,除非你想製作個(gè)別的加入劇情

經(jīng)過測(cè)試沒有問題
  ["jack","Jack","Jack", tf_hero, scn_the_happy_boar|entry(4),reserved, fac_commoners,[itm_pilgrim_disguise,itm_hide_boots,itm_knife,itm_tutorial_throwing_daggers,itm_pilgrim_hood],str_12|agi_30|int_6|cha_3|level(28),wp(50)|wp_throwing(240),knows_spotting_8|knows_pathfinding_8|knows_athletics_10|knows_power_throw_6|knows_tracking_8,0x00000000000c200401e7b86b3bb0d063],
  ["sandra","Sandra","Sandra",tf_female|tf_hero, scn_the_happy_boar|entry(6), reserved, fac_commoners,[itm_brigandine_a,itm_double_axe,itm_polehammer,itm_steel_shield,itm_wrapping_boots],str_30|agi_3|int_6|cha_12|level(28),wp(50)|wp_two_handed(250),knows_ironflesh_7|knows_power_strike_7|knows_shield_4|knows_trainer_5|knows_weapon_master_10,0x000000000008300101d8ad93708e4694],
提供我的範(fàn)例給你們?cè)?貼上之後應(yīng)該就是

  ["borcha","Borcha","Borcha",tf_hero, 0, reserved, fac_commoners,[itm_plate_armor,itm_iron_greaves,itm_scale_gauntlets,itm_knife,itm_magyar_helmet_a,itm_wooden_stick,itm_tutorial_sword],str_6|agi_6|int_30|cha_30|level(28),wp(50),knows_pathfinding_2|knows_tactics_8|knows_trainer_9|knows_spotting_2,0x000000000010918a01f248377289467d],
  ["marnid","Marnid","Marnid", tf_hero, 0,reserved, fac_commoners,[itm_mail_with_surcoat,itm_hide_boots,itm_short_sword,itm_turret_hat_green,itm_flintlock_pistol],str_3|agi_12|int_26|cha_3|level(28),wp(50)|wp_firearm(200),knows_trade_10|knows_inventory_management_5|knows_engineer_10,0x00000000000c600301c2510211a5b292],
  ["ymira","Ymira","Ymira",tf_female|tf_hero, 0, reserved, fac_commoners,[itm_court_dress,itm_morningstar],def_attrib|level(28),wp(90),knows_wound_treatment_8|knows_first_aid_7|knows_surgery_7,0x000000000000000201c152351bab4558],
  ["rolf","Rolf","Rolf",tf_hero, 0, reserved,  fac_commoners,[itm_leather_jerkin,itm_nomad_boots, itm_sword],def_attrib|level(1),wp(20),knows_common,0x00000000000c840001f8c0a4ab8ad50a],
  ["jack","Jack","Jack", tf_hero, scn_the_happy_boar|entry(4),reserved, fac_commoners,[itm_pilgrim_disguise,itm_hide_boots,itm_knife,itm_tutorial_throwing_daggers,itm_pilgrim_hood],str_12|agi_30|int_6|cha_3|level(28),wp(50)|wp_throwing(240),knows_spotting_8|knows_pathfinding_8|knows_athletics_10|knows_power_throw_6|knows_tracking_8,0x00000000000c200401e7b86b3bb0d063],
  ["sandra","Sandra","Sandra",tf_female|tf_hero, scn_the_happy_boar|entry(6), reserved, fac_commoners,[itm_brigandine_a,itm_double_axe,itm_polehammer,itm_steel_shield,itm_wrapping_boots],str_30|agi_3|int_6|cha_12|level(28),wp(50)|wp_two_handed(250),knows_ironflesh_7|knows_power_strike_7|knows_shield_4|knows_trainer_5|knows_weapon_master_10,0x000000000008300101d8ad93708e4694],

或許不算什麼大發(fā)現(xiàn),可能許多高手都會(huì),不過我研究了許久,而且論壇沒有0.894的教學(xué),
就在此獻(xiàn)醜了,還有可以製作對(duì)話的加入方法,已經(jīng)可以成功加入了,不過我還沒完全搞清楚指令
下次在發(fā),或是有高手可以指點(diǎn)一二,附上成功的加入對(duì)話代碼
  [trp_jack,"start",[(is_between, "$g_talk_troop", companions_begin, companions_end),
                     (troop_slot_eq, "$g_talk_troop", slot_troop_occupation, 0)],
  "jack talk 1", "jack_introduce_1",[]],


  
  [trp_jack|plyr,"jack_introduce_1",[],"jack talk 2", "jack_introduce_2",[]],
  [trp_jack,"jack_introduce_2",[],"jack talk 3","jack_introduce_3",[]],

  [trp_jack|plyr,"jack_introduce_3", [], "jack talk 5", "jack_introduce_4",[]],
  [trp_jack,"jack_introduce_4", [], "jack talk 6", "jack_introduce_4",[]],
  [trp_jack|plyr,"jack_introduce_4", [], "jack talk 7", "jack_introduce_5",[]],


  
  [trp_jack,"jack_introduce_5", [], "jack talk 8", "close_window",
   [(call_script, "script_recruit_troop_as_companion", "$g_talk_troop")]],


  
  [trp_jack|plyr,"jack_introduce_3", [], "jack talk 4", "close_window",[]],


玩游戲可以在很大程度上讓大家放松放松,但是我建議大家不要把過多的時(shí)間投入到工作當(dāng)中,因?yàn)檫@樣的話大家很有可能上癮,這樣不利于大家的工作或者是學(xué)習(xí)。

推薦游戲

換一換