/
com/planet_ink/coffee_mud/Abilities/Common/
com/planet_ink/coffee_mud/Abilities/Diseases/
com/planet_ink/coffee_mud/Abilities/Druid/
com/planet_ink/coffee_mud/Abilities/Fighter/
com/planet_ink/coffee_mud/Abilities/Languages/
com/planet_ink/coffee_mud/Abilities/Misc/
com/planet_ink/coffee_mud/Abilities/Prayers/
com/planet_ink/coffee_mud/Abilities/Properties/
com/planet_ink/coffee_mud/Abilities/Skills/
com/planet_ink/coffee_mud/Abilities/Songs/
com/planet_ink/coffee_mud/Abilities/Specializations/
com/planet_ink/coffee_mud/Abilities/Spells/
com/planet_ink/coffee_mud/Abilities/Thief/
com/planet_ink/coffee_mud/Abilities/Traps/
com/planet_ink/coffee_mud/Behaviors/
com/planet_ink/coffee_mud/CharClasses/
com/planet_ink/coffee_mud/CharClasses/interfaces/
com/planet_ink/coffee_mud/Commands/
com/planet_ink/coffee_mud/Commands/interfaces/
com/planet_ink/coffee_mud/Common/
com/planet_ink/coffee_mud/Common/interfaces/
com/planet_ink/coffee_mud/Exits/interfaces/
com/planet_ink/coffee_mud/Items/Armor/
com/planet_ink/coffee_mud/Items/Basic/
com/planet_ink/coffee_mud/Items/BasicTech/
com/planet_ink/coffee_mud/Items/CompTech/
com/planet_ink/coffee_mud/Items/MiscMagic/
com/planet_ink/coffee_mud/Items/Weapons/
com/planet_ink/coffee_mud/Items/interfaces/
com/planet_ink/coffee_mud/Libraries/
com/planet_ink/coffee_mud/Libraries/interfaces/
com/planet_ink/coffee_mud/Locales/
com/planet_ink/coffee_mud/MOBS/
com/planet_ink/coffee_mud/Races/
com/planet_ink/coffee_mud/Races/interfaces/
com/planet_ink/coffee_mud/WebMacros/
com/planet_ink/coffee_mud/WebMacros/interfaces/
com/planet_ink/coffee_mud/core/
com/planet_ink/coffee_mud/core/collections/
com/planet_ink/coffee_mud/core/interfaces/
com/planet_ink/coffee_mud/core/intermud/
com/planet_ink/coffee_mud/core/intermud/i3/
com/planet_ink/coffee_web/server/
com/planet_ink/siplet/applet/
lib/
resources/factions/
resources/fakedb/
resources/progs/autoplayer/
resources/quests/holidays/
web/
web/admin.templates/
web/admin/grinder/
web/admin/images/
web/clan.templates/
web/pub.templates/
web/pub/images/mxp/
web/pub/sounds/
web/pub/textedit/
<?xml version="1.0"?>
<!-- ----------------------------------------------------------------------------
Copyright 2019-2019 Bo Zimmerman

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

 htt//www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--------------------------------------------------------------------------------

See guides/RandomAreas.html for information about documents of this type.

template: normal_capture4
settable vars: 
    template(normal_capture4)
    area_name(area name)
    source_name(mob name)
    targetarea_name(area name)
    multiarea(yes or NO)
    targetname(mobs name)
	aggression(YES,NO)
	xp_amount_awarded
	gold_amount_awarded
	quest_point_awarded(YES,NO)
	announcechannel()
	reward_items()
	quest_multiple(YES, NO, or PREV)
-->

<QUEST ID="normal_capture4" QUEST_TEMPLATE_ID="normal_capture4">
	<QUEST_ID DEFINE="quest_id">${_:source_area_name}_${_:source_name}_${h:quest_template}_R$[100000000?999999999]</QUEST_ID>
	<QUEST_CRITERIA>+SYSOP +LEVELS -&lt;$[$target_level - $level_span] -&gt;$[$target_level + $level_span]</QUEST_CRITERIA>
	<ANNOUNCER_AREA>"$source_area_name"</ANNOUNCER_AREA>
	<ANNOUNCER_ROOM>"$source_room_id"</ANNOUNCER_ROOM>
	<ANNOUNCER_NAME>"$source_name"</ANNOUNCER_NAME>
	<QUEST_ANNOUNCECHANNEL>$announcechannel</QUEST_ANNOUNCECHANNEL>
	<CAPTUREABLES_AREAS>"$target_area_name"</CAPTUREABLES_AREAS>
	<CAPTUREABLES_ROOMS>ALL</CAPTUREABLES_ROOMS>
	<CAPTUREABLES_MOBS>${SELECT: ANY\. from $target}</CAPTUREABLES_MOBS>
	<CAPTUREABLES_CHANCE>$[(1 / $target_area_size * 100) * 3]</CAPTUREABLES_CHANCE>
	<CAPTURABLES_ATTACK>$will_attack_code</CAPTURABLES_ATTACK>
	<CAPTURABLES_FOLLOW>$will_react_peacefully</CAPTURABLES_FOLLOW>
	<QUEST_POINT>$quest_point_awarded</QUEST_POINT>
	<GOLD>$gold_amount_awarded</GOLD>
	<EXP>$xp_amount_awarded</EXP>
	<MULTIPLE>$quest_multiple</MULTIPLE>
	<NEXT_QUEST>$next_quest_id</NEXT_QUEST>
	<FACTION>$source_faction</FACTION>
	<NUMFACTION>$[$source_faction_amt / 500]</NUMFACTION>
	<QUEST_NAME SELECT="Any-1">
		<QUEST_NAME>${C:source_name} in ${C:source_area_name} needs ${target_name} $reason_verbed</QUEST_NAME>
		<QUEST_NAME>${C:source_name} in ${C:source_area_name} wants ${target_name} $reason_verbed</QUEST_NAME>
		<QUEST_NAME>${C:source_name} in ${C:source_area_name} asks for ${target_name} to be $reason_verbed</QUEST_NAME>
		<QUEST_NAME>${C:reason_verb} ${target_name} for ${C:source_name} in ${C:source_area_name}</QUEST_NAME>
	</QUEST_NAME>
	<QUEST_NOTIFYSTRING>${j:1:quest_notifystring}</QUEST_NOTIFYSTRING>
	<QUEST_INSTRUCTIONSSTRING>${j:1:quest_instructionstring}</QUEST_INSTRUCTIONSSTRING>
	<QUEST_WINSPEECH_TEXT>${j:1:quest_winspeech}</QUEST_WINSPEECH_TEXT>
	<QUEST_LOSESPEECH_TEXT>${j:1:quest_losespeech}</QUEST_LOSESPEECH_TEXT>
	<CAPTURABLES_RESPONSE>${j:1:quest_fightspeech}</CAPTURABLES_RESPONSE>
	<CAPTURABLES_SURRENDER>${j:1:quest_surrenderspeech}</CAPTURABLES_SURRENDER>
	<REWARD_ITEMS>${SELECT: ANY\. FROM $dungeon_treasure_items}</REWARD_ITEMS>

	<STRING load="/resources/quests/random/inc_questcommon.xml" />

	<STRING ID="quest_notifystring" define="quest_notifystring" SELECT="ALL">
		<STRING ACTION="PREPEND">$reason_short  $quest_notifyaddendum</STRING>
	</STRING>

	<STRING ID="quest_notifyaddendum" SELECT="Pick-1">
		<STRING PICKWEIGHT=1>Are you game?</STRING>
		<STRING PICKWEIGHT=1>Are you ready?</STRING>
		<STRING PICKWEIGHT=1>Are you up to it?</STRING>
		<STRING PICKWEIGHT=1>Can you handle it?</STRING>
		<STRING PICKWEIGHT=1>Who's ready?</STRING>
		<STRING PICKWEIGHT=12></STRING>
	</STRING>
	
	<STRING ID="reason_short" define="reason_short" SELECT="Any-1">
		<STRING>I need ${target_name} $reason_verbed!</STRING>
		<STRING>Help me $reason_verb ${target_name}!</STRING>
		<STRING>Assistance required with ${target_name}!</STRING>
		<STRING>${c:reason_verb} ${target_name} for me!</STRING>
		<STRING>${c:reason_verb} ${target_name}, quickly!</STRING>
		<STRING>I want ${target_name} $reason_verbed!</STRING>
	</STRING>

	<STRING ID="quest_instructionstring" SELECT="ALL">
		<STRING ACTION="PREPEND">$reason_desc</STRING>
		<STRING ACTION="APPEND">$reason_short</STRING>
		<STRING SELECT="Any-1" CONDITION="'YES' in $target_is_aggressive">
			<STRING>Just $hurt_him_phrase and ${target_heshe}'ll be along.</STRING>
			<STRING>You might have to $hurt_him_phrase, so be ready.</STRING>
			<STRING>If you $hurt_him_phrase, ${target_heshe}'ll follow you back here.</STRING>
			<STRING>If you $hurt_him_phrase, ${target_heshe}'ll be no problem.</STRING>
			<STRING>Be ready to $hurt_him_phrase.</STRING>
			<STRING>If ${target_heshe} seems reluctant, $hurt_him_phrase.</STRING>
			<STRING>To encourage ${target_himher}, just $hurt_him_phrase.</STRING>
			<STRING>Just $hurt_him_phrase and lead ${target_himher} here.</STRING>
			<STRING>Only $hurt_him_phrase if ${target_heshe} resists.</STRING>
			<STRING>${C:hurt_him_phrase}, before ${target_heshe} does you.</STRING>
		</STRING>
	</STRING>

	<STRING ID="quest_winspeech" PREDEFINE="reason=$reason">$quest_winspeech</STRING>
	<STRING ID="quest_losespeech" PREDEFINE="reason=$reason">$quest_losespeech</STRING>
	<STRING ID="quest_fightspeech" PREDEFINE="reason=$reason">$quest_fightspeech</STRING>
	<STRING ID="quest_surrenderspeech" PREDEFINE="reason=$reason">$quest_surrenderspeech</STRING>
	<STRING ID="reason_verbed" PREDEFINE="reason=$reason">$reason_verbed</STRING>
	<STRING ID="reason_verb" PREDEFINE="reason=$reason">$reason_verb</STRING>
	<STRING ID="reason_desc" PREDEFINE="reason=$reason">$reason_desc</STRING>
	<STRING ID="reason" DEFINE="reason" SELECT="Any-1">
		<STRING CONDITION="$target_int &gt; 5">$reason_theyoweme</STRING>
		<STRING>$reason_partytime</STRING>
		<STRING CONDITION="$target_int &gt; 5">$reason_iowethem</STRING>
		<STRING CONDITION="$source_align &gt; 5000">$reason_ilostthem</STRING>
		<STRING CONDITION="$source_align &gt; 5000">$reason_welosteachother</STRING>
		<STRING>$reason_theylostme</STRING>
		<STRING>$reason_gencapture</STRING>
		<STRING CONDITION="$target_int &gt; 5">$reason_giveinstr</STRING>
		<STRING CONDITION="$target_int &gt; 5">$reason_planning</STRING>
		<STRING CONDITION="$target_int &gt; 5">$reason_receiveinstr</STRING>
		<STRING CONDITION="$target_int &gt; 5 and $source_align &gt; 5000">$reason_idoforthem</STRING>
		<STRING CONDITION="$target_int &gt; 5">$reason_wedotogether</STRING>
		<STRING CONDITION="$target_int &gt; 5">$reason_theydoforme</STRING>
		<STRING CONDITION="$source_align &lt; -5000">$reason_idotothem</STRING>
		<STRING CONDITION="$source_align &lt; -5000">$reason_wedotoeachother</STRING>
	</STRING>

	<STRING id="quest_generic_loser_speeches" SELECT="Any-1">
		<STRING>I guess I'll need to $reason_verb ${target_himher} myself.</STRING>
		<STRING>This is unacceptable.</STRING>
		<STRING>Well, I give up on ${target_himher} being $reason_verbed.</STRING>
		<STRING>You just can't find good help anymore.</STRING>
	</STRING>

	<STRING id="quest_generic_winner_speeches" SELECT="Any-1">
		<STRING>${c:target_heshe} is $reason_verbed! That's all, thanks!</STRING>
		<STRING>${c:reason_verbed} at last! Thank you for your assistance.</STRING>
		<STRING>Thanks $$n, I'll take it from here.</STRING>
		<STRING>Thank you $$n for completing my $reason_verb task, that will be all.</STRING>
	</STRING>

	<STRING id="quest_generic_surrender_speeches" SELECT="Any-1">
		<STRING>I'm $reason_verbed! Lead the way to $source_name.</STRING>
		<STRING>I am being $reason_verbed! Take me to ${c:source_name}.</STRING>
		<STRING>I guess I'm $reason_verbed ! Are we going to ${c:source_name} now?</STRING>
	</STRING>
	
	<STRING ID="reason_theyoweme" SELECT="All">
		<STRING define="reason_verbed">$verb_captured</STRING>
		<STRING define="reason_verb">$verb_capture</STRING>
		<STRING define="quest_winspeech">$quest_generic_winner_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>Tell $source_name I aint payin!</STRING>
			<STRING>${c:source_name} aint getting nothin from me.</STRING>
			<STRING>I don't owe $source_name anything!</STRING>
			<STRING>Leave me alone, I don't owe $source_name anything!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>${C:target_name} owes me money, but I'm not where ${target_heshe} is.</STRING>
			<STRING>${C:target_name} owes me some money.</STRING>
			<STRING>${C:target_name} owes me big time, but has't made good.</STRING>
			<STRING>I'm owed some money.</STRING>
			<STRING>I'm given much to ${c:target_name}, and ${target_heshe} owes me.</STRING>
		</STRING>
	</STRING>
	
	<STRING ID="reason_partytime" SELECT="All">
		<STRING define="reason_verbed">$verb_gathered</STRING>
		<STRING define="reason_verb">$verb_gather</STRING>
		<STRING define="quest_winspeech" SELECT="Any-1" >
			<STRING>Yay! Let the party BEGIN!</STRING>"
			<STRING>TIME TO CELEBRATE!</STRING>"
			<STRING>Let the celebration begin!</STRING>"
			<STRING>We can finally begin the festivities!</STRING>"
		</STRING>
		<STRING define="quest_losespeech" SELECT="Any-1">
			<STRING>I didn't want ${target_himher} here anyway.</STRING>"
			<STRING>I guess ${target_heshe} isn't coming.</STRING>"
		</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>That aint happening!</STRING>
			<STRING>${c:source_name}??? Uh, NO!</STRING>
			<STRING>I would rather $hurt_verb you than see $source_name.</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>I'm throwing a party and ${c:target_name} is invited! But ${target_heshe} isn't here yet.</STRING>
			<STRING>It's my birthday, and all I'm missing is the party goers.</STRING>
			<STRING>It is officially ${C:source_area_name} Day, and the ceremony will be right here.</STRING>
			<STRING>It's my birthday, and ${c:target_name} is late.</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_iowethem" SELECT="All">
		<STRING define="reason_verbed">$verb_gathered</STRING>
		<STRING define="reason_verb">$verb_gather</STRING>
		<STRING define="quest_winspeech">$quest_generic_winner_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>Tell $source_name I aint falling for that trap!</STRING>
			<STRING>${c:source_name} is trying to fool us both.</STRING>
			<STRING>I ain't going near $source_name!</STRING>
			<STRING>Leave me alone!</STRING>
			<STRING>I don't want anything from ${c:source_name}!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>I wish to reward $target_name for reasons.</STRING>
			<STRING>I owe ${target_name} for ${target_hisher} assistance to me.</STRING>
			<STRING>I owe ${target_name}, and need ${target_himher} here.</STRING>
			<STRING>${c:target_name} forgot ${target_hisher} paycheck this week.</STRING>
			<STRING>I swore to protect ${c:target_name}, and need your help.</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_ilostthem" SELECT="All">
		<STRING define="reason_verbed">$verb_found</STRING>
		<STRING define="reason_verb">$verb_find</STRING>
		<STRING define="quest_winspeech" SELECT="Any-1">
			<STRING>You found ${target_himher}! Thanks!</STRING>
			<STRING>I'm so relieved! Thank you for your assistance.</STRING>
			<STRING>Thanks you so much for finding ${target_himher}!</STRING>
		</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>I'm hiding! Go away!</STRING>
			<STRING>What makes you think I needed finding?</STRING>
			<STRING>I'm not lost, leave me alone!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>I lost ${target_name} and need you to find ${target_himher} and bring ${target_himher} here.</STRING>
			<STRING>I seem to have misplaced ${c:target_name} and need your help.</STRING>
			<STRING>I can't find ${target_name} and need your help.</STRING>
			<STRING>I must protect ${c:target_name} from danger, and need your help.</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_welosteachother" SELECT="All">
		<STRING define="reason_verbed">$verb_found</STRING>
		<STRING define="reason_verb">$verb_find</STRING>
		<STRING define="quest_winspeech" SELECT="Any-1">
			<STRING>You found ${target_himher}! Thanks!</STRING>
			<STRING>Thank you for your assistance.</STRING>
			<STRING>Thanks you so much for finding ${target_himher}!</STRING>
		</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>I'm hiding! Go away!</STRING>
			<STRING>What makes you think I needed finding?</STRING>
			<STRING>I'm hiding from $source_name, leave me alone!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>${c:target_name} has gotten lost and we must be reunited.</STRING>
			<STRING>${c:target_name} and I have lost each other.</STRING>
			<STRING>${c:target_name} and I can't find each other.</STRING>
			<STRING CONDITION="$target_int &gt; 3">${c:target_name} is a witness to a crime that I must question.</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_theylostme" SELECT="All">
		<STRING define="reason_verbed">$verb_found</STRING>
		<STRING define="reason_verb">$verb_find</STRING>
		<STRING define="quest_winspeech" SELECT="Any-1">
			<STRING>You found ${target_himher}! Thanks!</STRING>
			<STRING>${target_heshe} found me! Thank you for your assistance.</STRING>
			<STRING>Thanks you so much for finding ${target_himher}!</STRING>
		</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>I'm hiding! Go away!</STRING>
			<STRING>What makes you think I needed finding?</STRING>
			<STRING>I'm hiding from $source_name, leave me alone!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>${c:target_name} has lost track of me, and I need you to find ${target_himher}.</STRING>
			<STRING>${c:target_name} is lost and needs finding.</STRING>
			<STRING>${c:target_name} is lost and afraid and I can't find ${target_himher}!</STRING>
			<STRING>${c:target_name} doesn't yet know about our new hideout here.</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_gencapture" SELECT="All">
		<STRING define="reason_verbed">$verb_captured</STRING>
		<STRING define="reason_verb">$verb_capture</STRING>
		<STRING define="quest_winspeech">$quest_generic_winner_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>I'm hiding! Go away!</STRING>
			<STRING>You can't take me!</STRING>
			<STRING>I won't be taken, leave me alone!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>I need ${target_name} captured and brought to me.</STRING>
			<STRING>I need ${c:target_name} brought to me.</STRING>
			<STRING>I need ${c:target_name} brought to account for ${target_hisher} crimes.</STRING>
			<STRING>${c:target_name} needs capturing.</STRING>
			<STRING>I am collecting ${target_name}, and need your assistance.</STRING>
			<STRING>Let's hunt ${target_name}!</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_giveinstr" SELECT="All">
		<STRING define="reason_verbed">$verb_gathered</STRING>
		<STRING define="reason_verb">$verb_gather</STRING>
		<STRING define="quest_winspeech">$quest_generic_winner_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>I'll never join $source_name!</STRING>
			<STRING>You can't take me!</STRING>
			<STRING>I won't go back to $source_name, leave me alone!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>I want to explain some things to ${target_name}.</STRING>
			<STRING>It is time for ${target_name} ${any_instrument_name} lessons.</STRING>
			<STRING>${c:target_name} is late for class.</STRING>
			<STRING>${c:target_name} is late for ${target_hisher} lessons.</STRING>
			<STRING condition="$source_class = 'Cleric'">I'm holding $adj_sactified services for ${c:target_name}.</STRING>
			<STRING CONDITION="$source_align &gt; 5000">I have much to teach ${c:target_name} about being more $adj_personality_positive.</STRING>
			<STRING CONDITION="$source_align &gt; 5000">I have much to teach ${c:target_name} about being less $adj_personality_negative.</STRING>
			<STRING CONDITION="$source_align &lt; -5000">I have much to teach ${c:target_name} about being less $adj_personality_positive.</STRING>
			<STRING CONDITION="$source_align &lt; -5000">I have much to teach ${c:target_name} about being more $adj_personality_negative.</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_planning" SELECT="All">
		<STRING define="reason_verbed">$verb_gathered</STRING>
		<STRING define="reason_verb">$verb_gather</STRING>
		<STRING define="quest_winspeech">$quest_generic_winner_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>I'll never join $source_name!</STRING>
			<STRING>You can't make me go back!</STRING>
			<STRING>I'm won't go to $source_name! Never!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>It's time for our committee meeting, and ${c:target_name} is late!</STRING>
			<STRING condition="$source_align &lt; -5000">I have a $adj_useful plan to take over $source_area_name and it involves ${c:target_name}!</STRING>
			<STRING>I have a $adj_useful plan regarding the future of $source_area_name and I need ${target_name}!</STRING>
			<STRING>${c:target_name} needs to be reminded to bring $any_instrument_name to the meeting today!</STRING>
			<STRING>${c:target_name} is late for our study of $any_item_junk_name!</STRING>
			<STRING>${c:target_name} is late for our daily discussion of $source_area_name lore and history.</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_receiveinstr" SELECT="All">
		<STRING define="reason_verbed">$verb_gathered</STRING>
		<STRING define="reason_verb">$verb_gather</STRING>
		<STRING define="quest_winspeech">$quest_generic_winner_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>I'll never talk to $source_name!</STRING>
			<STRING>You can't make me do it!</STRING>
			<STRING>I'm won't go to $source_name! Ever!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>${c:target_name} is supposed to be here to explain some things to me.</STRING>
			<STRING>It's time for my lessons with ${target_name}.</STRING>
			<STRING>${c:target_name} is supposed to teach me about $source_area_name today.</STRING>
			<STRING>${c:target_name} is supposed to teach me about $any_item_junk_name today.</STRING>
			<STRING>${c:target_name} is supposed to tell me about ${target_hisher} jobs today.</STRING>
			<STRING>${c:target_name} promised to teach me how to play $any_instrument_name.</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_idoforthem" SELECT="All">
		<STRING define="reason_verbed">$verb_gathered</STRING>
		<STRING define="reason_verb">$verb_gather</STRING>
		<STRING define="quest_winspeech">$quest_generic_winner_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>I'll never get near $source_name again!</STRING>
			<STRING>You can't make me!</STRING>
			<STRING>I'm won't go near $source_name!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>${c:target_name} needs my help to groom ${target_himher}.</STRING>
			<STRING>I wish to give ${c:target_name} a gift.</STRING>
			<STRING>I wish to play my $any_instrument_name for ${c:target_name}.</STRING>
			<STRING>I want to help out ${c:target_name}.</STRING>
			<STRING>I need to see if $any_item_junk_name fits ${c:target_name}.</STRING>
			<STRING CONDITION="$target_int &lt; 5">It's feeding time for ${c:target_name}.</STRING>
			<STRING CONDITION="$target_int &gt; 4">I've prepared a thank-you meal for ${target_name}.</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_wedotogether" SELECT="All">
		<STRING define="reason_verbed">$verb_gathered</STRING>
		<STRING define="reason_verb">$verb_gather</STRING>
		<STRING define="quest_winspeech">$quest_generic_winner_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>Never again with $source_name!</STRING>
			<STRING>You can't make me do it!</STRING>
			<STRING>I'm not doing that with $source_name!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>${c:target_name} and I are playing ${any_instrument_name} in the $source_area orchestra today.</STRING>
			<STRING>I need ${c:target_name}'s help with an important project.</STRING>
			<STRING>I want ${c:target_name} brought here to help make ${any_item_junk_name} for $source_area.</STRING>
			<STRING>${c:target_name} and I are parading around $source_area with our ${any_instrument_name} today.</STRING>
			<STRING>I fear an invasion of $source_area_name and need ${target_name} brought here to help with defense.</STRING>
			<STRING>A fire has broken out in $source_area_name and we need ${target_name} here immediately to put it out!</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_theydoforme" SELECT="All">
		<STRING define="reason_verbed">$verb_gathered</STRING>
		<STRING define="reason_verb">$verb_gather</STRING>
		<STRING define="quest_winspeech">$quest_generic_winner_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>I'll never help $source_name!</STRING>
			<STRING>You can't make me help $source_name!</STRING>
			<STRING>I'm not helping $source_name!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>${c:target_name} must come here at once to serve me.</STRING>
			<STRING>${c:target_name} must report to me.</STRING>
			<STRING>I want ${c:target_name} to come play $any_instrument_name for me.</STRING>
			<STRING>${c:target_name} needs to come help me use my $any_item_junk_name.</STRING>
			<STRING>I need ${target_name} for an important job.</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_idotothem" SELECT="All">
		<STRING define="reason_verbed">$verb_captured</STRING>
		<STRING define="reason_verb">$verb_capture</STRING>
		<STRING define="quest_winspeech">$quest_generic_winner_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>Oh no! Not $source_name!</STRING>
			<STRING>Please?! You can't take me to $source_name!</STRING>
			<STRING>I'll die before going to $source_name!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING>I must $hurt_verb ${c:target_name}, and do it in secret.</STRING>
			<STRING>I am really hungry for ${target_name}.</STRING>
			<STRING CONDITION="$target_int &lt; 4">I am giving away ${target_name} to all the children of $source_area_name.</STRING>
			<STRING CONDITION="$source_class='Mage' or $source_class='Necromancer'">I need to draw out the souls of ${target_name} for my magic.</STRING>
			<STRING>${c:target_name} is not here, so I can't $hurt_verb ${target_himher}.</STRING>
			<STRING>${c:target_name} made me $adj_feeling_bad, and I must make ${target_himher} $adj_feeling_bad.</STRING>
			<STRING>${c:target_name} is going to feel the business end of ${any_item_junk_name} for what ${target_heshe}'s done.</STRING>
		</STRING>
	</STRING>
	<STRING ID="reason_wedotoeachother" SELECT="All">
		<STRING define="reason_verbed">$verb_captured</STRING>
		<STRING define="reason_verb">$verb_capture</STRING>
		<STRING define="quest_winspeech">$quest_generic_winner_speeches</STRING>
		<STRING define="quest_losespeech">$quest_generic_loser_speeches</STRING>
		<STRING define="quest_fightspeech" SELECT="Any-1">
			<STRING>Oh no! Not $source_name again!</STRING>
			<STRING>Please?! You can't make me go to $source_name!</STRING>
			<STRING>I'd rather die than go to $source_name!</STRING>
		</STRING>
		<STRING define="quest_surrenderspeech">$quest_generic_surrender_speeches</STRING>
		<STRING define="reason_desc" SELECT="Any-1">
			<STRING CONDITION="$target_int &lt; 4">I am starting a ${target_name} farm.</STRING>
			<STRING>${c:target_name} and I are scheduled to $hurt_verb each other today.</STRING>
			<STRING>${c:target_name} has insulted my honor, and only a ritual $hurt_verb will satisfy it.</STRING>
			<STRING>I feel like engaging in a $adj_feeling_good ${target_name} ${hurt_verb}ing.</STRING>
		</STRING>
	</STRING>

	<STRING ID="item_level" define="item_level">$target_level</STRING>

	<STRING ID="aggression" DEFINE="aggression" SELECT="Pick-1">
		<STRING PICKWEIGHT=50>NO</STRING>
		<STRING PICKWEIGHT="$target_level">YES</STRING>
	</STRING>
	
	<STRING ID="will_attack_code" DEFINE="will_attack_code" SELECT="Any-1">
		<STRING CONDITION="$aggression='NO'">NO-USE-DEFAULT_BEHAVIOR</STRING>
		<STRING CONDITION="$aggression='YES'">YES-ATTACK-ON-SIGHT</STRING>
	</STRING>
	
	<STRING ID="will_react_peacefully" DEFINE="will_react_peacefully" SELECT="Any-1">
		<STRING CONDITION="$aggression='NO'">PEACEFUL</STRING>
		<STRING CONDITION="$aggression='YES'">VIOLENT</STRING>
	</STRING>
	
	<STRING ID="quest_point_awarded" DEFINE="quest_point_awarded" SELECT="Pick-1">
		<STRING PICKWEIGHT=2>NO</STRING>
		<STRING PICKWEIGHT=1>YES</STRING>
	</STRING>

	<STRING ID="gold_amount_awarded" DEFINE="gold_amount_awarded" SELECT="any-1">
		<STRING>$[$target_level*2]</STRING>
	</STRING>

	<STRING ID="xp_amount_awarded" DEFINE="xp_amount_awarded" SELECT="any-1">
		<STRING>$[100 + $target_level*3]</STRING>
	</STRING>

	<OBJECT ID="source_area" SELECT="Pick-1" DEFINE="source_area">
		<OBJECT pickweight=99999 condition="'${SELECT: name FROM area}' != ''">SELECT: . FROM area</OBJECT>
		<OBJECT pickweight=55555 condition="$area_name != ''" and '${SELECT: name FROM area}' = ''>SELECT: ANY\. FROM areas where NAME=$area_name</OBJECT> 
		<OBJECT pickweight=1 condition="$area_name = '' and '${SELECT: name FROM area}' = ''">
			SELECT: ANY\. FROM areas WHERE (SELECT: count\. from $mql_viable_questgivers) &gt; 0
		</OBJECT>
	</OBJECT>

	<OBJECT ID="source_room" DEFINE="source_room">SELECT: . FROM $source\room</OBJECT>
	
	<OBJECT ID="source" SELECT="Pick-1" DEFINE="source">
		<OBJECT PICKWEIGHT=99999 CONDITION="'${SELECT: name FROM mob}' != ''">SELECT: . FROM mob</OBJECT>
		<OBJECT pickweight=55555 condition="$sourcename != ''" and '${SELECT: name FROM mob}' = ''>SELECT: . FROM $source_area\npcs WHERE name = $sourcename</OBJECT> 
		<OBJECT PICKWEIGHT=1 CONDITION="$sourcename = '' and '${SELECT: name FROM mob}' = ''" insert="$mql_viable_questgiver" />
	</OBJECT>

	<STRING ID="source_area_name" SELECT="any-1" DEFINE="source_area_name">
		<STRING>${SELECT:name FROM $source_area}</STRING>
	</STRING>

	<STRING ID="target_level" DEFINE="target_level" SELECT="any-1">
		<STRING>${SELECT:mean\level FROM $target_area\npcs WHERE name = $target_name}</STRING>
	</STRING>
	
	<STRING ID="level_range" SELECT="any-1" DEFINE="level_range" MERGE=true>
		<STRING>$target_level</STRING>
	</STRING>
	
	<STRING ID="source_room_id" SELECT="any-1" DEFINE="source_room_id">
		<STRING>${SELECT:roomid from $source_room}</STRING>
	</STRING>

	<STRING ID="source_name" SELECT="any-1" DEFINE="source_name">
		<STRING>${SELECT:name from $source}</STRING>
	</STRING>

	<STRING ID="source_class" SELECT="any-1" DEFINE="source_class">
		<STRING>${SELECT:class from $source}</STRING>
	</STRING>

	<STRING ID="source_faction" SELECT="any-1" DEFINE="source_faction">
		<STRING>${SELECT:factionid from $source}</STRING>
	</STRING>

	<STRING ID="source_faction_amt" SELECT="first" DEFINE="source_faction_amt">
		<STRING CONDITION="$source_faction!=''">${SELECT:factionamt from $source}</STRING>
		<STRING>0</STRING>
	</STRING>

	<STRING ID="source_align" SELECT="any-1" DEFINE="source_align">
		<STRING>${SELECT:alignment from $source}</STRING>
	</STRING>

	<STRING ID="target_is_aggressive" SELECT="first" DEFINE="target_is_aggressive">
		<STRING CONDITION="$aggression = 'YES'">YES</STRING>
		<STRING>${SELECT: 'YES' from $target where 'Aggressive' in objattrib}</STRING>
	</STRING>

	<STRING load="/resources/randareas/desert.xml" />
	<STRING load="/resources/randareas/forest.xml" />
	<STRING load="/resources/randareas/jungle.xml" />
	<STRING load="/resources/randareas/lair.xml" />
	<STRING load="/resources/randareas/rats.xml" />
	<STRING load="/resources/randareas/plains.xml" />
	<STRING load="/resources/randareas/mountains.xml" />
	<STRING load="/resources/randareas/swamp.xml" />
	
	<OBJECT ID="target" DEFINE="target" SELECT="pick-1">
		<OBJECT CONDITION="$targetname!=''"" pickweight=10>
			<MOB class="GenMob" level="$level_range" race="Unique" gender="$anygender">
				<NAME>$targetname</NAME>
				<DISPLAY>$mob_name is here.</DISPLAY>
				<ALIGNMENT>$[-10000?10000]</ALIGNMENT>
				<BEHAVIOR select="Any-1">
					<BEHAVIOR class="Bardness" parms="Bard" />
					<BEHAVIOR class="Bardness" parms="Dancer" />
					<BEHAVIOR class="Bardness" parms="Jester" />
					<BEHAVIOR class="Bardness" parms="Minstrel" />
					<BEHAVIOR class="Clericness" parms="Cleric" />
					<BEHAVIOR class="Clericness" parms="Doomsayer" />
					<BEHAVIOR class="Clericness" parms="Healer" />
					<BEHAVIOR class="Clericness" parms="Missionary" />
					<BEHAVIOR class="Clericness" parms="Necromancer" />
					<BEHAVIOR class="Clericness" parms="Oracle" />
					<BEHAVIOR class="Clericness" parms="Purist" />
					<BEHAVIOR class="Clericness" parms="Shaman" />
					<BEHAVIOR class="Clericness" parms="Templar" />
					<BEHAVIOR class="Druidness" parms="Beastmaster" />
					<BEHAVIOR class="Druidness" parms="Delver" />
					<BEHAVIOR class="Druidness" parms="Druid" />
					<BEHAVIOR class="Druidness" parms="Mer" />
					<BEHAVIOR class="Druidness" parms="Skywatcher" />
					<BEHAVIOR class="Fighterness" parms="Barbarian" />
					<BEHAVIOR class="Fighterness" parms="Fighter" />
					<BEHAVIOR class="Fighterness" parms="Ranger" />
					<BEHAVIOR class="Mageness" parms="Abjurer" />
					<BEHAVIOR class="Mageness" parms="Alterer" />
					<BEHAVIOR class="Mageness" parms="Conjurer" />
					<BEHAVIOR class="Mageness" parms="Diviner" />
					<BEHAVIOR class="Mageness" parms="Enchanter" />
					<BEHAVIOR class="Mageness" parms="Evoker" />
					<BEHAVIOR class="Mageness" parms="Illusionist" />
					<BEHAVIOR class="Mageness" parms="Mage" />
					<BEHAVIOR class="Mageness" parms="Transmuter" />
					<BEHAVIOR class="Thiefness" parms="Arcanist" />
					<BEHAVIOR class="Thiefness" parms="Assassin" />
					<BEHAVIOR class="Thiefness" parms="Burglar" />
					<BEHAVIOR class="Thiefness" parms="Pirate" />
					<BEHAVIOR class="Thiefness" parms="Thief" />
					<BEHAVIOR class="Thiefness" parms="Trapper" />
				</BEHAVIOR>
			</MOB>
		</OBJECT>
		<OBJECT CONDITION="$targetname=''" PICKWEIGHT=9>SELECT: ANY\. FROM $lair_mobs</OBJECT>
		<OBJECT CONDITION="$targetname=''" PICKWEIGHT=9>SELECT: ANY\. FROM $rats_mobs</OBJECT>
		<OBJECT CONDITION="$targetname=''" PICKWEIGHT=1>SELECT: ANY\. FROM $desert_mobs</OBJECT>
		<OBJECT CONDITION="$targetname=''" PICKWEIGHT=1>SELECT: ANY\. FROM $forest_mobs</OBJECT>
		<OBJECT CONDITION="$targetname=''" PICKWEIGHT=1>SELECT: ANY\. FROM $jungle_mobs</OBJECT>
		<OBJECT CONDITION="$targetname=''" PICKWEIGHT=1>SELECT: ANY\. FROM $mountain_mobs</OBJECT>
		<OBJECT CONDITION="$targetname=''" PICKWEIGHT=1>SELECT: ANY\. FROM $plains_mobs</OBJECT>
		<OBJECT CONDITION="$targetname=''" PICKWEIGHT=1>SELECT: ANY\. FROM $swamp_mobs</OBJECT>
		<OBJECT CONDITION="$targetname=''" PICKWEIGHT=1>SELECT: ANY\. FROM $lair_mobs</OBJECT>
		<OBJECT CONDITION="$targetname=''" PICKWEIGHT=1>SELECT: ANY\. FROM $lair_mobs</OBJECT>
		<OBJECT CONDITION="$targetname=''" PICKWEIGHT=1>SELECT: ANY\. FROM $lair_mobs</OBJECT>
	</OBJECT>

	<STRING ID="target_gender" SELECT="any-1" DEFINE="target_gender">
		<STRING>${SELECT:gender from $target}</STRING>
	</STRING>
	
	<STRING ID="target_himher" SELECT="any-1" DEFINE="target_himher">
		<STRING CONDITION="$target_gender = 'M'">him</STRING>
		<STRING CONDITION="$target_gender = 'F'">her</STRING>
		<STRING CONDITION="$target_gender = 'N'">it</STRING>
	</STRING>
	
	<STRING ID="target_hisher" SELECT="any-1" DEFINE="target_hisher">
		<STRING CONDITION="$target_gender = 'M'">his</STRING>
		<STRING CONDITION="$target_gender = 'F'">her</STRING>
		<STRING CONDITION="$target_gender = 'N'">it</STRING>
	</STRING>
	
	<STRING ID="target_heshe" SELECT="any-1" DEFINE="target_himher">
		<STRING CONDITION="$target_gender = 'M'">he</STRING>
		<STRING CONDITION="$target_gender = 'F'">she</STRING>
		<STRING CONDITION="$target_gender = 'N'">it</STRING>
	</STRING>
	
	<STRING ID="hurt_him_phrase" SELECT="Any-1">
		<STRING>$hurt_verb $target_himher</STRING>
		<STRING>$hurt_verb $target_himher $hurt_adverb</STRING>
	</STRING>
	
	<STRING ID="target_name" SELECT="any-1" DEFINE="target_name">
		<STRING>${SELECT:name from $target}</STRING>
	</STRING>

	<STRING ID="target_int" SELECT="any-1" DEFINE="target_int">
		<STRING>${SELECT:current_intelligence from $target}</STRING>
	</STRING>
	
	<STRING ID="aggrochance">0</STRING>
	
	<STRING ID="multiarea" define="multiarea">NO</STRING>
	
	<OBJECT ID="target_area" SELECT="Pick-1" DEFINE="target_area">
		<OBJECT pickweight=55555 condition="$targetarea_name != ''">SELECT: ANY\. FROM areas where NAME=$targetarea_name</OBJECT> 
		<OBJECT pickweight=100 condition="$targetarea_name = '' and $multiarea != 'YES'">SELECT: any\. from $source_area</OBJECT>
		<OBJECT pickweight=1 condition="$targetarea_name = '' and $multiarea = 'YES'">
			SELECT: ANY\. FROM areas WHERE VISITABLE_ROOMS &gt; 10
		</OBJECT>
	</OBJECT>

	<STRING ID="target_area_size" SELECT="any-1" DEFINE="target_area_size">
		<STRING>${SELECT:VISITABLE_ROOMS from $target_area}</STRING>
	</STRING>	
	
	<STRING ID="target_area_name" SELECT="any-1" DEFINE="target_area_name">
		<STRING>${SELECT:name from $target_area}</STRING>
	</STRING>	
</QUEST>