Keedo420
Knight at Arms
OK, I am slightly proud of this I must admit. This was my first attempt to create a new quest. What I did, was make it so that players can be bounty hunters by talking to any tavernkeeper and see if there are any bounty quests available. While they are technically copies of the Hunt Down Fugitive quest that lords give you, I had to make quite a few adjustments to allow for the player to have multiple bounties at the same time and also to increase the variety of potential targets. Now, instead of just the usual Nervous Man you hunt down for lords, on a bounty hunting quest you might have to kill a deserter from any of the kingdoms or one of the various bandits. The bounty quests have a much shorter time limit (1 week instead of a month) but also a much shorter "give again" timer (again, 1 week) and you can have up to 6 at a time. I've been working on it for the past three days and encountered a lot of roadblocks. There were numerous times when I almost made posts asking for help where I was going wrong, but each time I came up with a solution as I was typing my post. I'm sure the code isn't the most efficient, but I have got it to a point where the only problem I am encountering is if you take more than one bounty within the same kingdom there is a possibility they will be in the same village. However, only one will spawn at a time, so after killing one you have to exit the village and re-enter for the second one to spawn.
Here is a selection of screenshots from my testing:
And here is my current code if anyone wants to use it in their mod (you'll have to do a bit of editing since my code takes into account the new races I added and some other things that might cause problems in other mods if the code is not modified) or if anyone wants to look it over and give me pointers on ways to improve it.
In module_dialogues.....
I added this part to the tavernkeepers' dialogue:
I added this part to the Village Elders' dialogue:
I added this part to the town dweller dialogue:
And then I added a completely new dialogue for the bounty target (if you recognize this dialogue then you are awesome ):
Continued in the next post....I exceeded the maximum post length.
Here is a selection of screenshots from my testing:
The initial dialogue menu with the tavernkeeper:
The tavernkeeper offering a bounty quest:
The quest menu after accepting the bounty quest:
Talking to a villager after arriving at the target village:
Talking to the bounty target:
After killing the target:
The quest menu after killing the target:
Claiming my reward:
And then I went and tested what happens if I took multiple bounty quests at the same time. This is what the tavernkeeper says if there are no more bounty quests to give:
And this is what happens when you forget to rest before going after another target.....This was in fact an accident, but a good opportunity to show me that the quest successfully fails if you die:
The tavernkeeper offering a bounty quest:
The quest menu after accepting the bounty quest:
Talking to a villager after arriving at the target village:
Talking to the bounty target:
After killing the target:
The quest menu after killing the target:
Claiming my reward:
And then I went and tested what happens if I took multiple bounty quests at the same time. This is what the tavernkeeper says if there are no more bounty quests to give:
And this is what happens when you forget to rest before going after another target.....This was in fact an accident, but a good opportunity to show me that the quest successfully fails if you die:
And here is my current code if anyone wants to use it in their mod (you'll have to do a bit of editing since my code takes into account the new races I added and some other things that might cause problems in other mods if the code is not modified) or if anyone wants to look it over and give me pointers on ways to improve it.
In module_dialogues.....
I added this part to the tavernkeepers' dialogue:
#Bounty hunting
[anyone|plyr,"tavernkeeper_talk", [(store_partner_quest,":tavernkeepers_quest"),
(lt,":tavernkeepers_quest",0),],
"Are there any bounties posted?", "tavernkeeper_request_mission_ask",[]],
[anyone|plyr,"tavernkeeper_talk", [(store_partner_quest,":tavernkeepers_quest"),
(ge,":tavernkeepers_quest",0),],
"About the bounty you gave me...", "tavernkeeper_active_mission_1",[]],
[anyone,"tavernkeeper_active_mission_1", [], "Yes, have you made any progress on it?", "tavernkeeper_active_mission_2",[]],
[anyone|plyr,"tavernkeeper_active_mission_2", [(store_partner_quest,":tavernkeepers_quest"),
(check_quest_succeeded, ":tavernkeepers_quest"),
(quest_get_slot, ":quest_target_center", ":tavernkeepers_quest", slot_quest_target_center),
(str_store_party_name, s3, ":quest_target_center"),
(quest_get_slot, ":quest_target_dna", ":tavernkeepers_quest", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),],
"I found {s4} hiding at {s3} and gave them their punishment.", "tavernkeeper_hunt_down_fugitive_success",
[]],
[anyone|plyr,"tavernkeeper_active_mission_2", [(store_partner_quest,":tavernkeepers_quest"),
(check_quest_failed, ":tavernkeepers_quest"),
],
"I'm afraid they got away.", "tavernkeeper_hunt_down_fugitive_fail",
[]],
[anyone|plyr,"tavernkeeper_active_mission_2", [], "I am still working on it.", "tavernkeeper_active_mission_3",[]],
[anyone|plyr,"tavernkeeper_active_mission_2", [], "I am afraid I won't be able to do this quest.", "tavernkeeper_mission_failed",[]],
[anyone,"tavernkeeper_active_mission_3", [], "I see. Well why are you still here?", "tavernkeeper_pretalk",[]],
[anyone,"tavernkeeper_mission_failed", [], "{s43}", "tavernkeeper_pretalk",
[
(call_script, "script_lord_comment_to_s43", "$g_talk_troop", "str_lord_mission_failed_default"),
(store_partner_quest,":tavernkeepers_quest"),
(call_script, "script_abort_quest", ":tavernkeepers_quest", 1)]],
[anyone,"tavernkeeper_hunt_down_fugitive_success", [],
"Well done, {playername}!\
'Tis good to know you can be trusted to handle things with an appropriate level of tactfulness.\
A bounty I promised, and a bounty you shall have. 300 denars and not a copper less!", "tavernkeeper_hunt_down_fugitive_success_2",
[
(add_xp_as_reward, 300),
]],
[anyone|plyr,"tavernkeeper_hunt_down_fugitive_success_2", [],
"Let me take the money, {s65}. Thank you.", "tavernkeeper_hunt_down_fugitive_reward_accept",[]],
[anyone|plyr,"tavernkeeper_hunt_down_fugitive_success_2", [],
"This is blood money. I can't accept it.", "tavernkeeper_hunt_down_fugitive_reward_reject",[]],
[anyone,"tavernkeeper_hunt_down_fugitive_reward_accept", [],
"Of course, {playername}. Here you are.", "tavernkeeper_pretalk",[
(call_script, "script_troop_add_gold", "trp_player", 300),
(call_script, "script_change_player_relation_with_troop", "$g_talk_troop", 2),
(store_partner_quest,":tavernkeepers_quest"),
(call_script, "script_end_quest", ":tavernkeepers_quest"),
]],
[anyone,"tavernkeeper_hunt_down_fugitive_reward_reject", [],
"You are a {s25} for whom justice is its own reward, eh? As you wish it, {playername}, as you wish it.\
An honourable sentiment, to be true.", "tavernkeeper_pretalk",[
(call_script, "script_change_player_honor", 3),
(call_script, "script_change_player_relation_with_troop", "$g_talk_troop", 2),
(store_partner_quest,":tavernkeepers_quest"),
(call_script, "script_end_quest", ":tavernkeepers_quest"),
]],
[anyone,"tavernkeeper_hunt_down_fugitive_fail", [],
"It is a sad day when that {s44} manages to avoid the hand of justice yet again.\
I thought you would be able to do this, {playername}. Clearly I was wrong.", "tavernkeeper_pretalk",
[
(troop_get_slot, ":insult_string", "$g_talk_troop", slot_lord_reputation_type),
(val_add, ":insult_string", "str_lord_insult_default"),
(str_store_string, 44, ":insult_string"),
(call_script, "script_change_player_relation_with_troop", "$g_talk_troop", -1),
(store_partner_quest,":tavernkeepers_quest"),
(call_script, "script_end_quest", ":tavernkeepers_quest"),
]],
[anyone,"tavernkeeper_request_mission_ask", [], "So you reckon yourself a bounty hunter, eh?", "tavernkeeper_tell_mission",
[
(call_script, "script_random_bounty", "$g_talk_troop"),
(assign, "$random_quest_no", reg0),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_1")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_2")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_3")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_4")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_5")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_6")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [],
"I'm sorry, but I don't have any bounties for you right now.", "tavernkeeper_pretalk",[]],
[anyone|plyr,"tavernkeeper_mission_hunt_down_fugitive_told", [],
"I will claim this bounty.", "tavernkeeper_mission_hunt_down_fugitive_accepted",[]],
[anyone|plyr,"tavernkeeper_mission_hunt_down_fugitive_told", [], "I am too busy to go after them at the moment.", "tavernkeeper_mission_hunt_down_fugitive_rejected",[]],
[anyone,"tavernkeeper_mission_hunt_down_fugitive_accepted", [], "That's excellent, {playername}.\
Their associates will be so grateful to have them....found.\
And of course the bounty on their head will be yours if you can get...err find them.\
Well, good hunting to you.", "close_window",
[(call_script, "script_start_quest", "$random_quest_no", "$g_talk_troop"),
(call_script, "script_change_player_relation_with_troop","$g_talk_troop",3),
(assign, "$g_leave_encounter",1),
]],
[anyone,"tavernkeeper_mission_hunt_down_fugitive_rejected", [], "As you wish, {playername}.\
I suppose there are plenty of bounty hunters around to get the job done . . .", "tavernkeeper_pretalk",
[(troop_set_slot, "$g_talk_troop", slot_troop_does_not_give_quest, 1)]],
#end hunt down fugitive
[anyone|plyr,"tavernkeeper_talk", [(store_partner_quest,":tavernkeepers_quest"),
(lt,":tavernkeepers_quest",0),],
"Are there any bounties posted?", "tavernkeeper_request_mission_ask",[]],
[anyone|plyr,"tavernkeeper_talk", [(store_partner_quest,":tavernkeepers_quest"),
(ge,":tavernkeepers_quest",0),],
"About the bounty you gave me...", "tavernkeeper_active_mission_1",[]],
[anyone,"tavernkeeper_active_mission_1", [], "Yes, have you made any progress on it?", "tavernkeeper_active_mission_2",[]],
[anyone|plyr,"tavernkeeper_active_mission_2", [(store_partner_quest,":tavernkeepers_quest"),
(check_quest_succeeded, ":tavernkeepers_quest"),
(quest_get_slot, ":quest_target_center", ":tavernkeepers_quest", slot_quest_target_center),
(str_store_party_name, s3, ":quest_target_center"),
(quest_get_slot, ":quest_target_dna", ":tavernkeepers_quest", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),],
"I found {s4} hiding at {s3} and gave them their punishment.", "tavernkeeper_hunt_down_fugitive_success",
[]],
[anyone|plyr,"tavernkeeper_active_mission_2", [(store_partner_quest,":tavernkeepers_quest"),
(check_quest_failed, ":tavernkeepers_quest"),
],
"I'm afraid they got away.", "tavernkeeper_hunt_down_fugitive_fail",
[]],
[anyone|plyr,"tavernkeeper_active_mission_2", [], "I am still working on it.", "tavernkeeper_active_mission_3",[]],
[anyone|plyr,"tavernkeeper_active_mission_2", [], "I am afraid I won't be able to do this quest.", "tavernkeeper_mission_failed",[]],
[anyone,"tavernkeeper_active_mission_3", [], "I see. Well why are you still here?", "tavernkeeper_pretalk",[]],
[anyone,"tavernkeeper_mission_failed", [], "{s43}", "tavernkeeper_pretalk",
[
(call_script, "script_lord_comment_to_s43", "$g_talk_troop", "str_lord_mission_failed_default"),
(store_partner_quest,":tavernkeepers_quest"),
(call_script, "script_abort_quest", ":tavernkeepers_quest", 1)]],
[anyone,"tavernkeeper_hunt_down_fugitive_success", [],
"Well done, {playername}!\
'Tis good to know you can be trusted to handle things with an appropriate level of tactfulness.\
A bounty I promised, and a bounty you shall have. 300 denars and not a copper less!", "tavernkeeper_hunt_down_fugitive_success_2",
[
(add_xp_as_reward, 300),
]],
[anyone|plyr,"tavernkeeper_hunt_down_fugitive_success_2", [],
"Let me take the money, {s65}. Thank you.", "tavernkeeper_hunt_down_fugitive_reward_accept",[]],
[anyone|plyr,"tavernkeeper_hunt_down_fugitive_success_2", [],
"This is blood money. I can't accept it.", "tavernkeeper_hunt_down_fugitive_reward_reject",[]],
[anyone,"tavernkeeper_hunt_down_fugitive_reward_accept", [],
"Of course, {playername}. Here you are.", "tavernkeeper_pretalk",[
(call_script, "script_troop_add_gold", "trp_player", 300),
(call_script, "script_change_player_relation_with_troop", "$g_talk_troop", 2),
(store_partner_quest,":tavernkeepers_quest"),
(call_script, "script_end_quest", ":tavernkeepers_quest"),
]],
[anyone,"tavernkeeper_hunt_down_fugitive_reward_reject", [],
"You are a {s25} for whom justice is its own reward, eh? As you wish it, {playername}, as you wish it.\
An honourable sentiment, to be true.", "tavernkeeper_pretalk",[
(call_script, "script_change_player_honor", 3),
(call_script, "script_change_player_relation_with_troop", "$g_talk_troop", 2),
(store_partner_quest,":tavernkeepers_quest"),
(call_script, "script_end_quest", ":tavernkeepers_quest"),
]],
[anyone,"tavernkeeper_hunt_down_fugitive_fail", [],
"It is a sad day when that {s44} manages to avoid the hand of justice yet again.\
I thought you would be able to do this, {playername}. Clearly I was wrong.", "tavernkeeper_pretalk",
[
(troop_get_slot, ":insult_string", "$g_talk_troop", slot_lord_reputation_type),
(val_add, ":insult_string", "str_lord_insult_default"),
(str_store_string, 44, ":insult_string"),
(call_script, "script_change_player_relation_with_troop", "$g_talk_troop", -1),
(store_partner_quest,":tavernkeepers_quest"),
(call_script, "script_end_quest", ":tavernkeepers_quest"),
]],
[anyone,"tavernkeeper_request_mission_ask", [], "So you reckon yourself a bounty hunter, eh?", "tavernkeeper_tell_mission",
[
(call_script, "script_random_bounty", "$g_talk_troop"),
(assign, "$random_quest_no", reg0),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_1")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_2")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_3")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_4")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_5")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [(eq,"$random_quest_no","qst_bounty_6")],
"I have something you could help with, an issue with the lawless villain known as {s4}. \
They supposedly murdered someone, or stole something, or....whatever,\
and have been on the run from their judgement ever since.\
There is a bounty of 300 denars on their head. Associates of the murderer who,\
while they issue them no ill will...reckon that this outlaw may have taken refuge\
with their kinsmen at {s3}.\
You might be able to hunt them down and give them what they deserve...\
^and claim the bounty for yourself of course.", "tavernkeeper_mission_hunt_down_fugitive_told",
[
(quest_get_slot, ":quest_target_center", "$random_quest_no", slot_quest_target_center),
(quest_get_slot, ":quest_target_dna", "$random_quest_no", slot_quest_target_dna),
(str_store_troop_name_link,s9, "$g_talk_troop"),
(str_store_party_name_link,s3, ":quest_target_center"),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
(setup_quest_text, "$random_quest_no"),
(str_store_string, s2, "@{s9} asked you to hunt down a fugitive named {s4}. They are currently believed to be at {s3}."),
]],
[anyone,"tavernkeeper_tell_mission", [],
"I'm sorry, but I don't have any bounties for you right now.", "tavernkeeper_pretalk",[]],
[anyone|plyr,"tavernkeeper_mission_hunt_down_fugitive_told", [],
"I will claim this bounty.", "tavernkeeper_mission_hunt_down_fugitive_accepted",[]],
[anyone|plyr,"tavernkeeper_mission_hunt_down_fugitive_told", [], "I am too busy to go after them at the moment.", "tavernkeeper_mission_hunt_down_fugitive_rejected",[]],
[anyone,"tavernkeeper_mission_hunt_down_fugitive_accepted", [], "That's excellent, {playername}.\
Their associates will be so grateful to have them....found.\
And of course the bounty on their head will be yours if you can get...err find them.\
Well, good hunting to you.", "close_window",
[(call_script, "script_start_quest", "$random_quest_no", "$g_talk_troop"),
(call_script, "script_change_player_relation_with_troop","$g_talk_troop",3),
(assign, "$g_leave_encounter",1),
]],
[anyone,"tavernkeeper_mission_hunt_down_fugitive_rejected", [], "As you wish, {playername}.\
I suppose there are plenty of bounty hunters around to get the job done . . .", "tavernkeeper_pretalk",
[(troop_set_slot, "$g_talk_troop", slot_troop_does_not_give_quest, 1)]],
#end hunt down fugitive
I added this part to the Village Elders' dialogue:
[anyone|plyr,"village_elder_talk", [(check_quest_active, "qst_bounty_1"),
(neg|check_quest_concluded, "qst_bounty_1"),
(quest_slot_eq, "qst_bounty_1", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_1", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
[anyone|plyr,"village_elder_talk", [(check_quest_active, "qst_bounty_2"),
(neg|check_quest_concluded, "qst_bounty_2"),
(quest_slot_eq, "qst_bounty_2", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_2", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
[anyone|plyr,"village_elder_talk", [(check_quest_active, "qst_bounty_3"),
(neg|check_quest_concluded, "qst_bounty_3"),
(quest_slot_eq, "qst_bounty_3", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_3", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
[anyone|plyr,"village_elder_talk", [(check_quest_active, "qst_bounty_4"),
(neg|check_quest_concluded, "qst_bounty_4"),
(quest_slot_eq, "qst_bounty_4", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_4", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
[anyone|plyr,"village_elder_talk", [(check_quest_active, "qst_bounty_5"),
(neg|check_quest_concluded, "qst_bounty_5"),
(quest_slot_eq, "qst_bounty_5", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_5", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
[anyone|plyr,"village_elder_talk", [(check_quest_active, "qst_bounty_6"),
(neg|check_quest_concluded, "qst_bounty_6"),
(quest_slot_eq, "qst_bounty_6", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_6", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
(neg|check_quest_concluded, "qst_bounty_1"),
(quest_slot_eq, "qst_bounty_1", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_1", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
[anyone|plyr,"village_elder_talk", [(check_quest_active, "qst_bounty_2"),
(neg|check_quest_concluded, "qst_bounty_2"),
(quest_slot_eq, "qst_bounty_2", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_2", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
[anyone|plyr,"village_elder_talk", [(check_quest_active, "qst_bounty_3"),
(neg|check_quest_concluded, "qst_bounty_3"),
(quest_slot_eq, "qst_bounty_3", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_3", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
[anyone|plyr,"village_elder_talk", [(check_quest_active, "qst_bounty_4"),
(neg|check_quest_concluded, "qst_bounty_4"),
(quest_slot_eq, "qst_bounty_4", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_4", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
[anyone|plyr,"village_elder_talk", [(check_quest_active, "qst_bounty_5"),
(neg|check_quest_concluded, "qst_bounty_5"),
(quest_slot_eq, "qst_bounty_5", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_5", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
[anyone|plyr,"village_elder_talk", [(check_quest_active, "qst_bounty_6"),
(neg|check_quest_concluded, "qst_bounty_6"),
(quest_slot_eq, "qst_bounty_6", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_6", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "village_elder_ask_fugitive",[]],
I added this part to the town dweller dialogue:
[anyone|plyr,"town_dweller_talk", [(check_quest_active, "qst_bounty_1"),
(neg|check_quest_concluded, "qst_bounty_1"),
(quest_slot_eq, "qst_bounty_1", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_1", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
[anyone|plyr,"town_dweller_talk", [(check_quest_active, "qst_bounty_2"),
(neg|check_quest_concluded, "qst_bounty_2"),
(quest_slot_eq, "qst_bounty_2", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_2", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
[anyone|plyr,"town_dweller_talk", [(check_quest_active, "qst_bounty_3"),
(neg|check_quest_concluded, "qst_bounty_3"),
(quest_slot_eq, "qst_bounty_3", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_3", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
[anyone|plyr,"town_dweller_talk", [(check_quest_active, "qst_bounty_4"),
(neg|check_quest_concluded, "qst_bounty_4"),
(quest_slot_eq, "qst_bounty_4", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_4", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
[anyone|plyr,"town_dweller_talk", [(check_quest_active, "qst_bounty_5"),
(neg|check_quest_concluded, "qst_bounty_5"),
(quest_slot_eq, "qst_bounty_5", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_5", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
[anyone|plyr,"town_dweller_talk", [(check_quest_active, "qst_bounty_6"),
(neg|check_quest_concluded, "qst_bounty_6"),
(quest_slot_eq, "qst_bounty_6", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_6", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
(neg|check_quest_concluded, "qst_bounty_1"),
(quest_slot_eq, "qst_bounty_1", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_1", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
[anyone|plyr,"town_dweller_talk", [(check_quest_active, "qst_bounty_2"),
(neg|check_quest_concluded, "qst_bounty_2"),
(quest_slot_eq, "qst_bounty_2", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_2", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
[anyone|plyr,"town_dweller_talk", [(check_quest_active, "qst_bounty_3"),
(neg|check_quest_concluded, "qst_bounty_3"),
(quest_slot_eq, "qst_bounty_3", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_3", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
[anyone|plyr,"town_dweller_talk", [(check_quest_active, "qst_bounty_4"),
(neg|check_quest_concluded, "qst_bounty_4"),
(quest_slot_eq, "qst_bounty_4", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_4", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
[anyone|plyr,"town_dweller_talk", [(check_quest_active, "qst_bounty_5"),
(neg|check_quest_concluded, "qst_bounty_5"),
(quest_slot_eq, "qst_bounty_5", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_5", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
[anyone|plyr,"town_dweller_talk", [(check_quest_active, "qst_bounty_6"),
(neg|check_quest_concluded, "qst_bounty_6"),
(quest_slot_eq, "qst_bounty_6", slot_quest_target_center, "$current_town"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_6", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
],
"I am looking for a fugitive by the name of {s4}. I was told they may be hiding here.", "town_dweller_ask_fugitive",[]],
And then I added a completely new dialogue for the bounty target (if you recognize this dialogue then you are awesome ):
# Bounty target
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_1"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_2"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_3"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_4"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_5"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_6"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_1"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_1", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_2"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_2", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_3"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_3", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_4"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_4", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_5"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_5", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_6"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_6", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [], "Nothing. Sorry to trouble you.", "close_window",[]],
[anyone,"bounty_2", [], "How do I know you're not from the F.B.I?!!", "bounty_3",[]],
[anyone|plyr,"bounty_3", [], "{s39} I can assure you I....", "bounty_4",[]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_1")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_1"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_1", slot_quest_current_state, 1),
]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_2")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_2"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_2", slot_quest_current_state, 1),
]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_3")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_3"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_3", slot_quest_current_state, 1),
]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_4")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_4"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_4", slot_quest_current_state, 1),
]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_5")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_5"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_5", slot_quest_current_state, 1),
]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_6")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_6"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_6", slot_quest_current_state, 1),
]],
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_1"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_2"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_3"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_4"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_5"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone,"start", [(call_script, "script_race"),
(eq, "$g_talk_troop", "$bounty_target_6"),
], "Do I know you? Did my {s38} send you?!", "bounty_1",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_1"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_1", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_2"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_2", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_3"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_3", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_4"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_4", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_5"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_5", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [(eq, "$g_talk_troop", "$bounty_target_6"),
(quest_get_slot, ":quest_target_dna", "qst_bounty_6", slot_quest_target_dna),
(call_script, "script_get_name_from_dna_to_s50", ":quest_target_dna"),
(str_store_string, s4, s50),
], "I am looking for a fugitive by the name of {s4}. You fit {s35} description.", "bounty_2",[]],
[anyone|plyr,"bounty_1", [], "Nothing. Sorry to trouble you.", "close_window",[]],
[anyone,"bounty_2", [], "How do I know you're not from the F.B.I?!!", "bounty_3",[]],
[anyone|plyr,"bounty_3", [], "{s39} I can assure you I....", "bounty_4",[]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_1")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_1"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_1", slot_quest_current_state, 1),
]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_2")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_2"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_2", slot_quest_current_state, 1),
]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_3")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_3"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_3", slot_quest_current_state, 1),
]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_4")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_4"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_4", slot_quest_current_state, 1),
]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_5")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_5"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_5", slot_quest_current_state, 1),
]],
[anyone,"bounty_4", [(eq, "$g_talk_troop", "$bounty_target_6")], "Allright so I made a mistake! ONE mistake!! Can't a {s33} start over?!! Do I have to keep on paying?!! HUH?!?! Maybe I should make another mistake!!!", "close_window",
[(set_party_battle_mode),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "$bounty_target_6"),
(agent_set_team, ":cur_agent", 1),
(try_end),
(quest_set_slot, "qst_bounty_6", slot_quest_current_state, 1),
]],
Continued in the next post....I exceeded the maximum post length.