骑马与砍杀之水域航行(海战)的修改
(2010-10-05 15:02:47)
标签:
骑马与砍杀水域航行(海战)修改游戏 |
分类: 骑马与砍杀图文攻略教程 |
1 有些码没有指定放置位置 比如
Now to get the ships officially in game just add this to module_scene_props:
下面是场景物品部分
module system\module_scene_props.py 里加上:
#################################################
#########SEA BATTLES BEGIN
#################################################
("ship",sokf_moveable,"longship","bo_longship",
[ (ti_on_scene_prop_init,
[
(set_position_delta,0,0,0),
(store_trigger_param_1,
":instance_no"),
(party_set_slot,"p_ship_colisions",":instance_no",0),
]),]),
("ships_end",0,0,0,[]),
("enemy_ship",sokf_moveable,"longship","bo_longship", [ (ti_on_scene_prop_init,
[
(set_position_delta,0,0,0),
(store_trigger_param_1,
":instance_no"),
(party_set_slot,"p_ship_colisions",":instance_no",0),
]),]),
("enemy_ships_end",0,0,0,[]),
("universal_end",0,0,0,[]),
("ship_protect",0,0,"bo_gourd_spike",[]),
("enemy_ship_protect",0,0,"bo_gourd_spike",[]),
#################################################
#########SEA BATTLES END
#################################################
That covers the ship props themselves, now let's do the fight scenes themselves. Open up module_scenes and add:
这样就有了船这个场景物品,现在来设定战斗场景
module system\module_scenes.py 里加上
("sea_b",sf_generate,"none",
"none",
(0,0),(240,240),-0.5,"0x0000000030000000c00d2348000000008000000000000000",
[],[]),
("sea_land",sf_generate,"none", "none", (0,0),(240,240),-0.5,"0x0000000030000000c00d2348000000008000000000000000",
[],[]),
And finally, to help with some bugfinding, add this to module_parties:
最后, 为方便寻找bug, 在module system\module_parties.py 加上这个
("burning_buildings","If you see me, report the fire bug.", pf_disabled|icon_village_a|pf_village,
no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(0, -50),[],
170),
("ship_colisions","If you see me, report the colision bug.", pf_disabled|icon_village_a|pf_village,
no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(0, -50),[],
170),
这个没有说明是不是直接加在各py的最后?
2关于覆盖
Now with your new "water" terrain ready to go, you can open up your module_game_menus and replace the "encounter_attack" menu with this:
现在"water"贴图已经准备好了,你可以打开module_game_menus.py,找到"encounter_attack"这一段,然后将下面的代码覆盖你的原文。
("encounter_attack",[
(eq,
"$encountered_party_friendly", 0),
(store_troop_health,reg(5)),(party_get_current_terrain,":terrain","p_main_party"),
(neq,":terrain",rt_steppe),
],
"Charge the
enemy.",[
(assign,
"$g_battle_result", 0),
(assign,
"$g_engaged_enemy", 1),
(call_script, "script_calculate_renown_value"),
(call_script, "script_calculate_battle_advantage"),
(set_battle_advantage, reg0),
(set_party_battle_mode),
(try_begin),
Now to get the ships officially in game just add this to module_scene_props:
下面是场景物品部分
#################################################
#########SEA BATTLES BEGIN
#################################################
("ships_end",0,0,0,[]),
("enemy_ship",sokf_moveable,"longship","bo_longship", [
("enemy_ships_end",0,0,0,[]),
("universal_end",0,0,0,[]),
("ship_protect",0,0,"bo_gourd_spike",[]),
("enemy_ship_protect",0,0,"bo_gourd_spike",[]),
#################################################
#########SEA BATTLES END
#################################################
That covers the ship props themselves, now let's do the fight scenes themselves. Open up module_scenes and add:
这样就有了船这个场景物品,现在来设定战斗场景
("sea_land",sf_generate,"none", "none", (0,0),(240,240),-0.5,"0x0000000030000000c00d23
And finally, to help with some bugfinding, add this to module_parties:
最后, 为方便寻找bug, 在module system\module_parties.py
("burning_buildings","If you see me, report the fire bug.",
("ship_colisions","If you see me, report the colision bug.",
这个没有说明是不是直接加在各py的最后?
2关于覆盖
Now with your new "water" terrain ready to go, you can open up your module_game_menus and replace the "encounter_attack" menu with this:
现在"water"贴图已经准备好了,你可以打开module_game_menus.py,找到"encounter_attack"这一段,然后将下面的代码覆盖你的原文。
("encounter_attack",[