(
"hostile_action_town",0,
"What did you have in mind?.",
"none",
[
(party_slot_eq, "$current_town", slot_village_state, 0),
(neg|party_slot_ge, "$current_town", slot_village_infested_by_bandits, 1),
(party_get_slot, ":merchant_troop", "$current_town", slot_town_elder),
(assign, ":town_stores_not_empty", 0),
(try_for_range, ":slot_no", num_equipment_kinds, max_inventory_items + num_equipment_kinds),
(troop_get_inventory_slot, ":slot_item", ":merchant_troop", ":slot_no"),
(ge, ":slot_item", 0),
(assign, ":town_stores_not_empty", 1),
(try_end),
(eq, ":town_stores_not_empty", 1),
],
[
("bank_hostile",[],
"Rob the bank.",
[
(jump_to_menu, "mnu_bank_hostile_action"),
]),
("breaking_prison_bad_action",[],
"Break into the prison.",
[
(jump_to_menu, "mnu_breaking_prison_bad_action"),
]),
("back_to_town_menu",[],"Forget it.",
[
(jump_to_menu,"mnu_town"),
]),
]
),
(
"bank_hostile_action",0,
"How?.",
"none",
[
(party_slot_eq, "$current_town", slot_village_state, 0),
(neg|party_slot_ge, "$current_town", slot_village_infested_by_bandits, 1),
(party_get_slot, ":merchant_troop", "$current_town", slot_town_elder),
(assign, ":town_stores_not_empty", 0),
(try_for_range, ":slot_no", num_equipment_kinds, max_inventory_items + num_equipment_kinds),
(troop_get_inventory_slot, ":slot_item", ":merchant_troop", ":slot_no"),
(ge, ":slot_item", 0),
(assign, ":town_stores_not_empty", 1),
(try_end),
(eq, ":town_stores_not_empty", 1),
],
[
("crack_the_safe",[],
"Crack the safe, requires 20 INT.",
[
(jump_to_menu, "mnu_crack_safe_confirm"),
]),
("blast_the_safe",[],
"Blast the safe, requires dynamite.",
[
(jump_to_menu, "mnu_blast_safe_confirm"),
]),
("force_banker",[],
"Force the banker to open the safe.",
[
(jump_to_menu, "mnu_force_banker_confirm"),
]),
("back_to_town_menu",[],"Forget it.",
[
(jump_to_menu,"mnu_town"),
]),
]
),
(
"breaking_prison_bad_action",0,
"What action do you have in mind?",
"none",
[],
[
("forget_it",[],
"Forget it.",[(jump_to_menu,"mnu_town")]),
],
),
(
"crack_safe_confirm",0,
"You sure?",
"none",
[],
[
("yeah_sure_why_the_heck_not",[],
"Yes.",
[]),
("forget_it",[],
"Forget it.",[(jump_to_menu,"mnu_town")]),
],
),
(
"blast_safe_confirm",0,
"You sure?",
"none",
[],
[
("yeah_sure_why_the_heck_not",[],
"Yes.",
[]),
("forget_it",[],
"Forget it.",[(jump_to_menu,"mnu_town")]),
],
),
(
"force_banker_confirm",0,
"You sure?",
"none",
[],
[
("yeah_sure_why_the_heck_not",[],
"Yes.",
[]),
("forget_it",[],
"Forget it.",[(jump_to_menu,"mnu_town")]),
],
),
]