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

<!-- Act III -->
        <action id="act3_intro" dialogue="act3_intro">
			<flags>
                <flag name="Game.JobWin" value=""/>
			</flags>
		</action>

        <action id="act3_q1_h1" dialogue="act3_q1_h1">
            <conditions>
                <flag name="Game.JobWin" value="1"/>
				<flag name="Quest.Conundrum Capers" value="2" type="lower"/>
				<flag name="ID.trigger_q1" value=""/>
            </conditions>
            <flags>
                <flag name="Game.JobWin" value=""/>
				<flag name="ID.trigger_q1" add="1"/>
            </flags>
		</action>
        <action id="act3_q1_h2" dialogue="act3_q1_h2">
            <conditions>
                <flag name="Game.JobWin" value="1"/>
				<flag name="Quest.Conundrum Capers" value="2" type="lower"/>
				<flag name="ID.trigger_q1" value="1"/>
            </conditions>
            <flags>
                <flag name="Game.JobWin" value=""/>
				<flag name="ID.trigger_q1" add="1"/>
            </flags>
		</action>
        <action remove="false">
            <conditions>
                <flag name="Game.JobWin" value="1"/>
				<flag name="Quest.Conundrum Capers" value="2" type="lower"/>
				<flag name="ID.trigger_q1" value="2"/>
            </conditions>
            <flags>
                <flag name="Game.JobWin" value=""/>
				<flag name="ID.trigger_q1" add="1"/>
            </flags>
		</action>
        <action id="act3_q1_1" dialogue="act3_q1_1">
			<action battle="true" name="Countess Conundrum" image="Characters07" index="4" mental="7" constitution="4" bg="Street" music="3">
				<action id="act3_q1_2" dialogue="act3_q1_2">
					<flags>
						<flag name="Quest.Conundrum Capers" value="2"/>
						<flag name="RefreshQuest" value="1"/>
					</flags>
				</action>
				<power id="Mental Bolt" level="6"/>
				<power id="Confusion" level="7"/>
			</action>
            <conditions>
				<flag name="Quest.Conundrum Capers" value="2" type="lower"/>
				<flag name="ID.trigger_q1" value="3" type="higher"/>
            </conditions>
		</action>
        <action id="act3_q1_3" dialogue="act3_q1_3">
            <conditions>
				<flag name="Resource.Clues" value="100" type="higher"/>
				<flag name="Quest.Conundrum Capers" value="2"/>
            </conditions>
			<flags>
                <flag name="Location.Fifth Second Bank" value="1"/>
				<flag name="Game.NewLocation" value="Fifth Second Bank"/>
				<flag name="MoveTo" value="Fifth Second Bank"/>
			</flags>
		</action>
        <action dialogue="act3_q1_4">
			<action win="act3_q1_b1" battle="true" name="Countess Conundrum" image="Characters07" index="4" mental="8" constitution="4" bg="Federal" music="3">
				<power id="Mental Bolt" level="7"/>
				<power id="Confusion" level="8"/>
			</action>
            <conditions>
				<flag name="Quest.Conundrum Capers" value="3"/>
				<flag name="ArriveAt" value="Fifth Second Bank"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="Refresh" value="1"/>
            </flags>
		</action>
        <action id="act3_q1_5" dialogue="act3_q1_5">
            <conditions>
				<flag name="ID.act3_q1_b1" value="1"/>
				<flag name="Quest.Conundrum Capers" value="3"/>
            </conditions>
            <flags>
                <flag name="Villain.Countess Conundrum" value="1"/>
                <flag name="Game.Villain" value="Countess Conundrum"/>
            </flags>
		</action>
        <action id="act3_q1_6" dialogue="act3_q1_6">
            <conditions>
				<flag name="Quest.Conundrum Capers" value="4"/>
            </conditions>
			<flags>
                <flag name="Game.DistressWin" value=""/>
			</flags>
		</action>

        <action id="act3_q2_h1" dialogue="act3_q2_h1">
            <conditions>
                <flag name="Game.DistressWin" value="1"/>
				<flag name="Quest.Lightning Strikes" value="2" type="lower"/>
				<flag name="Quest.Conundrum Capers" value="4"/>
				<flag name="ID.trigger_q2" value=""/>
            </conditions>
            <flags>
                <flag name="Game.DistressWin" value=""/>
				<flag name="ID.trigger_q2" add="1"/>
            </flags>
		</action>
        <action id="act3_q2_h2" dialogue="act3_q2_h2">
            <conditions>
                <flag name="Game.DistressWin" value="1"/>
				<flag name="Quest.Lightning Strikes" value="2" type="lower"/>
				<flag name="Quest.Conundrum Capers" value="4"/>
				<flag name="ID.trigger_q2" value="1"/>
            </conditions>
            <flags>
                <flag name="Game.DistressWin" value=""/>
				<flag name="ID.trigger_q2" add="1"/>
            </flags>
		</action>
        <action remove="false">
            <conditions>
                <flag name="Game.DistressWin" value="1"/>
				<flag name="Quest.Lightning Strikes" value="2" type="lower"/>
				<flag name="Quest.Conundrum Capers" value="4"/>
				<flag name="ID.trigger_q2" value="2"/>
            </conditions>
            <flags>
                <flag name="Game.DistressWin" value=""/>
				<flag name="ID.trigger_q2" add="1"/>
            </flags>
		</action>
        <action id="act3_q2_1" dialogue="act3_q2_1">
            <conditions>
				<flag name="ID.trigger_q2" value="3" type="higher"/>
            </conditions>
            <flags>
                <flag name="Quest.Lightning Strikes" value="2"/>
				<flag name="RefreshQuest" value="1"/>
           </flags>
		</action>
        <action id="act3_q2_2" dialogue="act3_q2_2">
            <conditions>
				<flag name="Resource.Clues" value="100" type="higher"/>
				<flag name="Quest.Lightning Strikes" value="2"/>
            </conditions>
		</action>
        <action dialogue="act3_q2_3" remove="false">
			<action win="act3_q2_b1" battle="true" name="Stormbringer" image="Characters03" index="1" elemental="9" constitution="6" bg="Cellar" music="3">
				<power id="Shocker" level="7"/>
				<power id="Thunderstrike" level="8"/>
			</action>
            <conditions>
				<flag name="Quest.Lightning Strikes" value="3"/>
                <flag name="ArriveAt" value="Big Jim"/>
            </conditions>
			<flags>
                <flag name="ArriveAt" value=""/>
                <flag name="Refresh" value="1"/>
			</flags>
		</action>
        <action id="act3_q2_4" dialogue="act3_q2_4">
            <conditions>
				<flag name="ID.act3_q2_b1" value="1"/>
				<flag name="Quest.Lightning Strikes" value="3"/>
            </conditions>
		</action>
        <action id="act3_q2_5" dialogue="act3_q2_5">
            <conditions>
				<flag name="Quest.Lightning Strikes" value="4"/>
            </conditions>
			<flags>
                <flag name="Game.BattleWin" value=""/>
			</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 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="Rifle" level="1"/>
					<flags>
						<flag name="Game.WinDialogue" value="act3_q3_h1"/>
					</flags>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
				<flag name="Quest.Lightning Strikes" value="4"/>
                <flag name="ArriveAt" value="burglar"/>
                <flag name="ID.trigger_q3" value=""/>
            </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 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="act3_q3_h2"/>
					</flags>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="burglar"/>
                <flag name="ID.trigger_q3" value="1"/>
            </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 battle="true" name="Harry Hardball" 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="act3_q3_h3"/>
					</flags>
				</action>
			</choice>
			<choice id="Not now..."/>
            <conditions>
                <flag name="ArriveAt" value="burglar"/>
                <flag name="ID.trigger_q3" value="2"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="FadeOut" value="burglar"/>
            </flags>
		</action>
        <action remove="false">
            <conditions>
                <flag name="Game.BattleWin" value="1"/>
				<flag name="Quest.Madman of the Year" value="2" type="lower"/>
				<flag name="Quest.Lightning Strikes" value="4"/>
            </conditions>
            <flags>
                <flag name="Game.BattleWin" value=""/>
				<flag name="ID.trigger_q3" add="1"/>
            </flags>
		</action>
        <action>
            <conditions>
				<flag name="ID.trigger_q3" value="3"/>
				<flag name="Quest.Madman of the Year" value="2" type="lower"/>
            </conditions>
            <flags>
				<flag name="Quest.Madman of the Year" value="2"/>
				<flag name="RefreshQuest" value="1"/>
            </flags>
		</action>
		<action dialogue="act3_q3_7">
			<action popup="true" title="Crush It?" text="Demolish the Protector Mk I or leave it be?">
				<choice id="Destroy!">
					<action dialogue="act3_q3_c1">
						<flags>
							<flag name="ID.act3_q3_7" value="1"/>
							<flag name="Attribute.Strength" value="50"/>
							<flag name="Attribute.Essence" value="50"/>
							<flag name="Attribute.Intelligence" value="50"/>
							<flag name="Refresh" value="1"/>
						</flags>
					</action>
				</choice>
				<choice id="Let it be...">
					<action dialogue="act3_q3_c2">
						<flags>
							<flag name="ID.act3_q3_7" value="1"/>
							<flag name="Attribute.Ethics" value="100"/>
							<flag name="Game.BlizzardWizard" add="1"/>
							<flag name="Refresh" value="1"/>
						</flags>
					</action>
				</choice>
			</action>
            <conditions>
				<flag name="Game.Dungeon" value="1"/>
				<flag name="Quest.Madman of the Year" value="2"/>
            </conditions>
		</action>
		<action dialogue="act3_q3_8" id="act3_q3_8">
            <conditions>
				<flag name="ID.act3_q3_7" value="1"/>
				<flag name="Quest.Madman of the Year" value="2"/>
            </conditions>
		</action>
        <action id="act_3_end" dialogue="act_3_end">
            <conditions>
                <flag name="Quest.Madman of the Year" value="3"/>
            </conditions>
			<flags>
				<flag name="Flag.Act" value="4"/>
				<flag name="Goto" value="Map"/>
				<flag name="Flag.StopActions" value="1"/>
			</flags>
		</action>

<!-- Big Jim -->
		<action arrow="true" guiid="location" guiname="Big Jim">
            <conditions>
                <flag name="Quest.Lightning Strikes" value="3"/>
            </conditions>
		</action>

<!-- Fifth Second Bank -->
		<action arrow="true" guiid="location" guiname="Fifth Second Bank">
            <conditions>
                <flag name="Quest.Conundrum Capers" value="3"/>
            </conditions>
		</action>

<!-- Superhero U -->
        <action dialogue="act3_hint1">
            <conditions>
                <flag name="ArriveAt" value="Superhero U"/>
				<flag name="Quest.Conundrum Capers" value=""/>
            </conditions>
            <flags>
				<flag name="Quest.Conundrum Capers" value="1"/>
				<flag name="Refresh" value="1"/>
				<flag name="RefreshQuest" value="1"/>
				<flag name="ArriveAt" value=""/>
            </flags>
		</action>
        <action dialogue="act3_hint2">
            <conditions>
                <flag name="ArriveAt" value="Superhero U"/>
				<flag name="Quest.Lightning Strikes" value=""/>
				<flag name="Quest.Conundrum Capers" value="4"/>
            </conditions>
            <flags>
				<flag name="Quest.Lightning Strikes" value="1"/>
				<flag name="Refresh" value="1"/>
				<flag name="RefreshQuest" value="1"/>
				<flag name="ArriveAt" value=""/>
            </flags>
		</action>
        <action dialogue="act3_hint3">
            <conditions>
                <flag name="ArriveAt" value="Superhero U"/>
				<flag name="Quest.Lightning Strikes" value="4"/>
				<flag name="Quest.Madman of the Year" value=""/>
            </conditions>
            <flags>
				<flag name="Quest.Madman of the Year" value="1"/>
				<flag name="Refresh" value="1"/>
 				<flag name="RefreshQuest" value="1"/>
               <flag name="ArriveAt" value=""/>
            </flags>
		</action>

        <action dialogue="bw_extra_3">
            <conditions>
				<flag name="Quest.Conundrum Capers" value="4"/>
				<flag name="Quest.Lightning Strikes" value="3" type="lower"/>
                <flag name="Level.Attribute.Ethics" value="2" type="higher"/>
				<flag name="ArriveAt" value="Ravenclaw Prison"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="Refresh" value="1"/>
                <flag name="Game.BlizzardWizard" add="1"/>
            </flags>
		</action>
        <action dialogue="bw_extra_4">
            <conditions>
				<flag name="Quest.Lightning Strikes" value="4"/>
				<flag name="Quest.Madman of the Year" value="2" type="lower"/>
                <flag name="Level.Attribute.Ethics" value="2" type="higher"/>
				<flag name="ArriveAt" value="Big Jim"/>
            </conditions>
            <flags>
                <flag name="ArriveAt" value=""/>
                <flag name="Refresh" value="1"/>
                <flag name="Game.BlizzardWizard" add="1"/>
            </flags>
		</action>
	</location>
</actions>