- 好友
- 1
- 在线时间
- 0 小时
- 最后登录
- 2024-3-13
扈从
- UID
- 3096100
- 第纳尔
- 937
- 精华
- 0
- 互助
- 6
- 荣誉
- 2
- 贡献
- 10
- 魅力
- 249
- 注册时间
- 2019-8-16
鲜花( 25) 鸡蛋( 0)
|
铁骨和强击不能点,下边的都是好的,mod是自己做的,所有有PY代码,不过代码是领军者的代码,之前用的战团原版的,后来换领军者就成这样了。
(
"choose_skill",mnf_disable_all_keys,
"{s13}",
"none",
[
(assign,"$current_string_reg",10),
(assign, ":difficulty", 0),
(try_begin),
(eq, "$character_gender", tf_female),
(str_store_string, s14, "str_woman"),
(val_add, ":difficulty", 1),
(else_try),
(str_store_string, s14, "str_man"),
(try_end),
(try_begin),
(eq,"$background_type",cb_noble),
(str_store_string, s15, "str_noble"),
(val_sub, ":difficulty", 1),
(else_try),
(str_store_string, s15, "str_common"),
(try_end),
(try_begin),
(eq, ":difficulty", -1),
(str_store_string, s16, "str_may_find_that_you_are_able_to_take_your_place_among_calradias_great_lords_relatively_quickly"),
(else_try),
(eq, ":difficulty", 0),
(str_store_string, s16, "str_may_face_some_difficulties_establishing_yourself_as_an_equal_among_calradias_great_lords"),
(else_try),
(eq, ":difficulty", 1),
(str_store_string, s16, "str_may_face_great_difficulties_establishing_yourself_as_an_equal_among_calradias_great_lords"),
(try_end),
],
[
("begin_adventuring",[],"Become an adventurer and ride to your destiny.",
[
(set_show_messages, 0),
(troop_raise_attribute, "trp_player",ca_strength,6),
(troop_raise_attribute, "trp_player",ca_agility,4),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_attribute, "trp_player",ca_intelligence,3),
(troop_raise_skill, "trp_player","skl_ironflesh",3),
(troop_raise_skill, "trp_player","skl_power_strike",2),
(troop_raise_skill, "trp_player","skl_shield",1),
(troop_raise_skill, "trp_player","skl_athletics",2),
(troop_raise_skill, "trp_player","skl_spotting",1),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_polearm,10),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(troop_raise_proficiency, "trp_player",wpt_crossbow,10),
(troop_raise_proficiency, "trp_player",wpt_throwing,10),
(troop_add_item, "trp_player","itm_nomad_vest",1),
(troop_add_item, "trp_player","itm_ankle_boots",1),
(troop_add_item, "trp_player","itm_knife",1),
(troop_add_item, "trp_player","itm_practice_crossbow",1),
(troop_add_item, "trp_player","itm_tutorial_bolts",1),
(troop_add_item, "trp_player","itm_practice_horse",1),
(troop_add_item, "trp_player","itm_cabbages",1),
(troop_add_item, "trp_player","itm_bread",1),
(troop_add_gold, "trp_player", 150),
(try_begin),
(eq,"$background_answer_3",cb3_poacher),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_skill, "trp_player","skl_engineer",1),
(troop_add_gold, "trp_player", 10),
(troop_raise_proficiency, "trp_player",wpt_polearm,10),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(else_try),
(eq,"$background_answer_3",cb3_craftsman),##骑 术
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_skill, "trp_player","skl_riding",2),
(troop_raise_skill, "trp_player","skl_horse_archery",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,20),
(troop_raise_proficiency, "trp_player",wpt_polearm,20),
(troop_add_gold, "trp_player",80),
(else_try),
(eq,"$background_answer_3",cb3_peddler),##领 导 术
(troop_raise_attribute, "trp_player",ca_charisma,2),
(troop_raise_skill, "trp_player","skl_leadership",2),
(troop_raise_skill, "trp_player","skl_prisoner_management",1),
(troop_add_item, "trp_player","itm_leather_gloves",imod_plain),
(troop_add_gold, "trp_player", 40),
(troop_raise_proficiency, "trp_player",wpt_archery,15),
(troop_raise_proficiency, "trp_player",wpt_crossbow,15),
(else_try),
(eq,"$background_answer_3",cb3_troubadour),##医 书
(troop_raise_attribute, "trp_player",ca_intelligence,2),
(troop_raise_skill, "trp_player","skl_surgery",2),
(troop_raise_skill, "trp_player","skl_wound_treatment",1),
(troop_add_gold, "trp_player", 30),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_add_item, "trp_player","itm_book_wound_treatment_reference",0),
(else_try),
(eq,"$background_answer_3",cb3_squire),##剑 术
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_skill, "trp_player","skl_weapon_master",1),
(troop_raise_skill, "trp_player","skl_power_strike",1),
(troop_add_gold, "trp_player", 50),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,20),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,20),
(troop_raise_proficiency, "trp_player",wpt_polearm,20),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(troop_raise_proficiency, "trp_player",wpt_crossbow,10),
(troop_raise_proficiency, "trp_player",wpt_throwing,10),
(troop_add_item, "trp_player","itm_sword_medieval_c_small",1),
(else_try),
(eq,"$background_answer_3",cb3_lady_in_waiting),##战 术
(troop_raise_attribute, "trp_player",ca_intelligence,2),
(troop_raise_skill, "trp_player","skl_tactics",2),
(troop_raise_skill, "trp_player","skl_trainer",1),
(troop_add_gold, "trp_player", 60),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_crossbow,15),
(troop_add_item, "trp_player","itm_book_tactics",0),
(else_try),
(eq,"$background_answer_3",cb3_student),##商 业
(troop_raise_attribute, "trp_player",ca_intelligence,2),
(troop_raise_skill, "trp_player","skl_trade",2),
(troop_raise_skill, "trp_player","skl_inventory_management",1),
(troop_add_gold, "trp_player", 80),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_crossbow,10),
(store_random_in_range, ":book_no", books_begin, books_end),
(troop_add_item, "trp_player",":book_no",0),
(try_end),
(try_begin),
(eq, "$background_type", cb_noble),
(jump_to_menu, "mnu_auto_return"),
#normal_banner_begin
(start_presentation, "prsnt_banner_selection"),
#custom_banner_begin
# (start_presentation, "prsnt_custom_banner"),
(else_try),
(change_screen_return, 0),
(try_end),
(set_show_messages, 1),
]),
("go_back_dot",[],"Go back.",[
(jump_to_menu,"mnu_start_character_4"),
]),
]
),
|
("banner_selection",0,mesh_load_window,[
(ti_on_presentation_load,
[(set_fixed_point_multiplier, 1000),
(str_store_string, s1, "str_banner_selection_text"),
(create_text_overlay, reg1, s1, tf_center_justify),
(position_set_x, pos1, 500),
(position_set_y, pos1, 670),
(overlay_set_position, reg1, pos1),
(overlay_set_text, reg1, s1),
# (create_button_overlay, "$g_presentation_obj_banner_selection_1", "@Next Page", tf_center_justify),
# (position_set_x, pos1, 500),
# (position_set_y, pos1, 50),
# (overlay_set_position, "$g_presentation_obj_banner_selection_1", pos1),
(str_clear, s0),
(create_text_overlay, reg1, s0, tf_scrollable),
(position_set_x, pos1, 50),
(position_set_y, pos1, 50),
(overlay_set_position, reg1, pos1),
(position_set_x, pos1, 850),
(position_set_y, pos1, 585),
(overlay_set_area_size, reg1, pos1),
(set_container_overlay, reg1),
(assign, ":try_end", banner_meshes_end_minus_one),
(store_sub, ":num_npc_kingdoms", commom_kingdoms_end, commom_kingdoms_begin), ## CC
(val_sub, ":try_end", ":num_npc_kingdoms"), #do not allow kingdom banners to be selected
# (store_mul, ":begin_mesh", 16, "$g_presentation_page_no"),
# (val_add, ":begin_mesh", banner_meshes_begin),
# (store_add, ":try_end_2", ":begin_mesh", 16),
# (val_min, ":try_end", ":try_end_2"),
# (store_add, "$g_presentation_banner_start", "$g_presentation_obj_banner_selection_1", 1),
(store_sub, ":num_banners", ":try_end", banner_meshes_begin),
(store_div, ":num_rows", ":num_banners", 12),
(store_mod, ":extra_row", ":num_banners", 12),
(val_min, ":extra_row", 1),
(val_add, ":num_rows", ":extra_row"),
(store_mul, ":y_pos", ":num_rows", 150),
(val_sub, ":y_pos", 15),
(assign, ":x_pos", 40),
(assign, "$g_cur_slot_no", 0),
(try_for_range, ":cur_banner_mesh", banner_meshes_begin, ":try_end"),
(create_image_button_overlay, reg1, ":cur_banner_mesh", ":cur_banner_mesh"),
(position_set_x, pos1, ":x_pos"),
(position_set_y, pos1, ":y_pos"),
(overlay_set_position, reg1, pos1),
(position_set_x, pos1, 60),
(position_set_y, pos1, 60),
(overlay_set_size, reg1, pos1),
(troop_set_slot, "trp_temp_array_a", "$g_cur_slot_no", reg1),
(troop_set_slot, "trp_temp_array_b", "$g_cur_slot_no", ":cur_banner_mesh"),
(val_add, "$g_cur_slot_no", 1),
## position
(val_add, ":x_pos", 70),
(ge, ":x_pos", 70*12+40),
(assign, ":x_pos", 40),
(val_sub, ":y_pos", 150),
(try_end),
(set_container_overlay, -1),
(presentation_set_duration, 999999),
# ####### mouse fix pos system #######
# (call_script, "script_mouse_fix_pos_ready"),
# ####### mouse fix pos system #######
]),
(ti_on_presentation_event_state_change,
[(store_trigger_param_1, ":object"),
# (try_begin),
# (eq, ":object", "$g_presentation_obj_banner_selection_1"),
# (val_add, "$g_presentation_page_no", 1),
# (val_mod, "$g_presentation_page_no", 9), ## CC
# (start_presentation, "prsnt_banner_selection"),
# (else_try),
## CC give back the lord's banner ($g_troop_take_back_banner)
(try_begin),
(gt, "$g_troop_take_back_banner", 0),
(troop_get_slot, ":player_cur_banner_spr", "trp_player", slot_troop_banner_scene_prop),
(troop_set_slot, "$g_troop_take_back_banner", slot_troop_banner_scene_prop, ":player_cur_banner_spr"),
(store_sub, ":cur_banner", ":player_cur_banner_spr", banner_scene_props_begin),
(val_add, ":cur_banner", banner_map_icons_begin),
(try_begin),
(troop_get_slot, ":cur_party", "$g_troop_take_back_banner", slot_troop_leaded_party),
(gt, ":cur_party", 0),
(party_set_banner_icon, ":cur_party", ":cur_banner"),
(try_end),
(try_begin), # bandit_heroes
(is_between, "$g_troop_take_back_banner", bandit_heroes_begin, bandit_heroes_end),
(store_sub, ":pt_no", "$g_troop_take_back_banner", bandit_heroes_begin),
(val_add, ":pt_no", bandit_party_template_begin),
(party_template_get_slot, ":cur_party", ":pt_no", slot_party_template_hero_party_id),
(gt, ":cur_party", 0),
(party_set_banner_icon, ":cur_party", ":cur_banner"),
(try_end),
(try_for_range, ":cur_center", walled_centers_begin, walled_centers_end),
(party_slot_eq, ":cur_center", slot_town_lord, "$g_troop_take_back_banner"),
(party_set_banner_icon, ":cur_center", ":cur_banner"),
(try_end),
(try_end),
## CC
(try_for_range, ":trp_slot_index", 0, "$g_cur_slot_no"),
(troop_slot_eq, "trp_temp_array_a", ":trp_slot_index", ":object"),
(troop_get_slot, ":cur_banner_mesh", "trp_temp_array_b", ":trp_slot_index"),
(store_sub, ":selected_banner", ":cur_banner_mesh", banner_meshes_begin),
(store_add, ":selected_banner_map_icon", ":selected_banner", banner_map_icons_begin),
(party_set_banner_icon, "p_main_party", ":selected_banner_map_icon"),
(store_add, ":selected_banner_spr", ":selected_banner", banner_scene_props_begin),
(troop_set_slot, "trp_player", slot_troop_banner_scene_prop, ":selected_banner_spr"),
#Correcting banners according to the player banner
#(assign, ":end_cond", active_npcs_end),
#(try_for_range, ":cur_troop", original_kingdom_heroes_begin, ":end_cond"),
# (troop_slot_eq, ":cur_troop", slot_troop_banner_scene_prop, ":selected_banner_spr"),
# (str_store_troop_name, s7, ":cur_troop"),
# (display_message, "@DEBUGS : {s7}'s banner is changed"),
# (troop_set_slot, ":cur_troop", slot_troop_banner_scene_prop, banner_scene_props_end_minus_one),
# (assign, ":end_cond", 0),
#(try_end),
(assign, ":troop_to_change", 0),
(assign, ":end_cond", active_npcs_end),
(try_for_range, ":cur_troop", active_npcs_begin, ":end_cond"),
(troop_slot_eq, ":cur_troop", slot_troop_banner_scene_prop, ":selected_banner_spr"),
(assign, ":troop_to_change", ":cur_troop"),
(assign, ":end_cond", 0),
(troop_set_slot, ":cur_troop", slot_troop_banner_scene_prop, banner_scene_props_end_minus_one),
(troop_get_slot, ":cur_party", ":cur_troop", slot_troop_leaded_party),
(gt, ":cur_party", 0),
(party_set_banner_icon, ":cur_party", banner_map_icons_end_minus_one),
(try_end),
## CC
(assign, ":end_cond", bandit_heroes_end),
(try_for_range, ":cur_troop", bandit_heroes_begin, ":end_cond"),
(troop_slot_eq, ":cur_troop", slot_troop_banner_scene_prop, ":selected_banner_spr"),
(assign, ":troop_to_change", ":cur_troop"),
(assign, ":end_cond", 0),
(troop_set_slot, ":cur_troop", slot_troop_banner_scene_prop, banner_scene_props_end_minus_one),
(store_sub, ":pt_no", ":cur_troop", bandit_heroes_begin),
(val_add, ":pt_no", bandit_party_template_begin),
(party_template_get_slot, ":cur_party", ":pt_no", slot_party_template_hero_party_id),
(gt, ":cur_party", 0),
(party_set_banner_icon, ":cur_party", banner_map_icons_end_minus_one),
(try_end),
(assign, "$g_troop_take_back_banner", ":troop_to_change"),
## CC
(try_for_range, ":cur_center", walled_centers_begin, walled_centers_end),
(try_begin),
(party_slot_eq, ":cur_center", slot_town_lord, "trp_player"),
(party_set_banner_icon, ":cur_center", ":selected_banner_map_icon"),
(else_try),
(party_slot_eq, ":cur_center", slot_town_lord, ":troop_to_change"),
(party_set_banner_icon, ":cur_center", banner_map_icons_end_minus_one),
(try_end),
(try_end),
(try_begin),
(gt, "$g_presentation_next_presentation", 0),
(start_presentation, "$g_presentation_next_presentation"),
(else_try),
(presentation_set_duration, 0),
(try_end),
(try_end),
# (try_end),
]),
|
水平菜看不出哪里有问题,Y的参数也改过,670和585那两个,改了没用-0-,其他就不知道哪里的问题了!
|
|