<?xml version="1.0" encoding="utf-8" ?>
<quests>

<!-- Act I -->
    <quest id="Easy Money">
		<status id="1" text="Go to Warehouse 59\nand look for a job">
			<conditions>
				<flag name="Resource.Money" value="10" type="higher"/>
			</conditions>
		</status>
		<status id="2" text="Work until you have\nearned $100">
			<conditions>
				<flag name="Resource.Money" value="100" type="higher"/>
				<flag name="ID.intro_2" value="1"/>
			</conditions>
		</status>
		<status id="3" text="Upgrade your\nTraining Mastery">
			<conditions>
				<flag name="Upgrade.Training Mastery" value="1" type="higher"/>
				<flag name="Game.NewUpgrade" value=""/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.intro_1" value="1"/>
		</conditions>
		<rewards>
            <flag name="Skill.Manual Labor" value="25"/>
            <flag name="Attribute.Strength" value="25"/>
		</rewards>
    </quest>
    <quest id="Pump it Up">
		<status id="1" text="Raise an attribute\nto level 1 to learn\na superpower">
			<conditions>
				<flag name="Level.Attribute.Strength" value="1" type="higher" or="true"/>
				<flag name="Level.Attribute.Essence" value="1" type="higher" or="true"/>
				<flag name="Level.Attribute.Intelligence" value="1" type="higher" or="true"/>
			</conditions>
		</status>
		<conditions>
			<flag name="Location.Force Fitness" value="1"/>
			<flag name="Location.Books and Tomes" value="1"/>
			<flag name="Location.Vegemite Park" value="1"/>
            <flag name="Game.NewLocation" value=""/>
		</conditions>
		<rewards>
            <flag name="Attribute.Constitution" value="25"/>
            <flag name="Attribute.Ethics" value="25"/>
		</rewards>
    </quest>
    <quest id="Raise the Alarm">
		<status id="1" text="Earn $250 to upgrade\nyour Burglar Alarm">
			<conditions>
				<flag name="Resource.Money" value="250" type="higher"/>
			</conditions>
		</status>
		<status id="2" text="Upgrade your\nBurglar Alarm">
			<conditions>
				<flag name="ID.intro_4" value="1"/>
			</conditions>
		</status>
		<status id="3" text="Defeat a burglar">
			<conditions>
				<flag name="Flag.FirstBattle" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.intro_burglar_alarm" value="1"/>
		</conditions>
		<rewards>
            <flag name="Attribute.Strength" value="25"/>
            <flag name="Attribute.Essence" value="25"/>
            <flag name="Attribute.Intelligence" value="25"/>
		</rewards>
    </quest>
    <quest id="Cometh a Hero">
		<status id="1" text="Collect 100 clues\nto find the villain" clues="100">
			<conditions>
				<flag name="Resource.Clues" value="100" type="higher"/>
				<flag name="ID.cometh_a_hero_1" value="1"/>
			</conditions>
		</status>
		<status id="2" text="Search for Honcho Guevara\nin the clocktower">
			<dungeon location="Big Jim" description="Search the clocktower?" w="7" h="6" startx="3" starty="5">
				<tile x="3" y="4"/>
				<tile x="3" y="3"/>
				<tile x="3" y="2" index="5" id="dcah1" optional="true">
					<action id="dcah1" dialogue="cometh_a_hero_2"/>
				</tile>
				<tile x="2" y="2"/>
				<tile x="1" y="2"/>
				<tile x="1" y="1" index="3" id="dcah3">
					<action win="dcah3" battle="true" name="Honcho Guevara" image="Characters02" index="0" physical="2" constitution="1" bg="Cellar" music="3">
						<power id="Throwing Knife" level="3"/>
						<power id="Machinegun" level="2"/>
						<flags>
							<flag name="Game.LoseDialogue" value="battle_fail"/>
                            <flag name="Game.Villain" value="Honcho Guevara"/>
						</flags>
					</action>
				</tile>
				<tile x="4" y="2"/>
				<tile x="5" y="2" index="3" id="dcahx" optional="true">
                    <action dialogue="dcahx">
                        <action win="dcahx" battle="true" name="Slicer Sam" image="Characters07" index="1" physical="-1" constitution="-1" bg="Cellar" music="5">
                            <power id="Gunshot" level="1"/>
                            <power id="Rifle" level="1"/>
                        </action>
                    </action>
                </tile>
				<tile x="5" y="1" index="4" id="dcah2" optional="true">
					<action id="dcah2">
						<action dialogue="cometh_a_hero_3"/>
						<flags>
							<flag name="Resource.Money" add="50"/>
						</flags>
					</action>
				</tile>
			</dungeon>
			<conditions>
				<flag name="Game.Dungeon" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.intro_6" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Ethics" value="50"/>
            <flag name="Attribute.Strength" value="25"/>
            <flag name="Attribute.Essence" value="25"/>
            <flag name="Attribute.Intelligence" value="25"/>
		</rewards>
    </quest>

<!-- Act II -->
    <quest id="Zero to Wannabe">
		<status id="1" text="Gather $500 for\na base upgrade">
			<conditions>
				<flag name="Resource.Money" value="500" type="higher"/>
			</conditions>
		</status>
		<status id="2" text="Upgrade your\nDistress-o-Meter">
			<conditions>
				<flag name="Upgrade.Distress-o-Meter" value="1" type="higher"/>
				<flag name="Game.NewUpgrade" value=""/>
			</conditions>
		</status>
		<status id="3" text="Help people in distress\nuntil you have gained\none Reputation level">
			<conditions>
				<flag name="Level.Resource.Reputation" value="1" type="higher"/>
				<flag name="Game.RankUp" value=""/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.act2_intro" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Ethics" value="25"/>
			<flag name="Resource.Reputation" value="50"/>
		</rewards>
    </quest>
    <quest id="Close Encounters">
		<status id="1" text="Investigate the problems\nat Ravenclaw Prison">
			<dungeon location="Ravenclaw Prison" description="Enter the prison?" w="7" h="6" startx="3" starty="5">
				<tile x="1" y="1" index="4" id="dce3" optional="true">
					<action id="dce3">
						<action dialogue="act2_ce_2"/>
						<flags>
							<flag name="Resource.Money" add="100"/>
						</flags>
					</action>
				</tile>
				<tile x="1" y="2" index="3" id="dce2" optional="true">
					<action win="dce2" battle="true" name="Small Beast" image="Animals" index="0" physical="4" constitution="2" bg="Cellar" music="5">
						<power id="Render" level="4"/>
						<flags>
							<flag name="Game.LoseDialogue" value="battle_fail"/>
						</flags>
					</action>
				</tile>
				<tile x="1" y="3"/>
				<tile x="1" y="4"/>
				<tile x="2" y="4"/>
				<tile x="3" y="1" index="4" id="dce5" optional="true">
					<action id="dce5">
						<action dialogue="act2_ce_3"/>
						<flags>
							<flag name="Resource.Reputation" add="75"/>
						</flags>
					</action>
				</tile>
				<tile x="3" y="2" index="3" id="dce4" optional="true">
					<action win="dce4" battle="true" name="Small Beast" image="Animals" index="0" physical="4" constitution="2" bg="Cellar" music="5">
						<power id="Render" level="4"/>
						<flags>
							<flag name="Game.LoseDialogue" value="battle_fail"/>
						</flags>
					</action>
				</tile>
				<tile x="3" y="3"/>
				<tile x="3" y="4" index="3" id="dce1">
					<action dialogue="act2_ce_1">
						<action win="dce1" battle="true" name="Water Beast" image="Animals" index="1" elemental="5" constitution="2" bg="Cellar" music="3">
							<power id="Waterspout" level="4"/>
							<flags>
								<flag name="Game.LoseDialogue" value="battle_fail"/>
							</flags>
						</action>
					</action>
				</tile>
				<tile x="3" y="5"/>
				<tile x="4" y="4"/>
				<tile x="5" y="1" index="3" id="dce7">
					<action win="dce7" battle="true" name="Fierce Beast" image="Animals" index="2" physical="7" constitution="3" bg="Cellar" music="3">
						<power id="Render" level="5"/>
						<power id="Vicious Bite" level="6"/>
						<flags>
							<flag name="Game.LoseDialogue" value="battle_fail"/>
						</flags>
					</action>
				</tile>
				<tile x="5" y="2" index="5" id="dce6">
					<action id="dce6" dialogue="act2_ce_4"/>
				</tile>
				<tile x="5" y="3"/>
				<tile x="5" y="4"/>
			</dungeon>
			<conditions>
				<flag name="ID.act2_ce_5" value="1"/>
			</conditions>
		</status>
		<status id="2" text="Collect 100 clues\nto learn where the beasts\ncame from" clues="100">
			<conditions>
				<flag name="Resource.Clues" value="100" type="higher"/>
				<flag name="ID.act2_ce_6" value="1"/>
			</conditions>
		</status>
		<status id="3" text="Investigate the UFO site">
			<conditions>
				<flag name="ID.act2_ce_9" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.act2_zh_1" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Ethics" value="100"/>
            <flag name="Resource.Reputation" value="100"/>
		</rewards>
    </quest>

<!-- Act III -->
    <quest id="Conundrum Capers">
		<status id="1" text="Work and earn some money">
			<conditions>
				<flag name="ID.dummy" value="1"/>
			</conditions>
		</status>
		<status id="2" text="Collect 100 clues\nto find Countess Conundrum" clues="100">
			<conditions>
				<flag name="Resource.Clues" value="100" type="higher"/>
				<flag name="ID.act3_q1_3" value="1"/>
			</conditions>
		</status>
		<status id="3" text="Defeat Countess Conundrum\nat the Fifth Second Bank">
			<conditions>
				<flag name="ID.act3_q1_5" value="1"/>
				<flag name="ID.act3_q1_b1" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.dummy" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Ethics" value="25"/>
			<flag name="Attribute.Intelligence" value="25"/>
		</rewards>
    </quest>
    <quest id="Lightning Strikes">
		<status id="1" text="Help people in distress">
			<conditions>
				<flag name="ID.dummy" value="1"/>
			</conditions>
		</status>
		<status id="2" text="Collect 100 clues\nto find out more about\nthe lightning strikes" clues="100">
			<conditions>
				<flag name="Resource.Clues" value="100" type="higher"/>
				<flag name="ID.act3_q2_2" value="1"/>
			</conditions>
		</status>
		<status id="3" text="Has Stormbringer\ngone rogue?\nInvestigate at\nBig Jim">
			<conditions>
				<flag name="ID.act3_q2_b1" value="1"/>
				<flag name="ID.act3_q2_4" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.dummy" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Ethics" value="25"/>
			<flag name="Attribute.Essence" value="25"/>
		</rewards>
    </quest>
    <quest id="Madman of the Year">
		<status id="1" text="Defeat burglars\nand gather information">
			<conditions>
				<flag name="ID.dummy" value="1"/>
			</conditions>
		</status>
		<status id="2" text="Investigate\nthe villain meeting\nat the Valley Conference\nCenter">
			<dungeon location="Valley Conference Center" description="Enter the conference center?" w="7" h="6" startx="1" starty="5">
				<tile x="1" y="5"/>
				<tile x="1" y="4"/>
				<tile x="1" y="3"/>
				<tile x="1" y="2"/>
				<tile x="1" y="1" index="3" id="act3_q3_b1">
					<action dialogue="act3_q3_1">
						<action win="act3_q3_b1" battle="true" name="Henchman" image="Characters07" index="5" physical="8" constitution="6" bg="Luxury" music="5">
							<power id="Machinegun" level="7"/>
							<power id="Mighty Punch" level="8"/>
							<flags>
								<flag name="Game.WinDialogue" value="act3_q3_2"/>
                                <flag name="Villain.Henchman" value="1"/>
                                <flag name="Game.Villain" value="Henchman"/>
							</flags>
						</action>
					</action>
				</tile>
				<tile x="2" y="1"/>
				<tile x="3" y="1"/>
				<tile x="4" y="1"/>
				<tile x="5" y="1" index="3" id="act3_q3_b2">
					<action dialogue="act3_q3_3">
						<action win="act3_q3_b2" battle="true" name="Professor Aphasia" image="Characters02" index="1" elemental="8" constitution="6" bg="Luxury" music="3">
							<power id="EMP Strike" level="7"/>
							<power id="Ice Bolt" level="7"/>
							<power id="Force Field" level="7"/>
							<flags>
								<flag name="Game.WinDialogue" value="act3_q3_4"/>
                                <flag name="Villain.Professor Aphasia" value="1"/>
                                <flag name="Game.Villain" value="Professor Aphasia"/>
							</flags>
						</action>
					</action>
				</tile>
				<tile x="5" y="2"/>
				<tile x="5" y="3"/>
				<tile x="5" y="4"/>
				<tile x="4" y="4"/>
				<tile x="3" y="4" index="5" id="act3_q3_5">
					<action dialogue="act3_q3_5" id="act3_q3_5"/>
				</tile>
				<tile x="3" y="3" index="3" id="act3_q3_b3">
					<action random="true">
						<action win="act3_q3_b3" battle="true" name="Protector Mk I" image="Characters08" index="2" elemental="9" constitution="8" bg="Luxury" music="3">
							<power id="Shocker" level="8"/>
							<power id="Force Field" level="8"/>
							<flags>
								<flag name="Game.WinDialogue" value="act3_q3_6"/>
							</flags>
							<conditions>
								<flag name="Flag.PowerChoice" value="Attribute.Strength"/>
							</conditions>
						</action>
						<action win="act3_q3_b3" battle="true" name="Protector Mk I" image="Characters08" index="2" mental="9" constitution="8" bg="Luxury" music="3">
							<power id="Confusion" level="8"/>
							<power id="Mental Bolt" level="8"/>
							<flags>
								<flag name="Game.WinDialogue" value="act3_q3_6"/>
							</flags>
							<conditions>
								<flag name="Flag.PowerChoice" value="Attribute.Essence"/>
							</conditions>
						</action>
						<action win="act3_q3_b3" battle="true" name="Protector Mk I" image="Characters08" index="2" physical="9" constitution="8" bg="Luxury" music="3">
							<power id="Concussive Punch" level="8"/>
							<power id="Rushing Beat" level="8"/>
							<flags>
								<flag name="Game.WinDialogue" value="act3_q3_6"/>
							</flags>
							<conditions>
								<flag name="Flag.PowerChoice" value="Attribute.Intelligence"/>
							</conditions>
						</action>
					</action>
				</tile>
			</dungeon>
			<conditions>
				<flag name="ID.act3_q3_8" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.dummy" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Ethics" value="50"/>
			<flag name="Attribute.Essence" value="50"/>
			<flag name="Attribute.Strength" value="50"/>
			<flag name="Attribute.Intelligence" value="50"/>
		</rewards>
    </quest>

<!-- Act IV -->
    <quest id="Telekinetic Trouble">
		<status id="1" text="Investigate Telekinetic\nGirl's cooperation with\nAgent Stalker\n\nCollect 250 clues" clues="250">
			<conditions>
				<flag name="Resource.Clues" value="250" type="higher"/>
				<flag name="ID.act4_q1_2" value="1"/>
			</conditions>
		</status>
		<status id="2" text="Confront Telekinetic Girl\nat Ravenclaw Prison">
			<conditions>
				<flag name="ID.act4_q1_4" value="1"/>
			</conditions>
		</status>
		<status id="3" text="Collect 100 clues\nto find Agent Stalker" clues="100">
			<conditions>
				<flag name="Resource.Clues" value="100" type="higher"/>
				<flag name="ID.act4_q1_5" value="1"/>
			</conditions>
		</status>
		<status id="4" text="Find Agent Stalker\nat the Department\nof Agriculture">
			<conditions>
				<flag name="ID.act4_q1_7" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.act4_intro" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Ethics" value="100"/>
			<flag name="Attribute.Essence" value="100"/>
			<flag name="Attribute.Strength" value="100"/>
			<flag name="Attribute.Intelligence" value="100"/>
		</rewards>
    </quest>
    <quest id="Robot Rampage">
		<status id="1" text="Rescue citizens\nat the Magic Mega Mall">
			<conditions>
				<flag name="ID.act4_q2_3" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.dummy" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Ethics" value="200"/>
			<flag name="Attribute.Essence" value="50"/>
			<flag name="Attribute.Strength" value="50"/>
			<flag name="Attribute.Intelligence" value="50"/>
		</rewards>
    </quest>
    <quest id="Stalker Situation">
		<status id="1" text="Collect 100 clues\nto find Agent Stalker" clues="100">
			<conditions>
				<flag name="Resource.Clues" value="100" type="higher"/>
				<flag name="ID.act4_q3_1" value="1"/>
			</conditions>
		</status>
		<status id="2" text="Defeat Agent Stalker\nat Westchester Annex">
			<dungeon location="Westchester Annex" description="Enter Westchester Annex?" w="5" h="6" startx="0" starty="1">
				<tile x="0" y="1"/>
				<tile x="1" y="1" index="3" id="act4_q3_b1">
					<action dialogue="act4_q3_2">
						<action win="act4_q3_b1" battle="true" name="Professor Aphasia" image="Characters02" index="1" elemental="11" constitution="12" bg="Classroom" music="5">
							<power id="EMP Strike" level="11"/>
							<power id="Ice Bolt" level="10"/>
							<power id="Force Field" level="10"/>
							<flags>
								<flag name="Game.WinDialogue" value="act4_q3_3"/>
							</flags>
						</action>
					</action>
				</tile>
				<tile x="2" y="1"/>
				<tile x="3" y="1" index="5" id="act4_q3_4" optional="true">
					<action id="act4_q3_4">
						<action dialogue="act4_q3_4"/>
						<flags>
							<flag name="Resource.Reputation" add="100"/>
						</flags>
					</action>
				</tile>
				<tile x="1" y="2"/>
				<tile x="3" y="2"/>
				<tile x="1" y="3" index="5" id="act4_q3_5" optional="true">
					<action id="act4_q3_5">
						<action dialogue="act4_q3_5"/>
						<flags>
							<flag name="Attribute.Ethics" add="50"/>
						</flags>
					</action>
				</tile>
				<tile x="2" y="3"/>
				<tile x="3" y="3"/>
				<tile x="3" y="4" index="3" id="act4_q3_b2">
					<action dialogue="act4_q3_6">
						<action win="act4_q3_b2" battle="true" name="Protector Mk III" image="Characters08" index="2" physical="11" constitution="13" bg="Classroom" music="3">
							<power id="Flare" level="11"/>
							<flags>
								<flag name="Game.WinDialogue" value="act4_q3_7"/>
							</flags>
						</action>
					</action>
				</tile>
			</dungeon>
			<conditions>
				<flag name="Game.Dungeon" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.dummy" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Ethics" value="100"/>
			<flag name="Attribute.Essence" value="100"/>
			<flag name="Attribute.Strength" value="100"/>
			<flag name="Attribute.Intelligence" value="100"/>
		</rewards>
    </quest>
<!-- Act V -->
    <quest id="The End is Nigh!">
		<status id="1" text="Collect 250 clues to\nfind the Blizzard Wizard" clues="250">
			<conditions>
				<flag name="Resource.Clues" value="250" type="higher"/>
				<flag name="ID.act5_q1_3" value="1"/>
			</conditions>
		</status>
		<status id="2" text="Investigate\nthe strangeness\nat the UFO">
			<conditions>
				<flag name="ID.act5_q1_5" value="1"/>
			</conditions>
		</status>
		<status id="3" text="Defeat the Time Master\nat the UFO">
			<conditions>
				<flag name="ID.act5_q1_w1" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.act5_q1_2" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Constitution" value="50"/>
            <flag name="Resource.Money" value="250"/>
            <flag name="Resource.Reputation" value="250"/>
		</rewards>
    </quest>
    <quest id="Ultimate Power">
		<status id="1" text="Defeat the Blizzard Wizard\nat Superhero U">
			<conditions>
				<flag name="ID.act5_evil_b1" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.dummy" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Essence" value="500"/>
			<flag name="Attribute.Strength" value="500"/>
			<flag name="Attribute.Intelligence" value="500"/>
		</rewards>
    </quest>
    <quest id="Deadly Cold">
		<status id="1" text="Collect 250 clues to\nfind out what the deal is\nbetween the Blizzard Wizard\nand Time Master" clues="250">
			<conditions>
				<flag name="Resource.Clues" value="250" type="higher"/>
				<flag name="ID.act5_q2_1" value="1"/>
			</conditions>
		</status>
		<status id="2" text="Confront Blizzard Wizard\nat Superhero U">
			<conditions>
				<flag name="ID.act5_q2_3" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.dummy" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Ethics" value="250"/>
            <flag name="Resource.Reputation" value="250"/>
		</rewards>
    </quest>
    <quest id="Time for Heroes">
		<status id="1" text="Collect 250 clues to\nfind the Time Master" clues="250">
			<conditions>
				<flag name="Resource.Clues" value="250" type="higher"/>
				<flag name="ID.act5_q3_1" value="1"/>
			</conditions>
		</status>
		<status id="2" text="Confront Time Master\nat the Tumble\nDown Shack">
			<conditions>
				<flag name="ID.act5_q3_3" value="1"/>
			</conditions>
		</status>
		<status id="3" text="How can you stop\nthe Time Master?\nFind 250 clues" clues="250">
			<conditions>
				<flag name="Resource.Clues" value="250" type="higher"/>
				<flag name="ID.act5_q3_4" value="1"/>
			</conditions>
		</status>
		<status id="4" text="Confront Time Master\nat the Tumble\nDown Shack">
			<conditions>
				<flag name="ID.act5_q3_win" value="1"/>
			</conditions>
		</status>
		<conditions>
			<flag name="ID.dummy" value="1"/>
		</conditions>
		<rewards>
			<flag name="Attribute.Ethics" value="500"/>
            <flag name="Resource.Reputation" value="500"/>
            <flag name="Resource.Money" value="500"/>
		</rewards>
    </quest>
</quests>