lazeras said:
(assign, "$love_interest_in_town_7", ":lady_no"),
(else_try),
(eq, "$love_interest_in_town_8", 0),
(assign, "$love_interest_in_town_8", ":lady_no"),
(try_end),
(try_end),
(gt, "$love_interest_in_town", 0),
],
"Attempt to visit a lady",
[
(jump_to_menu, "mnu_lady_visit"),
], "Door to the garden."),
("trade_with_merchants",
[
(party_slot_eq,"$current_town",slot_party_type, spt_town)
],
"Go to the marketplace.",
[
(try_begin),
(call_script, "script_cf_enter_center_location_bandit_check"),
(else_try),
(jump_to_menu,"mnu_town_trade"),
(try_end),
]),
########################################################################################################################
# KAOS BANKING KIT START #
########################################################################################################################
("kaoses_bank",
[
(try_begin),
(eq, "$bank_availability", 0),
(party_get_slot, ":has_bank", "$current_town", slot_town_has_bank),
(eq, ":has_bank", 1),
(else_try),
(eq, "$bank_availability", 1),
(store_faction_of_party, ":centre_faction", "$current_town"),
(party_get_slot, ":has_bank", ":centre_faction", slot_town_has_bank),
(try_end),
],
"Visit the bank.",
[
(try_begin),
(jump_to_menu,"mnu_Lazeras_banking_menu"),
(else_try),
(jump_to_menu,"mnu_KAOS_faction_banking_menu"),
(try_end),
]),
########################################################################################################################
# KAOS BANKING KIT END #
########################################################################################################################
("walled_center_manage",
[
(neg|party_slot_eq, "$current_town", slot_village_state, svs_under_siege),
(party_slot_eq, "$current_town", slot_town_lord, "trp_player"),
(assign, reg0, 1),
(try_begin),
(party_slot_eq, "$current_town", slot_party_type, spt_castle),
(assign, reg0, 0),
(try_end),
],
"Manage this {reg0?town:castle}.",
[
(assign, "$g_next_menu", "mnu_town"),
(jump_to_menu, "mnu_center_manage"),
]),
("walled_center_move_court",
[
(neg|party_slot_eq, "$current_town", slot_village_state, svs_under_siege),
(faction_slot_eq, "fac_player_supporters_faction", slot_faction_leader, "trp_player"),
(party_slot_eq, "$current_town", slot_town_lord, "trp_player"),
(eq, "$g_encountered_party_faction", "fac_player_supporters_faction"),
(neq, "$g_player_court", "$current_town"),
],
"Move your court here.",
[
(jump_to_menu, "mnu_establish_court"),
]),
("castle_station_troops",
[
(party_get_slot, ":town_lord", "$current_town", slot_town_lord),
(str_clear, s10),
(assign, ":player_can_draw_from_garrison", 0),
(try_begin), #option 1 - player is town lord
(eq, ":town_lord", "trp_player"),
(assign, ":player_can_draw_from_garrison", 1),
(else_try), #option 2 - town is unassigned and part of the player faction
(store_faction_of_party, ":faction", "$g_encountered_party"),
(eq, ":faction", "fac_player_supporters_faction"),
(neg|party_slot_ge, "$g_encountered_party", slot_town_lord, active_npcs_begin), #ie, zero or -1
####################################################################################################################
# scripts is a list of script records.
# Each script record contns the following two fields:
# 1) Script id: The prefix "script_" will be inserted when referencing scripts.
# 2) Operation block: This must be a valid operation block. See header_operations.py for reference.
####################################################################################################################
scripts = [
#script_game_start:
# This script is called when a new game is started
# INPUT: none
("game_start",
[
(faction_set_slot, "fac_player_supporters_faction", slot_faction_state, sfs_inactive),
########################################################################################################################
# KAOS BANKING KIT START #
########################################################################################################################
#only put banks in capitals
(try_for_range, ":center_no", walled_centers_begin, walled_centers_end),
(this_or_next|eq,":center_no","p_town_1"),
(this_or_next|eq,":center_no","p_town_5"),
(this_or_next|eq,":center_no","p_town_6"),
(this_or_next|eq,":center_no","p_town_8"),
(this_or_next|eq,":center_no","p_town_19"),
(this_or_next|eq,":center_no","p_town_23"),
(eq,":center_no","p_town_10"),
(party_set_slot,":center_no", slot_town_has_bank,1),
(else_try),
(party_set_slot,":center_no", slot_town_has_bank,0),
(try_end),
(assign, "$g_apply_Kaoses_bank_report_to_gold", 0),
(assign, "$g_bank_debt_interest_rate", 14),
(assign, "$g_bank_deposit_interest_rate", 5),
########################################################################################################################
# KAOS BANKING KIT END #
########################################################################################################################
(assign, "$g_player_luck", 200),
(assign, "$g_player_luck", 200),
(troop_set_slot, "trp_player", slot_troop_occupation, slto_kingdom_hero),
(store_random_in_range, ":starting_training_ground", training_grounds_begin, training_grounds_end),
(party_relocate_near_party, "p_main_party", ":starting_training_ground", 3),
(str_store_troop_name, s5, "trp_player"),
(party_set_name, "p_main_party", s5),
(call_script, "script_update_party_creation_random_limits"),
(assign, "$g_player_party_icon", -1),
#Warband changes begin -- set this early
(try_for_range, ":npc", 0, kingdom_ladies_end),
(this_or_next|eq, ":npc", "trp_player"),
(is_between, ":npc", active_npcs_begin, kingdom_ladies_end),
(troop_set_slot, ":npc", slot_troop_father, -1),
(troop_set_slot, ":npc", slot_troop_mother, -1),
(troop_set_slot, ":npc", slot_troop_guardian, -1),
(troop_set_slot, ":npc", slot_troop_spouse, -1),
(troop_set_slot, ":npc", slot_troop_betrothed, -1),
(troop_set_slot, ":npc", slot_troop_prisoner_of_party, -1),
(troop_set_slot, ":npc", slot_lady_last_suitor, -1),
(troop_set_slot, ":npc", slot_troop_stance_on_faction_issue, -1),
(store_random_in_range, ":decision_seed", 0, 10000),
(troop_set_slot, ":npc", slot_troop_set_decision_seed, ":decision_seed"), #currently not used
(troop_set_slot, ":npc", slot_troop_temp_decision_seed, ":decision_seed"), #currently not used, holds for at least 24 hours
(try_end),
(assign, "$g_lord_long_term_count", 0),
(call_script, "script_initialize_banner_info"),
(call_script, "script_initialize_item_info"),
(call_script, "script_initialize_aristocracy"),
(call_script, "script_initialize_npcs"),
(assign, "$disable_npc_complaints", 0),
#NPC companion changes end
Lav said:
Yeang Yeah said:
("dplmc_appoint_chamberlain",
[
(troop_set_auto_equip, "trp_dplmc_chamberlain", 0),
(troop_set_inventory_slot, "trp_dplmc_chamberlain", ek_body, "itm_tabard"),
(troop_set_inventory_slot, "trp_dplmc_chamberlain", ek_foot, "itm_leather_boots"),
(assign, "$g_player_chamberlain", "trp_dplmc_chamberlain"),
]),
("dplmc_appoint_chancellor",
[
(troop_set_inventory_slot, "trp_dplmc_chancellor", ek_body, "itm_nobleman_outfit"),
(troop_set_inventory_slot, "trp_dplmc_chancellor", ek_foot, "itm_leather_boots"),
(assign, "$g_player_chancellor", "trp_dplmc_chancellor"),
]),
("dplmc_appoint_constable",
[
(troop_set_inventory_slot, "trp_dplmc_constable", ek_body, "itm_dplmc_coat_of_plates_red_constable"),
(troop_set_inventory_slot, "trp_dplmc_constable", ek_foot, "itm_leather_boots"),
(assign, "$g_player_constable", "trp_dplmc_constable"),
]),
cah150 said:
phlpp said:
wolonggong said: