精華區beta Little-Games 關於我們 聯絡資訊
※ 引述《I5 (IFIVE)》之銘言: : 有人試過修改武器嗎? : 例如拿隱藏的那三把刀來修改殺傷力或是有效距離之類的? : 遍尋不著設定武器數值的檔案是哪一個 : 漫畫裡面不說高手的刀都會有劍氣,一揮刀一段距離外就有殺傷力 : 就像三國無雙的真空書一樣 : 如果能修改這些數值應該蠻有趣的 用推文的實在不方便, 小弟把修改的步驟詳列如下吧! 0.下載PYTHON http://www.python.org/download/ 下載.750 moder資料庫 http://www.taleworlds.com/download/mb_module_system_0750_0.zip 1.開啟壓縮檔中的module_items.py 取其中一物做範例: ["practice_sword","practice_sword", [("practice_sword",0)], itp_type_one_hand ed_wpn|itp_melee|itp_primary|itp_secondary, itc_longsword, 3,weight(1.5)|spd _rtng(103)|weapon_length(90)|swing_damage(16,blunt)|thrust_damage(10,blunt), imodbits_none], 以下是各參數說明: 1 ) 物品 id. 用來參照在其它.py檔裡用的. 2 ) 物品名稱. 在道具欄顯現的名稱. 3 ) 模組(mesh)列表. 每個模組紀錄以下數點: 3.1) 模組名稱. 3D模型的名稱或模組在原始檔(resource files)的名稱. 3.2) Modifier bits that this mesh matches. A list of item modifiers that will use this mesh instead of the default. The first mesh in the list is the default. (懂大意但不會翻= =a) 4 ) 物品旗標. 5 ) 物品性能(capabilities). 這個物品會用到的動畫. 6 ) 物品價值. 以denars為單位. 只有在玩家的trade skill 為10級時才會是這個價格. 7 ) 物品屬性. 定義物品的重量,常見度(abundance),難度,裝甲等級(armour ratings)等等. 8 ) Modifier bits. Modifiers that can be applied to this item. (這個不解) 9 ) [選用] 觸發(Triggers). 與此物品相關的觸發. 用Practice_sword來說的話: 1 ) 物品 id = "practice_sword" 2 ) 物品名稱 = "practice_sword" 3 ) 模組列表: 3.1) 模組名稱 = "practice_sword" 3.2) Modifier bits = 0 4 ) 物品旗標 = itp_type_one_handed_wpn|itp_melee|itp_primary|itp_secondary 5 ) 物品性能 = itc_longsword 6 ) 物品價值 = 3 7 ) 物品屬性 = weight(1.5)|spd_rtng(103)|weapon_length(90)|swing_damage (16,blunt)|thrust_damage(10,blunt) 8 ) Modifier bits = imodbits_none 9 ) 觸發 = None. 也就是說: - 此物品以 "practice_sword" 做為預設模組. - 此物品為 單手近戰武器(one-handed melee weapon). 裝備此物品的部隊會將其設為主 要武器(primary weapon). 亦可將其做為副手武器(secondary weapon). - 此物品動畫定義為 itc_longsword, 所以 "practice_sword" 可當做長劍(longsword) 使用. - 此物品重1.5公斤. 速度為103, 有效範圍為90公分. 揮舞時產生16鈍擊(blunt), 刺擊時產生10 鈍擊. - 此物品不使用modifiers. 屬性解說: == 通用類 abundance -- 單位是%. 此屬性與在商店存貨與戰鬥後取得機率成正比. 一般而言是100, 最低是0.(可以更高) weight -- 單位是公斤. 定義該物品重量. == itp_type_horse 馬類 body_armor 決定該馬種護甲值與血量. difficulty 決定需具有多高的Riding skill才能騎. horse_speed 決定跑速. horse_maneuver 決定操控性. horse_charge 決定衝撞步兵時的傷害力與減緩之速度.越高減緩之加速度越低. == itp_type_one_handed_wpn 單手武器類 difficulty 決定需具有多高的力量(STR)屬性才能使用. spd_rtng 武器揮擊與刺擊的速度. weapon_length -- 單位是公分. 武器的有效範圍. 此屬性決定可傷害之範圍,無視該物品之外觀大小. swing_damage -- 數值,種類. 決定基本揮擊傷害力與種類. thrust_damage -- 數值,種類. 決定基本刺擊傷害力與種類. == itp_type_two_handed_wpn 雙手武器類 與itp_type_one_handed_wpn相同. == itp_type_polearm 長槍類 與itp_type_one_handed_wpn相同. == itp_type_arrows 箭類 weapon_length -- 單位為公分. 箭的大小. thrust_damage -- 數值,種類. 決定增加至弓類物品的基本傷害力與種類. max_ammo 決定一格物品可有多少隻箭. == itp_type_bolts 矢類 與itp_type_arrows相同. == itp_type_shield 盾類 hit_points 決定該盾牌的耐久力. body_armor 決定該盾牌每擊可減少多少傷害. spd_rtng 決定舉盾時間. weapon_length 決定盾牌可防禦範圍. == itp_type_bow 弓類 difficulty 決定需具有多少 Power Draw 點數才能使用. spd_rtng 箭類裝填速度. shoot_speed 決定箭的飛行速度.若飛行速度極快則可擦傷路徑上的敵軍,而不需擊中他們. thrust_damage -- 數量,種類. 決定基本傷害與種類. == itp_type_crossbow 十字弓類 difficulty 決定需具有多少力量(STR)才可使用. spd_rtng 矢類裝填速度. shoot_speed 決定矢的飛行速度.若飛行速度極快則可擦商路徑上的敵軍,而不需擊中他們. thrust_damage -- 數值,種類. 決定基本傷害與種類. max_ammo 決定該十字弓每次裝填間可發射幾枚矢. == itp_type_thrown 投擲類 difficulty 決定需具有多少Power Throw點數才可使用. spd_rtng 裝填速度. shoot_speed 決定飛行速度. thrust_damage -- 數值,種類. 決定基本傷害與種類. max_ammo 決定該物品每一格可投擲幾次. weapon_length -- 單位是公分. 武器的射程. == itp_type_goods 商品類 food_quality 影響隊伍士氣. 50以上每次消耗食物都會提升士氣(?). max_ammo 該物品可消耗多少次. == itp_type_head_armor 頭甲類 head_armor 減低頭部傷害. body_armor 減低軀體傷害. leg_armor 減低下半身傷害. difficulty 決定最少需多少力量(STR)才能裝備此護甲. == itp_type_body_armor 軀甲類 與itp_type_head_armor相同. == itp_type_foot_armor 足甲類 與itp_type_head_armor相同. == itp_type_hand_armor 手甲類 與itp_type_head_armor相同. == itp_type_pistol 槍械類 difficulty 最少需多少力量(STR)才可使用此物品. spd_rtng 彈藥裝填速度. shoot_speed 彈藥飛行速度. thrust_damage -- 數值,種類. 決定基本傷害與種類. max_ammo 決定該槍械每次裝填間可發射幾次. accuracy -- 單位是% 擊中準星中心目標的機率. == itp_type_musket 毛瑟槍類 與itp_type_pistol相同. == itp_type_bullets 彈藥類 與itp_type_arrows相同 2.存檔後, 執行build_module.bat即可. python小弟還沒執行過.. m(_ _)m -- btw, bow 跟 crossbow應該都有accurcy stat吧? 應該是論壇列漏了? XD -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.113.184.249
Popdaniel:要如何開啟module.iem.py? 61.229.154.164 06/06 19:05
kaikaieric:好用的 記事本140.123.236.223 06/06 19:08
ducatiwolf:我最後執行build_module.bat了.. 218.165.131.42 06/07 00:46
ducatiwolf:然後他的那個畫面最後就出現了這樣一句 218.165.131.42 06/07 00:47
ducatiwolf:找不到D:\M.&B.\ModuleSystem\*.pyc 218.165.131.42 06/07 00:48
warrenchen:資料夾的"."拿掉 再試試 59.113.185.220 06/07 16:00