sepanol
Recruit

I have two problems i couldnt figure out,
I wanna create mercenaries unique for each faction, that can be used,hired by only members of that faction or the main player (me). In the troops.py, i set each mercenary faction to whoever (example , Cataphract for Sarranids, fac_kingdom_6)
but i see cataphracts in any town regardless the faction i put. I just want him to appear in Sarranid towns and used by sarranid lords. Is there a way to achieve what i want ?
And second thing is,
I wanna put a new building improvement to Towns, Chapel. And i want my troops to get morale and fully healed whenever my party visit the town (or better if i stay overnight_). I am trying to figure out how, on simple triggers, script and constant. But i didnt get the commands
# Checking center upgrades
(12,
[(try_for_range, ":center_no", centers_begin, centers_end),
(party_get_slot, ":cur_improvement", ":center_no", slot_center_current_improvement),
(gt, ":cur_improvement", 0),
(party_get_slot, ":cur_improvement_end_time", ":center_no", slot_center_improvement_end_hour),
(store_current_hours, ":cur_hours"),
(ge, ":cur_hours", ":cur_improvement_end_time"),
(party_set_slot, ":center_no", ":cur_improvement", 1),
(party_set_slot, ":center_no", slot_center_current_improvement, 0),
(call_script, "script_get_improvement_details", ":cur_improvement"),
(try_begin),
(party_slot_eq, ":center_no", slot_town_lord, "trp_player"),
(str_store_party_name, s4, ":center_no"),
(display_log_message, "@Building of {s0} in {s4} has been completed."),
(try_end),
(try_begin),
(is_between, ":center_no", villages_begin, villages_end),
(eq, ":cur_improvement", slot_center_has_fish_pond),
(call_script, "script_change_center_prosperity", ":center_no", 5),
(try_end),
(try_begin),
(is_between, ":center_no", villages_begin, villages_end),
(eq, ":cur_improvement", slot_center_has_chapel),
(call_script, "script_change_center_prosperity", ":center_no", 5),
(try_end),
(try_end),
]),
as i understood, to this part in simple triggers, i have to put some command under the part i created , slot_center_has_chapel
it should be somethin related to party morale ,
i think first should come:
(call_script, "script_get_player_party_morale_values"),
but then , i dont know what im supposed to add.
Anyone could help?
I wanna create mercenaries unique for each faction, that can be used,hired by only members of that faction or the main player (me). In the troops.py, i set each mercenary faction to whoever (example , Cataphract for Sarranids, fac_kingdom_6)
but i see cataphracts in any town regardless the faction i put. I just want him to appear in Sarranid towns and used by sarranid lords. Is there a way to achieve what i want ?
And second thing is,
I wanna put a new building improvement to Towns, Chapel. And i want my troops to get morale and fully healed whenever my party visit the town (or better if i stay overnight_). I am trying to figure out how, on simple triggers, script and constant. But i didnt get the commands
# Checking center upgrades
(12,
[(try_for_range, ":center_no", centers_begin, centers_end),
(party_get_slot, ":cur_improvement", ":center_no", slot_center_current_improvement),
(gt, ":cur_improvement", 0),
(party_get_slot, ":cur_improvement_end_time", ":center_no", slot_center_improvement_end_hour),
(store_current_hours, ":cur_hours"),
(ge, ":cur_hours", ":cur_improvement_end_time"),
(party_set_slot, ":center_no", ":cur_improvement", 1),
(party_set_slot, ":center_no", slot_center_current_improvement, 0),
(call_script, "script_get_improvement_details", ":cur_improvement"),
(try_begin),
(party_slot_eq, ":center_no", slot_town_lord, "trp_player"),
(str_store_party_name, s4, ":center_no"),
(display_log_message, "@Building of {s0} in {s4} has been completed."),
(try_end),
(try_begin),
(is_between, ":center_no", villages_begin, villages_end),
(eq, ":cur_improvement", slot_center_has_fish_pond),
(call_script, "script_change_center_prosperity", ":center_no", 5),
(try_end),
(try_begin),
(is_between, ":center_no", villages_begin, villages_end),
(eq, ":cur_improvement", slot_center_has_chapel),
(call_script, "script_change_center_prosperity", ":center_no", 5),
(try_end),
(try_end),
]),
as i understood, to this part in simple triggers, i have to put some command under the part i created , slot_center_has_chapel
it should be somethin related to party morale ,
i think first should come:
(call_script, "script_get_player_party_morale_values"),
but then , i dont know what im supposed to add.
Anyone could help?


