Şehirlerdeki gibi köylerde de geceleri para karşılığı bekleyebileceğiz. ( Burada biraz bekle ) oluyor.
module_game_menus'ü açıyoruz ve alttaki kod kümesini buluyoruz.
Daha sonra bu kod kümesinin altına, alttaki kod kümesini yapıştırıyoruz.
Şöyle gözükecek
Kaydedip build_module'yi çalıştırın.
module_game_menus'ü açıyoruz ve alttaki kod kümesini buluyoruz.
Code:
("village_hostile_action",[(party_slot_eq, "$current_town", slot_village_state, 0),
(neg|party_slot_ge, "$current_town", slot_village_infested_by_bandits, 1),
(neq, "$players_kingdom", "$g_encountered_party_faction"),
], "Take a hostile action.",
[(jump_to_menu,"mnu_village_hostile_action"),
]),
Daha sonra bu kod kümesinin altına, alttaki kod kümesini yapıştırıyoruz.
Code:
("castle_wait",
[
#(party_slot_eq,"$current_town",slot_party_type, spt_castle),
(this_or_next|ge, "$g_encountered_party_relation", 0),
(eq,"$castle_undefended",1),
(assign, ":can_rest", 1),
(str_clear, s1),
(try_begin),
(neg|party_slot_eq, "$current_town", slot_town_lord, "trp_player"),
(troop_get_slot, ":player_spouse", "trp_player", slot_troop_spouse),
(neg|party_slot_eq, "$current_town", slot_town_lord, ":player_spouse"),
(party_slot_ge, "$current_town", slot_town_lord, "trp_player"), #can rest for free in castles and towns with unassigned lords
(store_faction_of_party, ":current_town_faction", "$current_town"),
(neq, ":current_town_faction", "fac_player_supporters_faction"),
(party_get_num_companions, ":num_men", "p_main_party"),
(store_div, reg1, ":num_men", 4),
(val_add, reg1, 1),
(str_store_string, s1, "@ ({reg1} denars per night)"),
(store_troop_gold, ":gold", "trp_player"),
(lt, ":gold", reg1),
(assign, ":can_rest", 0),
(try_end),
(eq, ":can_rest", 1),
],
"Wait here for some time{s1}.",
[
(assign, "$auto_enter_town", "$current_town"),
(assign, "$g_town_visit_after_rest", 1),
(assign, "$g_last_rest_center", "$current_town"),
(assign, "$g_last_rest_payment_until", -1),
(try_begin),
(party_is_active, "p_main_party"),
(party_get_current_terrain, ":cur_terrain", "p_main_party"),
(try_begin),
(eq, ":cur_terrain", rt_desert),
(unlock_achievement, ACHIEVEMENT_SARRANIDIAN_NIGHTS),
(try_end),
(try_end),
(rest_for_hours_interactive, 24 * 7, 5, 0), #rest while not attackable
(change_screen_return),
]),
Şöyle gözükecek
Code:
("village_hostile_action",[(party_slot_eq, "$current_town", slot_village_state, svs_normal),
(neg|party_slot_ge, "$current_town", slot_village_infested_by_bandits, 1),
(neq, "$players_kingdom", "$g_encountered_party_faction"),
], "Take a hostile action.",
[(jump_to_menu,"mnu_village_hostile_action"),
]),
("castle_wait",
[
#(party_slot_eq,"$current_town",slot_party_type, spt_castle),
(this_or_next|ge, "$g_encountered_party_relation", 0),
(eq,"$castle_undefended",1),
(assign, ":can_rest", 1),
(str_clear, s1),
(try_begin),
(neg|party_slot_eq, "$current_town", slot_town_lord, "trp_player"),
(troop_get_slot, ":player_spouse", "trp_player", slot_troop_spouse),
(neg|party_slot_eq, "$current_town", slot_town_lord, ":player_spouse"),
(party_slot_ge, "$current_town", slot_town_lord, "trp_player"), #can rest for free in castles and towns with unassigned lords
(store_faction_of_party, ":current_town_faction", "$current_town"),
(neq, ":current_town_faction", "fac_player_supporters_faction"),
(party_get_num_companions, ":num_men", "p_main_party"),
(store_div, reg1, ":num_men", 4),
(val_add, reg1, 1),
(str_store_string, s1, "@ ({reg1} denars per night)"),
(store_troop_gold, ":gold", "trp_player"),
(lt, ":gold", reg1),
(assign, ":can_rest", 0),
(try_end),
(eq, ":can_rest", 1),
],
"Wait here for some time{s1}.",
[
(assign, "$auto_enter_town", "$current_town"),
(assign, "$g_town_visit_after_rest", 1),
(assign, "$g_last_rest_center", "$current_town"),
(assign, "$g_last_rest_payment_until", -1),
(try_begin),
(party_is_active, "p_main_party"),
(party_get_current_terrain, ":cur_terrain", "p_main_party"),
(try_begin),
(eq, ":cur_terrain", rt_desert),
(unlock_achievement, ACHIEVEMENT_SARRANIDIAN_NIGHTS),
(try_end),
(try_end),
(rest_for_hours_interactive, 24 * 7, 5, 0), #rest while not attackable
(change_screen_return),
]),
Kaydedip build_module'yi çalıştırın.