в скриптах
("castle_manage",
[
(party_slot_eq, "$current_town", slot_town_lord, "trp_player")
]
,"Manage this castle.",
[
(assign, "$g_next_menu", "mnu_castle"),
(jump_to_menu, "mnu_center_manage"),
]),
("recruit_nobiles",
[
(call_script, "script_cf_castle_recruit_nobiles_cond"), ------------------------------------------- на это ругается
]
,"Recruit Nobiles.",
[
(try_begin),
(jump_to_menu, "mnu_recruit_nobiles"),
(try_end),
]),
#script_update_nobile_troops_in_castle
# INPUT: arg1 = center_no
# OUTPUT: none
("update_nobile_troops_in_castle",
[
(store_script_param, ":center_no", 1),
(party_get_slot, ":player_relation", ":center_no", slot_center_player_relation),
(party_get_slot, ":center_culture", ":center_no", slot_center_culture),
## (try_begin),
## (eq, "$cheat_mode", 2),
## (str_store_party_name, s4, ":center_no"),
## (str_store_faction_name, s5, ":center_culture"),
## (display_message, "str_updating_nobiles_for_s4_faction_is_s5"),
## (try_end),
(faction_get_slot, ":nobile_troop", ":center_culture", slot_faction_tier_1_troop),
(assign, ":nobile_troop_tier", 1),
(store_div, ":tier_upgrades", ":player_relation", 10),
(try_for_range, ":unused", 0, ":tier_upgrades"),
(store_random_in_range, ":random_no", 0, 100),
(lt, ":random_no", 10),
(store_random_in_range, ":random_no", 0, 2),
(troop_get_upgrade_troop, ":upgrade_troop_no", ":nobile_troop", ":random_no"),
(try_begin),
(le, ":upgrade_troop_no", 0),
(troop_get_upgrade_troop, ":upgrade_troop_no", ":nobile_troop", 0),
(try_end),
(gt, ":upgrade_troop_no", 0),
(val_add, ":nobile_troop_tier", 1),
(assign, ":nobile_troop", ":upgrade_troop_no"),
(try_end),
(assign, ":upper_limit", 7),
(try_begin),
(ge, ":player_relation", 5),
(assign, ":upper_limit", ":player_relation"),
(val_div, ":upper_limit", 2),
(val_add, ":upper_limit", 10),
(else_try),
(lt, ":player_relation", 0),
(assign, ":upper_limit", 0),
(try_end),
(val_mul, ":upper_limit", 3),
(store_add, ":amount_random_divider", 2, ":nobile_troop_tier"),
(val_div, ":upper_limit", ":amount_random_divider"),
(store_random_in_range, ":amount", 0, ":upper_limit"),
(party_set_slot, ":center_no", slot_center_nobile_troop_type, ":nobile_troop"),
(party_set_slot, ":center_no", slot_center_nobile_troop_amount, ":amount"),
]),
в гейм меню
(
"recruit_nobiles",0,
"{s18}",
"none",
[(party_get_slot, ":nobile_troop", "$current_town", slot_center_nobile_troop_type),
(party_get_slot, ":nobile_amount", "$current_town", slot_center_nobile_troop_amount),
(party_get_free_companions_capacity, ":free_capacity", "p_main_party"),
(store_troop_gold, ":gold", "trp_player"),
(store_div, ":gold_capacity", ":gold", 500),#500 denars per man
(assign, ":party_capacity", ":free_capacity"),
(val_min, ":party_capacity", ":gold_capacity"),
(try_begin),
(gt, ":party_capacity", 0),
(val_min, ":nobile_amount", ":party_capacity"),
(try_end),
(assign, reg5, ":nobile_amount"),
(assign, reg7, 0),
(try_begin),
(gt, ":nobile_amount", ":gold_capacity"),
(assign, reg7, 1), #not enough money
(try_end),
(try_begin),
(eq, ":nobile_amount", 0),
(str_store_string, s18, "@No one here seems to be willing to join your party."),
(else_try),
(store_mul, reg6, ":nobile_amount", 500),#500 denars per man
(str_store_troop_name_by_count, s3, ":nobile_troop", ":nobile_amount"),
(try_begin),
(eq, reg5, 1),
(str_store_string, s18, "@One {s3} nobiles to follow you."),
(else_try),
(str_store_string, s18, "@{reg5} {s3} nobiler to follow you."),
(try_end),
(set_background_mesh, "mesh_pic_recruits"),
(try_end),
],
[
("continue_not_enough_gold",
[
(eq, reg7, 1),
],
"I don't have enough money...",
[
(jump_to_menu,"mnu_castle"),
]),
("continue",
[
(eq, reg7, 0),
(eq, reg5, 0),
], #noone willing to join
"Continue...",
[
(party_set_slot, "$current_town", slot_center_nobile_troop_amount, -1),
(jump_to_menu,"mnu_castle"),
]),
("recruit_them",
[
(eq, reg7, 0),
(gt, reg5, 0),
],
"Recruit them ({reg6} denars).",
[
(call_script, "script_castle_recruit_nobiles_recruit"),----------------------------------и на это
(jump_to_menu,"mnu_castle"),
]),
("forget_it",
[
(eq, reg7, 0),
(gt, reg5, 0),
],
"Forget it.",
[
(jump_to_menu,"mnu_castle"),
]),
],
),
всё - дальше никаких мыслей(кроме чёрных),что-то изобразил,но это явно не скрипт.....а :embarrassed:и ведь меню кастле в игре есть - видел,там,где гарнизон и строительство....
так может я всё-таки был прав,и новой модельки у тебя нет - ведь если нечего поставить модуль поставит пустое место.(есть camp-ставит,нет manscamp - пусто)
а по поводу того что лагерю принадлежит деревня, значит лагерь записан как замок или город,в игре только они хапают чужие деревни когда их создаёшь?