Glabrezu
Recruit
Selling Prisoners to Tavern Keepers or Manhunters using the module system (for warband 1.34)
not sure if anyones did this already, if they have all credit to them! (pretty sure someones done the tavern one, i just added it for completeness)
1)in module_dialogues.py search for
2)copy this
3)paste what you just copied over this
4)save
you will now be able to sell prisoners to the manhunters (option 3 when talking to them)
or attack them (option 4 when talking to them)
feel free to edit the messages any way you like, if this code doesnt work, try the one i posted below Specialist's posting, on this page
for the tavern keeper
1) search for
2) past this underneath
3) save
you can now sell prisoners to the tavern keepers
and lastly for having prisoners sold at their level based value
1) open up module_scripts.py
2) search for
3)copy this
4) paste what you copied over this
5)save
this should make it so anyone who buys prisoners will buy them at the level based price (i have it so village elders buy as well... hey im lazy, saves me running to town or finding manhunters)
best to make back up copies of the files before modding (always a good precaution i sometimes forget...)
not sure if anyones did this already, if they have all credit to them! (pretty sure someones done the tavern one, i just added it for completeness)
1)in module_dialogues.py search for
Code:
[party_tpl|pt_manhunters,"start", [(eq,"$talk_context",tc_party_encounter)], "Hey, you there! You seen any outlaws around here?", "manhunter_talk_b",[]],
2)copy this
Code:
[party_tpl|pt_manhunters,"start", [(eq,"$talk_context",tc_party_encounter)], "Hey, you there! You seen any outlaws around here?", "manhunter_talk_b",[]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_b", [], "Yes, they went this way about an hour ago.", "manhunter_talk_b1",[]],
[party_tpl|pt_manhunters,"manhunter_talk_b1", [], "I knew it! Come on, lads, lets go get these bastards! Thanks a lot, friend.", "close_window",[(assign, "$g_leave_encounter",1)]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_b", [], "No, haven't seen any outlaws lately.", "manhunter_talk_b2",[]],
[party_tpl|pt_manhunters,"manhunter_talk_b2", [], "Bah. They're holed up in this country like rats, but we'll smoke them out yet. Sooner or later.", "close_window",[(assign, "$g_leave_encounter",1)]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_b", [], "I wish to collect on the bounties of some criminals i have captured.", "manhunter_talk_b3",
[[change_screen_trade_prisoners]]],
[party_tpl|pt_manhunters,"manhunter_talk_b3", [], "There's your bounty. Now me and the lads are going to hunt down more criminals.", "close_window",[(assign, "$g_leave_encounter",1)]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_b", [], "Kiss my arse.", "manhunter_talk_b4",[]],
[party_tpl|pt_manhunters,"manhunter_talk_b4", [], "How dare you! Prepare to die.", "close_window",
[[encounter_attack]]],
3)paste what you just copied over this
Code:
[party_tpl|pt_manhunters,"start", [(eq,"$talk_context",tc_party_encounter)], "Hey, you there! You seen any outlaws around here?", "manhunter_talk_b",[]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_b", [], "Yes, they went this way about an hour ago.", "manhunter_talk_b1",[]],
[party_tpl|pt_manhunters,"manhunter_talk_b1", [], "I knew it! Come on, lads, lets go get these bastards! Thanks a lot, friend.", "close_window",[(assign, "$g_leave_encounter",1)]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_b", [], "No, haven't seen any outlaws lately.", "manhunter_talk_b2",[]],
[party_tpl|pt_manhunters,"manhunter_talk_b2", [], "Bah. They're holed up in this country like rats, but we'll smoke them out yet. Sooner or later.", "close_window",[(assign, "$g_leave_encounter",1)]],
4)save
you will now be able to sell prisoners to the manhunters (option 3 when talking to them)
or attack them (option 4 when talking to them)
feel free to edit the messages any way you like, if this code doesnt work, try the one i posted below Specialist's posting, on this page
for the tavern keeper
1) search for
Code:
[anyone,"tavernkeeper_job_result_2", [], "I'll keep my ears open for other opportunities. You may want to ask again from time to time.", "close_window",[]],
Code:
[anyone|plyr,"tavernkeeper_talk", [],
"I have some prisoners to sell...", "ransom_broker_sell_prisoners_2",
[[change_screen_trade_prisoners]]],
# [anyone, "ransom_broker_sell_prisoners_2", [], "You take more prisoners, bring them to me. I will pay well.", "close_window",[]],
[anyone, "ransom_broker_sell_prisoners_2", [], "I will be staying here for a few days. Let me know if you need my services.", "close_window",[]],
you can now sell prisoners to the tavern keepers
and lastly for having prisoners sold at their level based value
1) open up module_scripts.py
2) search for
Code:
("game_get_prisoner_price",
Code:
("game_get_prisoner_price",
[
(store_script_param_1, ":troop_id"),
(try_begin),
(is_between, "$g_talk_troop", ransom_brokers_begin, ransom_brokers_end),
(store_character_level, ":troop_level", ":troop_id"),
(assign, ":ransom_amount", ":troop_level"),
(val_add, ":ransom_amount", 10),
(val_mul, ":ransom_amount", ":ransom_amount"),
(val_div, ":ransom_amount", 6),
(else_try),
(store_character_level, ":troop_level", ":troop_id"),
(assign, ":ransom_amount", ":troop_level"),
(val_add, ":ransom_amount", 10),
(val_mul, ":ransom_amount", ":ransom_amount"),
(val_div, ":ransom_amount", 6),
(try_end),
(assign, reg0, ":ransom_amount"),
(set_trigger_result, reg0),
]),
Code:
("game_get_prisoner_price",
[
(store_script_param_1, ":troop_id"),
(try_begin),
(is_between, "$g_talk_troop", ransom_brokers_begin, ransom_brokers_end),
(store_character_level, ":troop_level", ":troop_id"),
(assign, ":ransom_amount", ":troop_level"),
(val_add, ":ransom_amount", 10),
(val_mul, ":ransom_amount", ":ransom_amount"),
(val_div, ":ransom_amount", 6),
(else_try),
(assign, ":ransom_amount", 50),
(try_end),
(assign, reg0, ":ransom_amount"),
(set_trigger_result, reg0),
]),
this should make it so anyone who buys prisoners will buy them at the level based price (i have it so village elders buy as well... hey im lazy, saves me running to town or finding manhunters)
best to make back up copies of the files before modding (always a good precaution i sometimes forget...)