<?xml version="1.0" encoding="utf-8" ?>
<actions>
    <location id="City">

   		<action popup="true" title="Thank you for playing!" text="You have reached the end of the free version of\nSpandex Force: Champion Rising.\n\nClick the purchase button on the title screen\nto continue your adventure!">
			<choice id="OK"/>
            <conditions>
                <flag name="Game.AskFullVersion" value="1"/>
            </conditions>
            <flags>
                <flag name="Game.AskFullVersion" value="2"/>
            </flags>
        </action>

<!-- Game end -->
        <action id="game_end_time" dialogue="game_end_time">
            <action dialogue="game_end_time_2"/>
            <conditions>
                <flag name="Game.Good" value=""/>
                <flag name="Game.Evil" value=""/>
                <flag name="Game.Sidekick" value=""/>
                <flag name="Game.Time" value=""/>
                <flag name="Date.Month" value="1" type="higher"/>
            </conditions>
        </action>

        <action>
            <conditions>
                <flag name="ID.game_end_time" value="1"/>
            </conditions>
			<flags>
                <flag name="Game.Time" value="1"/>
				<flag name="Flag.Act" value="6"/>
				<flag name="Flag.ActShow" value="5"/>
				<flag name="Goto" value="Map"/>
				<flag name="Flag.StopActions" value="1"/>
			</flags>
		</action>
    
<!-- Enable locations -->
		<action>
			<conditions>
                <flag name="Upgrade.Training Mastery" value="1" type="higher"/>
                <flag name="Location.Force Fitness" value=""/>
			</conditions>
			<flags>
                <flag name="Game.NewLocation" value="Force Fitness"/>
                <flag name="Location.Force Fitness" value="1"/>
                <flag name="MoveTo" value="Force Fitness"/>
			</flags>
		</action>
		<action>
			<conditions>
                <flag name="Location.Force Fitness" value="1"/>
                <flag name="Location.Books and Tomes" value=""/>
			</conditions>
			<flags>
                <flag name="Game.NewLocation" value="Books and Tomes"/>
                <flag name="Location.Books and Tomes" value="1"/>
                <flag name="MoveTo" value="Books and Tomes"/>
			</flags>
		</action>
		<action>
			<conditions>
                <flag name="Location.Books and Tomes" value="1"/>
                <flag name="Location.Vegemite Park" value=""/>
			</conditions>
			<flags>
                <flag name="Game.NewLocation" value="Vegemite Park"/>
                <flag name="Location.Vegemite Park" value="1"/>
                <flag name="MoveTo" value="Vegemite Park"/>
			</flags>
		</action>
		<action>
			<conditions>
                <flag name="Location.Tumble Down Shack" value=""/>
                <flag name="Flag.Act" value="3" type="higher"/>
			</conditions>
			<flags>
                <flag name="Location.Tumble Down Shack" value="1"/>
			</flags>
		</action>

<!-- Department of Agriculture -->
        <action dialogue="nothing" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Department of Agriculture"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
<!-- Westchester Annex -->
        <action dialogue="sidequest_wombat" remove="false">
			<action win="sqwo" battle="true" name="The Wombat" image="Characters06" index="0" physical="15" constitution="15" bg="Arena" music="3">
				<power id="Rushing Beat" level="15"/>
				<power id="Concussive Punch" level="15"/>
			</action>
            <conditions>
				<flag name="Upgrade.Burglar Alarm" value="3" type="higher"/>
				<flag name="Flag.Act" value="5" type="higher"/>
				<flag name="Villain.The Wombat" value=""/>
				<flag name="ArriveAt" value="Westchester Annex"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="Refresh" value="1"/>
            </flags>
		</action>
        <action dialogue="sidequest_wombat_win">
            <conditions>
				<flag name="ID.sqwo" value="1"/>
				<flag name="Villain.The Wombat" value=""/>
            </conditions>
            <flags>
				<flag name="Villain.The Wombat" value="1"/>
                <flag name="Game.Villain" value="The Wombat"/>
            </flags>
        </action>
        <action dialogue="nothing" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Westchester Annex"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
<!-- Magik Mega Mall -->
        <action dialogue="nothing" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Magik Mega Mall"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

<!-- Mandrake Institute -->
		<action>
			<conditions>
                <flag name="Level.Skill.Management" value="1" type="higher"/>
                <flag name="Location.Mandrake Institute" value=""/>
			</conditions>
			<flags>
                <flag name="Game.NewLocation" value="Mandrake Institute"/>
                <flag name="Location.Mandrake Institute" value="1"/>
                <flag name="MoveTo" value="Mandrake Institute"/>
			</flags>
		</action>
		<action dialogue="job_assistant">
            <conditions>
            	<flag name="Flag.job_assistant" value=""/>
                <flag name="ArriveAt" value="Mandrake Institute"/>
            </conditions>
            <flags>
            	<flag name="Flag.job_assistant" value="1"/>
            </flags>
		</action>
		<action dialogue="job_teacher">
            <conditions>
                <flag name="ArriveAt" value="Mandrake Institute"/>
                <flag name="Level.Skill.Management" value="2" type="higher"/>
                <flag name="Level.Skill.Learning" value="2" type="higher"/>
            	<flag name="Flag.job_teacher" value=""/>
            </conditions>
            <flags>
            	<flag name="Flag.job_teacher" value="1"/>
            </flags>
		</action>
		<action dialogue="job_principal">
            <conditions>
                <flag name="ArriveAt" value="Mandrake Institute"/>
                <flag name="Level.Skill.Management" value="3" type="higher"/>
                <flag name="Level.Skill.Learning" value="3" type="higher"/>
            	<flag name="Flag.job_principal" value=""/>
            </conditions>
            <flags>
            	<flag name="Flag.job_principal" value="1"/>
            </flags>
		</action>
		<action popup="true" title="Principal" text="Work as principal at Mandrake Institute?" remove="false">
			<choice id="Let's go!">
				<action job="Principal" money="275" time="300" target_phys="40" target_elem="25" target_ment="50" bg="Classroom">
					<positive>
						<flag name="Skill.Learning" value="20"/>
						<flag name="Skill.Management" value="10"/>
						<flag name="Attribute.Intelligence" value="12"/>
						<flag name="Attribute.Constitution" value="8"/>
					</positive>
					<negative>
						<flag name="Attribute.Essence" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Mandrake Institute"/>
                <flag name="Level.Skill.Management" value="3" type="higher"/>
                <flag name="Level.Skill.Learning" value="3" type="higher"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="Teacher" text="Work as teacher at Mandrake Institute?" remove="false">
			<choice id="Let's go!">
				<action job="Teacher" money="160" time="240" target_phys="25" target_elem="25" target_ment="45" bg="Classroom">
					<positive>
						<flag name="Skill.Learning" value="20"/>
						<flag name="Skill.Management" value="10"/>
						<flag name="Skill.Manual Labor" value="10"/>
						<flag name="Attribute.Intelligence" value="12"/>
						<flag name="Attribute.Constitution" value="8"/>
					</positive>
					<negative>
						<flag name="Attribute.Essence" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Mandrake Institute"/>
                <flag name="Level.Skill.Management" value="2" type="higher"/>
                <flag name="Level.Skill.Learning" value="2" type="higher"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="Assistant" text="Work as teaching assistant at Mandrake Institute?" remove="false">
			<choice id="Let's go!">
				<action job="Assistant" money="80" time="180" target_phys="25" target_elem="25" target_ment="40" bg="Classroom">
					<positive>
						<flag name="Skill.Learning" value="20"/>
						<flag name="Skill.Management" value="10"/>
						<flag name="Skill.Manual Labor" value="10"/>
						<flag name="Attribute.Intelligence" value="12"/>
						<flag name="Attribute.Constitution" value="8"/>
					</positive>
					<negative>
						<flag name="Attribute.Essence" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Mandrake Institute"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

<!-- Westchester Academy -->
		<action>
			<conditions>
                <flag name="Level.Skill.Science" value="1" type="higher"/>
                <flag name="Level.Skill.Learning" value="1" type="higher"/>
                <flag name="Location.Westchester Academy" value=""/>
			</conditions>
			<flags>
                <flag name="Game.NewLocation" value="Westchester Academy"/>
                <flag name="Location.Westchester Academy" value="1"/>
                <flag name="MoveTo" value="Westchester Academy"/>
			</flags>
		</action>
		<action dialogue="job_lab">
            <conditions>
                <flag name="ArriveAt" value="Westchester Academy"/>
            	<flag name="Flag.job_lab" value=""/>
            </conditions>
            <flags>
            	<flag name="Flag.job_lab" value="1"/>
            </flags>
		</action>
		<action dialogue="job_research">
            <conditions>
                <flag name="ArriveAt" value="Westchester Academy"/>
                <flag name="Level.Skill.Science" value="3" type="higher"/>
                <flag name="Level.Skill.Learning" value="3" type="higher"/>
            	<flag name="Flag.job_research" value=""/>
            </conditions>
            <flags>
            	<flag name="Flag.job_research" value="1"/>
            </flags>
		</action>
		<action popup="true" title="Researcher" text="Work as researcher at Westchester Academy?" remove="false">
			<choice id="Let's go!">
				<action job="Researcher" money="300" time="300" target_phys="25" target_elem="50" target_ment="50" bg="Arena">
					<positive>
						<flag name="Skill.Science" value="20"/>
						<flag name="Skill.Learning" value="10"/>
						<flag name="Attribute.Essence" value="12"/>
						<flag name="Attribute.Intelligence" value="8"/>
					</positive>
					<negative>
						<flag name="Attribute.Strength" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Westchester Academy"/>
                <flag name="Level.Skill.Science" value="3" type="higher"/>
                <flag name="Level.Skill.Learning" value="3" type="higher"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="Lab Assistant" text="Work as lab assistant at Westchester Academy?" remove="false">
			<choice id="Let's go!">
				<action job="Lab Assistant" money="95" time="180" target_phys="25" target_elem="35" target_ment="35" bg="Arena">
					<positive>
						<flag name="Skill.Science" value="20"/>
						<flag name="Skill.Learning" value="10"/>
						<flag name="Attribute.Essence" value="12"/>
						<flag name="Attribute.Intelligence" value="8"/>
					</positive>
					<negative>
						<flag name="Attribute.Strength" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Westchester Academy"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

<!-- Soylent Corporation -->
		<action>
			<conditions>
                <flag name="Level.Skill.Science" value="2" type="higher"/>
                <flag name="Level.Skill.Manual Labor" value="2" type="higher"/>
                <flag name="Location.Soylent Corporation" value=""/>
			</conditions>
			<flags>
                <flag name="Game.NewLocation" value="Soylent Corporation"/>
                <flag name="Location.Soylent Corporation" value="1"/>
                <flag name="MoveTo" value="Soylent Corporation"/>
			</flags>
		</action>
		<action dialogue="job_trainee">
            <conditions>
                <flag name="ArriveAt" value="Soylent Corporation"/>
            	<flag name="Flag.job_trainee" value=""/>
            </conditions>
            <flags>
            	<flag name="Flag.job_trainee" value="1"/>
            </flags>
		</action>
		<action dialogue="job_manager">
            <conditions>
                <flag name="ArriveAt" value="Soylent Corporation"/>
                <flag name="Level.Skill.Science" value="3" type="higher"/>
                <flag name="Level.Skill.Management" value="3" type="higher"/>
            	<flag name="Flag.job_manager" value=""/>
            </conditions>
            <flags>
            	<flag name="Flag.job_manager" value="1"/>
            </flags>
		</action>
		<action popup="true" title="Manager" text="Work as manager at Soylent Corporation?" remove="false">
			<choice id="Let's go!">
				<action job="manager" money="350" time="300" target_phys="25" target_elem="50" target_ment="40" bg="Arena">
					<positive>
						<flag name="Skill.Science" value="20"/>
						<flag name="Skill.Management" value="10"/>
						<flag name="Attribute.Essence" value="12"/>
						<flag name="Attribute.Intelligence" value="8"/>
					</positive>
					<negative>
						<flag name="Attribute.Strength" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Soylent Corporation"/>
                <flag name="Level.Skill.Science" value="3" type="higher"/>
                <flag name="Level.Skill.Management" value="3" type="higher"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="Trainee" text="Work as trainee at Soylent Corporation?" remove="false">
			<choice id="Let's go!">
				<action job="Trainee" money="125" time="240" target_phys="35" target_elem="25" target_ment="45" bg="Arena">
					<positive>
						<flag name="Skill.Science" value="20"/>
						<flag name="Skill.Manual Labor" value="10"/>
						<flag name="Skill.Management" value="10"/>
						<flag name="Attribute.Essence" value="12"/>
						<flag name="Attribute.Constitution" value="8"/>
					</positive>
					<negative>
						<flag name="Attribute.Strength" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Soylent Corporation"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

<!-- Valley Falls Hydro -->
		<action>
			<conditions>
                <flag name="Level.Skill.Manual Labor" value="2" type="higher"/>
                <flag name="Location.Valley Falls Hydro" value=""/>
			</conditions>
			<flags>
                <flag name="Game.NewLocation" value="Valley Falls Hydro"/>
                <flag name="Location.Valley Falls Hydro" value="1"/>
                <flag name="MoveTo" value="Valley Falls Hydro"/>
			</flags>
		</action>
		<action dialogue="job_cleaner">
            <conditions>
            	<flag name="Flag.job_cleaner" value=""/>
                <flag name="ArriveAt" value="Valley Falls Hydro"/>
            </conditions>
            <flags>
            	<flag name="Flag.job_cleaner" value="1"/>
            </flags>
		</action>
		<action dialogue="job_analyst">
            <conditions>
                <flag name="Level.Skill.Manual Labor" value="3" type="higher"/>
                <flag name="Level.Skill.Science" value="3" type="higher"/>
                <flag name="ArriveAt" value="Valley Falls Hydro"/>
            	<flag name="Flag.job_analyst" value=""/>
            </conditions>
            <flags>
            	<flag name="Flag.job_analyst" value="1"/>
            </flags>
		</action>
		<action popup="true" title="Analyst" text="Work as analyst at Valley Falls Hydro?" remove="false">
			<choice id="Let's go!">
				<action job="Analyst" money="285" time="300" target_phys="40" target_elem="50" target_ment="25" bg="Arena">
					<positive>
						<flag name="Skill.Science" value="20"/>
						<flag name="Skill.Manual Labor" value="10"/>
						<flag name="Attribute.Essence" value="12"/>
						<flag name="Attribute.Constitution" value="8"/>
					</positive>
					<negative>
						<flag name="Attribute.Strength" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Valley Falls Hydro"/>
                <flag name="Level.Skill.Manual Labor" value="3" type="higher"/>
                <flag name="Level.Skill.Science" value="3" type="higher"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="Vat Cleaner" text="Work as vat cleaner at Valley Falls Hydro?" remove="false">
			<choice id="Let's go!">
				<action job="Vat Cleaner" money="85" time="180" target_phys="25" target_elem="40" target_ment="25" bg="Arena">
					<positive>
						<flag name="Skill.Science" value="20"/>
						<flag name="Skill.Manual Labor" value="10"/>
						<flag name="Attribute.Essence" value="12"/>
						<flag name="Attribute.Constitution" value="8"/>
					</positive>
					<negative>
						<flag name="Attribute.Strength" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Valley Falls Hydro"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

<!-- Kal Butte Hotel -->
		<action>
			<conditions>
                <flag name="Level.Skill.Manual Labor" value="1" type="higher"/>
                <flag name="Location.Kal Butte Hotel" value=""/>
			</conditions>
			<flags>
                <flag name="Game.NewLocation" value="Kal Butte Hotel"/>
                <flag name="Location.Kal Butte Hotel" value="1"/>
                <flag name="MoveTo" value="Kal Butte Hotel"/>
			</flags>
		</action>
		<action dialogue="job_busboy">
            <conditions>
                <flag name="ArriveAt" value="Kal Butte Hotel"/>
            	<flag name="Flag.job_busboy" value=""/>
            </conditions>
            <flags>
            	<flag name="Flag.job_busboy" value="1"/>
            </flags>
		</action>
		<action dialogue="job_director">
            <conditions>
                <flag name="ArriveAt" value="Kal Butte Hotel"/>
                <flag name="Level.Skill.Manual Labor" value="3" type="higher"/>
                <flag name="Level.Skill.Management" value="3" type="higher"/>
            	<flag name="Flag.job_director" value=""/>
            </conditions>
            <flags>
            	<flag name="Flag.job_director" value="1"/>
            </flags>
		</action>
		<action popup="true" title="Director" text="Work as director at the Kal Butte Hotel?" remove="false">
			<choice id="Let's go!">
				<action job="Director" money="300" time="300" target_phys="45" target_elem="25" target_ment="45" bg="Luxury">
					<positive>
						<flag name="Skill.Manual Labor" value="10"/>
						<flag name="Skill.Management" value="20"/>
						<flag name="Attribute.Constitution" value="8"/>
						<flag name="Attribute.Intelligence" value="12"/>
					</positive>
					<negative>
						<flag name="Attribute.Essence" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Kal Butte Hotel"/>
                <flag name="Level.Skill.Manual Labor" value="3" type="higher"/>
                <flag name="Level.Skill.Management" value="3" type="higher"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
       </action>
		<action popup="true" title="Busboy" text="Clear some tables at the Kal Butte Hotel?" remove="false">
			<choice id="Let's go!">
				<action job="Busboy" money="60" time="120" target_phys="25" target_elem="25" target_ment="25" bg="Luxury">
					<positive>
						<flag name="Skill.Manual Labor" value="10"/>
						<flag name="Skill.Management" value="20"/>
						<flag name="Attribute.Constitution" value="12"/>
						<flag name="Attribute.Intelligence" value="8"/>
					</positive>
					<negative>
						<flag name="Attribute.Essence" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Kal Butte Hotel"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
       </action>

<!-- Show base -->

		<action remove="false">
			<conditions>
				<flag name="ArriveAt" value="Hero Base"/>
			</conditions>
			<flags>
				<flag name="Game.ShowBase" value="1"/>
				<flag name="ArriveAt" value=""/>
				<flag name="Refresh" value="1"/>
			</flags>
		</action>

<!-- Superhero U -->
        <action dialogue="bw_nothing" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Superhero U"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

<!-- Force Fitness -->

		<action popup="true" title="Pushups" text="Pay $10 to workout at the Force Fitness center?" remove="false">
			<choice id="Let's go!">
				<action training="Pushups" moves="10" bg="Arena">
					<positive>
						<flag name="Attribute.Strength" value="5"/>
						<flag name="Attribute.Strength" value="3"/>
						<flag name="Attribute.Strength" value="1"/>
					</positive>
					<flags>
						<flag name="Resource.Money" add="-10"/>
					</flags>
				</action>
				<conditions>
					<flag name="Resource.Money" value="10" type="higher"/>
				</conditions>
			</choice>
			<choice id="Not now...">
				<conditions>
					<flag name="Resource.Money" value="10" type="higher"/>
				</conditions>
			</choice>
			<choice id="Too broke...">
				<conditions>
					<flag name="Resource.Money" value="10" type="lower"/>
				</conditions>
			</choice>
            <conditions>
                <flag name="ArriveAt" value="Force Fitness"/>
				<flag name="Upgrade.Training Mastery" value="1"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="Gym" text="Pay $25 to lift some weights at the Force Fitness center?" remove="false">
			<choice id="Let's go!">
				<action training="Gym" moves="10" bg="Arena">
					<positive>
						<flag name="Attribute.Strength" value="10"/>
						<flag name="Attribute.Strength" value="5"/>
						<flag name="Attribute.Strength" value="2"/>
					</positive>
					<flags>
						<flag name="Resource.Money" add="-25"/>
					</flags>
				</action>
				<conditions>
					<flag name="Resource.Money" value="25" type="higher"/>
				</conditions>
			</choice>
			<choice id="Not now...">
				<conditions>
					<flag name="Resource.Money" value="25" type="higher"/>
				</conditions>
			</choice>
			<choice id="Too broke...">
				<conditions>
					<flag name="Resource.Money" value="25" type="lower"/>
				</conditions>
			</choice>
            <conditions>
                <flag name="ArriveAt" value="Force Fitness"/>
				<flag name="Upgrade.Training Mastery" value="2"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="Body Building" text="Pay $50 to do some hard workout at the Force Fitness center?" remove="false">
			<choice id="Let's go!">
				<action training="Body Building" moves="10" bg="Arena">
					<positive>
						<flag name="Attribute.Strength" value="20"/>
						<flag name="Attribute.Strength" value="10"/>
						<flag name="Attribute.Strength" value="5"/>
					</positive>
					<flags>
						<flag name="Resource.Money" add="-50"/>
					</flags>
				</action>
				<conditions>
					<flag name="Resource.Money" value="50" type="higher"/>
				</conditions>
			</choice>
			<choice id="Not now...">
				<conditions>
					<flag name="Resource.Money" value="50" type="higher"/>
				</conditions>
			</choice>
			<choice id="Too broke...">
				<conditions>
					<flag name="Resource.Money" value="50" type="lower"/>
				</conditions>
			</choice>
            <conditions>
                <flag name="ArriveAt" value="Force Fitness"/>
				<flag name="Upgrade.Training Mastery" value="3"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

<!-- Books and Tomes -->

		<action popup="true" title="Library" text="Pay $10 to do some studying at Books and Tomes?" remove="false">
			<choice id="Let's go!">
				<action training="Library" moves="10" bg="Classroom">
					<positive>
						<flag name="Attribute.Intelligence" value="5"/>
						<flag name="Attribute.Intelligence" value="3"/>
						<flag name="Attribute.Intelligence" value="1"/>
					</positive>
					<flags>
						<flag name="Resource.Money" add="-10"/>
					</flags>
				</action>
				<conditions>
					<flag name="Resource.Money" value="10" type="higher"/>
				</conditions>
			</choice>
			<choice id="Not now...">
				<conditions>
					<flag name="Resource.Money" value="10" type="higher"/>
				</conditions>
			</choice>
			<choice id="Too broke...">
				<conditions>
					<flag name="Resource.Money" value="10" type="lower"/>
				</conditions>
			</choice>
            <conditions>
                <flag name="ArriveAt" value="Books and Tomes"/>
				<flag name="Upgrade.Training Mastery" value="1"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="Community College" text="Pay $25 to study some Community College level courses?" remove="false">
			<choice id="Let's go!">
				<action training="Community College" moves="10" bg="Classroom">
					<positive>
						<flag name="Attribute.Intelligence" value="10"/>
						<flag name="Attribute.Intelligence" value="5"/>
						<flag name="Attribute.Intelligence" value="2"/>
					</positive>
					<flags>
						<flag name="Resource.Money" add="-25"/>
					</flags>
				</action>
				<conditions>
					<flag name="Resource.Money" value="25" type="higher"/>
				</conditions>
			</choice>
			<choice id="Not now...">
				<conditions>
					<flag name="Resource.Money" value="25" type="higher"/>
				</conditions>
			</choice>
			<choice id="Too broke...">
				<conditions>
					<flag name="Resource.Money" value="25" type="lower"/>
				</conditions>
			</choice>
            <conditions>
                <flag name="ArriveAt" value="Books and Tomes"/>
				<flag name="Upgrade.Training Mastery" value="2"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="University" text="Pay $50 to study some University level courses?" remove="false">
			<choice id="Let's go!">
				<action training="University" moves="10" bg="Classroom">
					<positive>
						<flag name="Attribute.Intelligence" value="20"/>
						<flag name="Attribute.Intelligence" value="10"/>
						<flag name="Attribute.Intelligence" value="5"/>
					</positive>
					<flags>
						<flag name="Resource.Money" add="-50"/>
					</flags>
				</action>
				<conditions>
					<flag name="Resource.Money" value="50" type="higher"/>
				</conditions>
			</choice>
			<choice id="Not now...">
				<conditions>
					<flag name="Resource.Money" value="50" type="higher"/>
				</conditions>
			</choice>
			<choice id="Too broke...">
				<conditions>
					<flag name="Resource.Money" value="50" type="lower"/>
				</conditions>
			</choice>
            <conditions>
                <flag name="ArriveAt" value="Books and Tomes"/>
				<flag name="Upgrade.Training Mastery" value="3"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

<!-- Vegemite Park -->

		<action popup="true" title="Gardening" text="Pay $10 to pull up some weeds at Vegemite Park?" remove="false">
			<choice id="Let's go!">
				<action training="Gardening" moves="10" bg="Federal">
					<positive>
						<flag name="Attribute.Essence" value="5"/>
						<flag name="Attribute.Essence" value="3"/>
						<flag name="Attribute.Essence" value="1"/>
					</positive>
					<flags>
						<flag name="Resource.Money" add="-10"/>
					</flags>
				</action>
				<conditions>
					<flag name="Resource.Money" value="10" type="higher"/>
				</conditions>
			</choice>
			<choice id="Not now...">
				<conditions>
					<flag name="Resource.Money" value="10" type="higher"/>
				</conditions>
			</choice>
			<choice id="Too broke...">
				<conditions>
					<flag name="Resource.Money" value="10" type="lower"/>
				</conditions>
			</choice>
            <conditions>
                <flag name="ArriveAt" value="Vegemite Park"/>
				<flag name="Upgrade.Training Mastery" value="1"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="Recycling" text="Pay $25 to help with recycling at Vegemite Park?" remove="false">
			<choice id="Let's go!">
				<action training="Gardening" moves="10" bg="Federal">
					<positive>
						<flag name="Attribute.Essence" value="10"/>
						<flag name="Attribute.Essence" value="5"/>
						<flag name="Attribute.Essence" value="2"/>
					</positive>
					<flags>
						<flag name="Resource.Money" add="-25"/>
					</flags>
				</action>
				<conditions>
					<flag name="Resource.Money" value="25" type="higher"/>
				</conditions>
			</choice>
			<choice id="Not now...">
				<conditions>
					<flag name="Resource.Money" value="25" type="higher"/>
				</conditions>
			</choice>
			<choice id="Too broke...">
				<conditions>
					<flag name="Resource.Money" value="25" type="lower"/>
				</conditions>
			</choice>
            <conditions>
                <flag name="ArriveAt" value="Vegemite Park"/>
				<flag name="Upgrade.Training Mastery" value="2"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="Meditation" text="Pay $50 for some zen meditation at Vegemite Park?" remove="false">
			<choice id="Let's go!">
				<action training="Gardening" moves="10" bg="Federal">
					<positive>
						<flag name="Attribute.Essence" value="20"/>
						<flag name="Attribute.Essence" value="10"/>
						<flag name="Attribute.Essence" value="5"/>
					</positive>
					<flags>
						<flag name="Resource.Money" add="-50"/>
					</flags>
				</action>
				<conditions>
					<flag name="Resource.Money" value="50" type="higher"/>
				</conditions>
			</choice>
			<choice id="Not now...">
				<conditions>
					<flag name="Resource.Money" value="50" type="higher"/>
				</conditions>
			</choice>
			<choice id="Too broke...">
				<conditions>
					<flag name="Resource.Money" value="50" type="lower"/>
				</conditions>
			</choice>
            <conditions>
                <flag name="ArriveAt" value="Vegemite Park"/>
				<flag name="Upgrade.Training Mastery" value="3"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

<!-- Warehouse 59 -->

		<action dialogue="job_overseer">
            <conditions>
                <flag name="ArriveAt" value="Warehouse 59"/>
                <flag name="Level.Skill.Management" value="2" type="higher"/>
                <flag name="Level.Skill.Manual Labor" value="2" type="higher"/>
            	<flag name="Flag.job_overseer" value=""/>
            </conditions>
            <flags>
            	<flag name="Flag.job_overseer" value="1"/>
            </flags>
		</action>
		<action popup="true" title="Overseer" text="Work as overseer at Warehouse 59?" remove="false">
			<choice id="Let's go!">
				<action job="Overseer" money="120" time="240" target_phys="45" target_elem="25" target_ment="25" bg="Cellar">
					<positive>
						<flag name="Skill.Manual Labor" value="20"/>
						<flag name="Skill.Management" value="10"/>
						<flag name="Attribute.Strength" value="12"/>
						<flag name="Attribute.Constitution" value="8"/>
					</positive>
					<negative>
						<flag name="Attribute.Essence" value="-5"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Warehouse 59"/>
                <flag name="Level.Skill.Management" value="2" type="higher"/>
                <flag name="Level.Skill.Manual Labor" value="2" type="higher"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
		<action popup="true" title="Stacker" text="Haul some boxes at the warehouse?" remove="false">
			<choice id="Let's go!">
				<action job="Stacker" money="40" time="120" target_phys="20" target_elem="20" target_ment="20" bg="Cellar">
					<positive>
						<flag name="Skill.Manual Labor" value="20"/>
						<flag name="Attribute.Strength" value="6"/>
						<flag name="Attribute.Constitution" value="14"/>
					</positive>
					<negative>
						<flag name="Attribute.Intelligence" value="-3"/>
					</negative>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="Warehouse 59"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
       </action>

<!-- Tumble Down Shack -->
        <action dialogue="sidequest_hyena" remove="false">
			<action win="sqhy" battle="true" name="The Hyena" image="Characters06" index="3" elemental="8" constitution="4" bg="Arena" music="3">
				<power id="Shocker" level="8"/>
				<power id="Force Field" level="8"/>
			</action>
            <conditions>
				<flag name="Upgrade.Burglar Alarm" value="3" type="higher"/>
				<flag name="Flag.Act" value="3" type="higher"/>
				<flag name="Villain.The Hyena" value=""/>
				<flag name="ArriveAt" value="Tumble Down Shack"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="Refresh" value="1"/>
            </flags>
		</action>
        <action dialogue="sidequest_hyena_win">
            <conditions>
				<flag name="ID.sqhy" value="1"/>
				<flag name="Villain.The Hyena" value=""/>
            </conditions>
            <flags>
				<flag name="Villain.The Hyena" value="1"/>
                <flag name="Game.Villain" value="The Hyena"/>
            </flags>
        </action>
        <action dialogue="nothing" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Tumble Down Shack"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
       
<!-- UFO -->
        <action dialogue="sidequest_wonder_boy" remove="false">
			<action win="sqwb" battle="true" name="Wonder Boy" image="Characters07" index="3" mental="8" constitution="4" bg="Arena" music="3">
				<power id="Mental Bolt" level="8"/>
				<power id="Mind Control" level="8"/>
			</action>
            <conditions>
				<flag name="Upgrade.Burglar Alarm" value="2" type="higher"/>
				<flag name="Flag.Act" value="3" type="higher"/>
				<flag name="Villain.Wonder Boy" value=""/>
				<flag name="ArriveAt" value="UFO"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="Refresh" value="1"/>
            </flags>
		</action>
        <action dialogue="sidequest_wonder_boy_win">
            <conditions>
				<flag name="ID.sqwb" value="1"/>
				<flag name="Villain.Wonder Boy" value=""/>
            </conditions>
            <flags>
				<flag name="Villain.Wonder Boy" value="1"/>
                <flag name="Game.Villain" value="Wonder Boy"/>
            </flags>
        </action>
        <action dialogue="nothing" remove="false">
            <conditions>
                <flag name="ArriveAt" value="UFO"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
<!-- Big Jim -->
        <action dialogue="nothing" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Big Jim"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
<!-- Ravenclaw Prison -->
        <action dialogue="nothing" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Ravenclaw Prison"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
<!-- Fifth Second Bank -->
        <action dialogue="sidequest_infinitorax" remove="false">
			<action win="sqin" battle="true" name="Infinitorax Supreme" image="Characters04" index="0" elemental="10" constitution="5" bg="Federal" music="3">
				<power id="Ice Beam" level="9"/>
				<power id="Force Field" level="9"/>
			</action>
            <conditions>
				<flag name="Upgrade.Burglar Alarm" value="2" type="higher"/>
				<flag name="Quest.Conundrum Capers" value="4"/>
				<flag name="Villain.Infinitorax Supreme" value=""/>
				<flag name="ArriveAt" value="Fifth Second Bank"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="Refresh" value="1"/>
            </flags>
		</action>
        <action dialogue="sidequest_infinitorax_win">
            <conditions>
				<flag name="ID.sqin" value="1"/>
				<flag name="Villain.Infinitorax Supreme" value=""/>
            </conditions>
            <flags>
				<flag name="Villain.Infinitorax Supreme" value="1"/>
                <flag name="Game.Villain" value="Infinitorax Supreme"/>
            </flags>
        </action>
        <action dialogue="nothing" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Fifth Second Bank"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
<!-- Valley Conference Center -->
        <action dialogue="sidequest_supreme" remove="false">
			<action win="sqsu" battle="true" name="Ms Supreme" image="Characters06" index="1" mental="12" constitution="8" bg="Arena" music="3">
				<power id="Mind Control" level="11"/>
				<power id="Telekinetic Strike" level="11"/>
			</action>
            <conditions>
				<flag name="Upgrade.Burglar Alarm" value="3" type="higher"/>
				<flag name="Flag.Act" value="4" type="higher"/>
				<flag name="Villain.Ms Supreme" value=""/>
				<flag name="ArriveAt" value="Valley Conference Center"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="Refresh" value="1"/>
            </flags>
		</action>
        <action dialogue="sidequest_supreme_win">
            <conditions>
				<flag name="ID.sqsu" value="1"/>
				<flag name="Villain.Ms Supreme" value=""/>
            </conditions>
            <flags>
				<flag name="Villain.Ms Supreme" value="1"/>
                <flag name="Game.Villain" value="Ms Supreme"/>
            </flags>
        </action>
        <action dialogue="nothing" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Valley Conference Center"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

	<!-- Handle distress actions -->

		<action random="true" remove="false">
			<action popup="true" title="Heads Up" text="Is it a bird? Is it a plane? No, it's a bunch of falling objects about to hit that old lady!">
				<choice id="Let's go!">
					<action game="falling" difficulty="1" attribute="Attribute.Essence" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_falling"/>
						<flag name="Game.LoseDialogue" value="distress_falling"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="falling" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="1"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="falling"/>
				</flags>
			</action>
			<action popup="true" title="Heads Up" text="Is it a bird? Is it a plane? No, it's a bunch of falling objects about to hit that old lady!">
				<choice id="Let's go!">
					<action game="falling" difficulty="2" attribute="Attribute.Essence" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_falling"/>
						<flag name="Game.LoseDialogue" value="distress_falling"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="falling" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="2"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="falling"/>
				</flags>
			</action>
			<action popup="true" title="Heads Up" text="Is it a bird? Is it a plane? No, it's a bunch of falling objects about to hit that old lady!">
				<choice id="Let's go!">
					<action game="falling" difficulty="3" attribute="Attribute.Essence" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_falling"/>
						<flag name="Game.LoseDialogue" value="distress_falling"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="falling" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="3"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="falling"/>
				</flags>
			</action>
			<action popup="true" title="Runaway Car" text="Watch out! An old lady is about to get hit by a car. Can you save her?">
				<choice id="Let's go!">
					<action game="car" difficulty="1" attribute="Attribute.Strength" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_car"/>
						<flag name="Game.LoseDialogue" value="distress_car"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="car" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="1"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="car"/>
				</flags>
			</action>
			<action popup="true" title="Runaway Car" text="Watch out! An old lady is about to get hit by a car. Can you save her?">
				<choice id="Let's go!">
					<action game="car" difficulty="2" attribute="Attribute.Strength" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_car"/>
						<flag name="Game.LoseDialogue" value="distress_car"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="car" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="2"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="car"/>
				</flags>
			</action>
			<action popup="true" title="Runaway Car" text="Watch out! An old lady is about to get hit by a car. Can you save her?">
				<choice id="Let's go!">
					<action game="car" difficulty="3" attribute="Attribute.Strength" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_car"/>
						<flag name="Game.LoseDialogue" value="distress_car"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="car" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="3"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="car"/>
				</flags>
			</action>
			<action popup="true" title="Pickpocket Gang" text="A gang of pickpockets are up to no good! Can you find them?">
				<choice id="Let's go!">
					<action game="search" difficulty="1" attribute="Attribute.Strength" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_search"/>
						<flag name="Game.LoseDialogue" value="distress_search"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="search" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="1"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="search"/>
				</flags>
			</action>
			<action popup="true" title="Pickpocket Gang" text="A gang of pickpockets are up to no good! Can you find them?">
				<choice id="Let's go!">
					<action game="search" difficulty="2" attribute="Attribute.Strength" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_search"/>
						<flag name="Game.LoseDialogue" value="distress_search"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="search" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="2"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="search"/>
				</flags>
			</action>
			<action popup="true" title="Pickpocket Gang" text="A gang of pickpockets are up to no good! Can you find them?">
				<choice id="Let's go!">
					<action game="search" difficulty="3" attribute="Attribute.Strength" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_search"/>
						<flag name="Game.LoseDialogue" value="distress_search"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="search" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="3"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="search"/>
				</flags>
			</action>
			<action popup="true" title="Cats in Tree" text="A herd of cats are stuck in a tree! Can you help them?">
				<choice id="Let's go!">
					<action game="tree" difficulty="1" attribute="Attribute.Strength" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_cat"/>
						<flag name="Game.LoseDialogue" value="distress_cat"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="tree" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="1"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="tree"/>
				</flags>
			</action>
			<action popup="true" title="Cats in Tree" text="A herd of cats are stuck in a tree! Can you help them?">
				<choice id="Let's go!">
					<action game="tree" difficulty="2" attribute="Attribute.Strength" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_cat"/>
						<flag name="Game.LoseDialogue" value="distress_cat"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="tree" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="2"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="tree"/>
				</flags>
			</action>
			<action popup="true" title="Cats in Tree" text="A herd of cats are stuck in a tree! Can you help them?">
				<choice id="Let's go!">
					<action game="tree" difficulty="3" attribute="Attribute.Strength" title="" text=""/>
					<flags>
						<flag name="Game.WinDialogue" value="distress_cat"/>
						<flag name="Game.LoseDialogue" value="distress_cat"/>
					</flags>
				</choice>
				<choice id="Not now..."/>
				<conditions>
					<flag name="Game.LastDistress" value="tree" type="not"/>
					<flag name="Upgrade.Distress-o-Meter" value="3"/>
				</conditions>
				<flags>
					<flag name="Game.LastDistress" value="tree"/>
				</flags>
			</action>
            <conditions>
                <flag name="ArriveAt" value="distress"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="FadeOut" value="distress"/>
            </flags>
		</action>

<!-- Handle burglar actions -->

<!--
        <action dialogue="intro_burglar_no_power" remove="false">
            <conditions>
                <flag name="ArriveAt" value="burglar"/>
                <flag name="Flag.FirstBattle" value="1" type="lower"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="FadeOut" value="burglar"/>
            </flags>
		</action>
-->
		<action popup="true" title="Burglar!" text="A burglar on the run! Will you try to stop him?" remove="false">
			<choice id="Let's go!">
				<action random="true">
					<action battle="true" name="Shorty McDuff" image="Characters07" index="0" physical="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Throwing Knife" level="1"/>
						<power id="Gunshot" level="1"/>
						<flags>
							<flag name="Game.WinDialogue" value="burglar_win"/>
						</flags>
					</action>
					<action battle="true" name="Sleazy Eddie" image="Characters07" index="0" physical="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Throwing Knife" level="1"/>
						<power id="Gunshot" level="1"/>
						<power id="Rifle" level="1"/>
						<flags>
							<flag name="Game.WinDialogue" value="burglar_win"/>
						</flags>
					</action>
					<action battle="true" name="Slicer Sam" image="Characters07" index="1" physical="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Gunshot" level="1"/>
						<power id="Rifle" level="1"/>
						<flags>
							<flag name="Game.WinDialogue" value="burglar_win"/>
						</flags>
					</action>
					<action battle="true" name="Gutter Godfrey" image="Characters07" index="1" physical="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Gunshot" level="1"/>
						<power id="Rifle" level="1"/>
						<flags>
							<flag name="Game.WinDialogue" value="burglar_win"/>
						</flags>
					</action>
					<action battle="true" name="Harry Hardball" image="Characters07" index="2" physical="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Gunshot" level="1"/>
						<power id="Rifle" level="1"/>
						<power id="Machinegun" level="1"/>
						<flags>
							<flag name="Game.WinDialogue" value="burglar_win"/>
						</flags>
					</action>
					<action battle="true" name="Machinegun Tommy" image="Characters07" index="2" physical="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Rifle" level="1"/>
						<power id="Machinegun" level="1"/>
						<flags>
							<flag name="Game.WinDialogue" value="burglar_win"/>
						</flags>
					</action>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="burglar"/>
				<flag name="Upgrade.Burglar Alarm" value="1"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="FadeOut" value="burglar"/>
            </flags>
		</action>

		<action popup="true" title="Villain!" text="A villain is up to mischief! Will you try to stop him?" remove="false">
			<choice id="Let's go!">
				<action random="true">
					<action battle="true" name="Henchman" image="Characters07" index="5" physical="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Machinegun" level="1"/>
						<power id="Mighty Punch" level="1"/>
                        <conditions>
                            <flag name="Villain.Henchman" value="1"/>
                        </conditions>
					</action>
					<action battle="true" name="Honcho Guevara" image="Characters02" index="0" physical="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Rushing Beat" level="1"/>
						<power id="Machinegun" level="1"/>
					</action>
					<action battle="true" name="Countess Conundrum" image="Characters07" index="4" mental="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Confusion" level="1"/>
						<power id="Mental Bolt" level="1"/>
                        <conditions>
                            <flag name="Villain.Countess Conundrum" value="1"/>
                        </conditions>
					</action>
					<action battle="true" name="Wonder Boy" image="Characters07" index="3" mental="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Mind Control" level="1"/>
						<power id="Mental Bolt" level="1"/>
                        <conditions>
                            <flag name="Villain.Wonder Boy" value="1"/>
                        </conditions>
					</action>
					<action battle="true" name="Professor Aphasia" image="Characters02" index="1" elemental="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Ice Bolt" level="1"/>
						<power id="Thunderstrike" level="1"/>
                        <conditions>
                            <flag name="Villain.Professor Aphasia" value="1"/>
                        </conditions>
					</action>
					<action battle="true" name="Infinitorax Supreme" image="Characters04" index="0" elemental="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Force Field" level="1"/>
						<power id="Shocker" level="1"/>
                        <conditions>
                            <flag name="Villain.Infinitorax Supreme" value="1"/>
                        </conditions>
					</action>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="burglar"/>
				<flag name="Upgrade.Burglar Alarm" value="2"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="FadeOut" value="burglar"/>
            </flags>
		</action>

		<action popup="true" title="Supervillain!" text="A supervillain is on the loose! Will you try to stop him?" remove="false">
			<choice id="Let's go!">
				<action random="true">
					<action battle="true" name="Henchman" image="Characters07" index="5" physical="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Machinegun" level="1"/>
						<power id="Mighty Punch" level="1"/>
                        <conditions>
                            <flag name="Villain.Henchman" value="1"/>
                        </conditions>
					</action>
					<action battle="true" name="Honcho Guevara" image="Characters02" index="0" physical="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Concussive Punch" level="1"/>
						<power id="Machinegun" level="1"/>
					</action>
					<action battle="true" name="Countess Conundrum" image="Characters07" index="4" mental="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Confusion" level="1"/>
						<power id="Mental Bolt" level="1"/>
                        <conditions>
                            <flag name="Villain.Countess Conundrum" value="1"/>
                        </conditions>
					</action>
					<action battle="true" name="Wonder Boy" image="Characters07" index="3" mental="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Mind Control" level="1"/>
						<power id="Mental Bolt" level="1"/>
                        <conditions>
                            <flag name="Villain.Wonder Boy" value="1"/>
                        </conditions>
					</action>
					<action battle="true" name="Professor Aphasia" image="Characters02" index="1" elemental="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Ice Bolt" level="1"/>
						<power id="Thunderstrike" level="1"/>
                        <conditions>
                            <flag name="Villain.Professor Aphasia" value="1"/>
                        </conditions>
					</action>
					<action battle="true" name="Infinitorax Supreme" image="Characters04" index="0" elemental="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Force Field" level="1"/>
						<power id="Shocker" level="1"/>
                        <conditions>
                            <flag name="Villain.Infinitorax Supreme" value="1"/>
                        </conditions>
					</action>
					<action battle="true" name="The Wombat" image="Characters06" index="0" physical="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Rushing Beat" level="1"/>
						<power id="Concussive Punch" level="1"/>
                        <conditions>
                            <flag name="Villain.The Wombat" value="1"/>
                        </conditions>
					</action>
					<action battle="true" name="Ms Supreme" image="Characters06" index="1" mental="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Telekinetic Strike" level="1"/>
						<power id="Mind Control" level="1"/>
                        <conditions>
                            <flag name="Villain.Ms Supreme" value="1"/>
                        </conditions>
					</action>
					<action battle="true" name="The Hyena" image="Characters06" index="3" elemental="-1" constitution="-1" bg="CloudsBlue" music="5">
						<power id="Ice Beam" level="1"/>
						<power id="Thunderstrike" level="1"/>
                        <conditions>
                            <flag name="Villain.The Hyena" value="1"/>
                        </conditions>
					</action>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="burglar"/>
				<flag name="Upgrade.Burglar Alarm" value="3"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="FadeOut" value="burglar"/>
            </flags>
		</action>

	</location>
</actions>