Tinerfe
Recruit
That is very silly.
Just do that.
1º Open module_game_menus.py
2º Find this line:
3º Paste it under that
End.
You will find a new option in the "village menu" for store troops in it!
Just do that.
1º Open module_game_menus.py
2º Find this line:
Code:
],"Door to the village center."),
3º Paste it under that
Code:
("village_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
(assign, ":player_can_draw_from_garrison", 1),
(else_try), #option 3 - town was captured by player
(lt, ":town_lord", 0), #ie, unassigned
(store_faction_of_party, ":village_faction", "$g_encountered_party"),
(eq, "$players_kingdom", ":village_faction"),
(eq, "$g_encountered_party", "$g_castle_requested_by_player"),
(str_store_string, s10, "str_retrieve_garrison_warning"),
(assign, ":player_can_draw_from_garrison", 1),
(else_try),
(lt, ":town_lord", 0), #ie, unassigned
(store_faction_of_party, ":village_faction", "$g_encountered_party"),
(eq, "$players_kingdom", ":village_faction"),
(store_party_size_wo_prisoners, ":party_size", "$g_encountered_party"),
(eq, ":party_size", 0),
(str_store_string, s10, "str_retrieve_garrison_warning"),
(assign, ":player_can_draw_from_garrison", 1),
(else_try),
(party_slot_ge, "$g_encountered_party", slot_town_lord, active_npcs_begin),
(store_faction_of_party, ":village_faction", "$g_encountered_party"),
(eq, "$players_kingdom", ":village_faction"),
(troop_slot_eq, "trp_player", slot_troop_spouse, ":town_lord"),
(assign, ":player_can_draw_from_garrison", 1),
(try_end),
(eq, ":player_can_draw_from_garrison", 1),
],
"Manage the garrison {s10}",
[
(change_screen_exchange_members,1),
])
End.
You will find a new option in the "village menu" for store troops in it!