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

<!-- Act V -->
        <action id="act5_intro" dialogue="act5_intro"/>
		<action arrow="true" guiid="location" guiname="Superhero U">
            <conditions>
                <flag name="Quest.The End is Nigh!" value=""/>
                <flag name="ID.act5_intro" value="1"/>
            </conditions>
		</action>
        <action dialogue="act5_q1_1">
			<action win="act5_q1_2" battle="true" name="Goon" image="Characters07" index="2" physical="11" constitution="12" bg="SuperheroU" music="3">
				<power id="Mighty Punch" level="11"/>
				<power id="Machinegun" level="11"/>
				<flags>
					<flag name="Game.WinDialogue" value="act5_q1_2"/>
				</flags>
			</action>
            <conditions>
                <flag name="ArriveAt" value="Superhero U"/>
                <flag name="Quest.The End is Nigh!" value=""/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
        <action dialogue="nothing" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Superhero U"/>
                <flag name="Quest.The End is Nigh!" value="4" type="lower"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
        <action id="act5_q1_3" dialogue="act5_q1_3">
            <conditions>
                <flag name="Resource.Clues" value="250" type="higher"/>
                <flag name="Quest.The End is Nigh!" value="1"/>
            </conditions>
		</action>
		<action arrow="true" guiid="location" guiname="UFO">
            <conditions>
                <flag name="Quest.The End is Nigh!" value="2" or="true"/>
                <flag name="Quest.The End is Nigh!" value="3"/>
            </conditions>
		</action>
        <action dialogue="act5_q1_4">
			<action win="act5_q1_5" battle="true" name="Minion" image="Characters07" index="5" physical="12" constitution="13" bg="Arena" music="3">
				<power id="Concussive Punch" level="12"/>
				<power id="Haymaker" level="12"/>
				<flags>
					<flag name="Game.WinDialogue" value="act5_q1_5"/>
				</flags>
			</action>
            <conditions>
                <flag name="ArriveAt" value="UFO"/>
                <flag name="Quest.The End is Nigh!" value="2"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
        <action dialogue="act5_q1_6">
			<action win="act5_q1_w1" battle="true" name="Time Master" image="Characters04" index="1" mental="15" constitution="15" bg="Arena" music="3">
				<power id="Mind Control" level="15"/>
				<power id="Geller Strike" level="15"/>
				<flags>
					<flag name="Game.WinDialogue" value="act5_q1_7"/>
				</flags>
			</action>
            <conditions>
                <flag name="ArriveAt" value="UFO"/>
                <flag name="Quest.The End is Nigh!" value="3"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

        <action id="act5_q1_8" dialogue="act5_q1_8">
			<action popup="true" title="Join the Dark Side?" text="Will you join the evil Time Master and abandon the Blizzard Wizard?">
				<choice id="Join him!">
                    <action popup="true" title="Really?!" text="Seriously? Are you giving up as a superhero?!">
                        <choice id="Yes!">
                            <action id="game_end_evil" dialogue="game_end_evil">
                                <action dialogue="game_end_evil_2"/>
                            </action>
                        </choice>
                        <choice id="Wait...">
                            <action id="act5_q1_9" dialogue="act5_q1_9"/>
                        </choice>
                    </action>
				</choice>
				<choice id="No way!">
                    <action id="act5_q1_9" dialogue="act5_q1_9"/>
				</choice>
			</action>
            <conditions>
                <flag name="Quest.The End is Nigh!" value="4"/>
            </conditions>
		</action>

        <action>
            <conditions>
                <flag name="ID.act5_q1_9" value="1"/>
                <flag name="Game.BlizzardWizard" value="5" type="higher"/>
                <flag name="Quest.Time for Heroes" value=""/>
                <flag name="Quest.Deadly Cold" value=""/>
            </conditions>
            <flags>
                <flag name="Resource.Clues" value="0"/>
                <flag name="Quest.Deadly Cold" value="1"/>
                <flag name="RefreshQuest" value="1"/>
            </flags>
        </action>
        <action dialogue="bw_waiting" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Superhero U"/>
                <flag name="Quest.Deadly Cold" value="1"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
        <action id="act5_q2_1" dialogue="act5_q2_1">
            <conditions>
                <flag name="Resource.Clues" value="250" type="higher"/>
                <flag name="Quest.Deadly Cold" value="1"/>
            </conditions>
		</action>
		<action arrow="true" guiid="location" guiname="Superhero U">
            <conditions>
                <flag name="Quest.Deadly Cold" value="2"/>
            </conditions>
		</action>
        <action dialogue="act5_q2_2">
			<action win="act5_q2_b1" battle="true" name="Blizzard Wizard" image="Characters01" index="3" elemental="15" constitution="15" bg="SuperheroU" music="3">
				<power id="Ice Beam" level="15"/>
				<power id="Elemental Fury" level="15"/>
			</action>
            <conditions>
                <flag name="ArriveAt" value="Superhero U"/>
                <flag name="Quest.Deadly Cold" value="2"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
        <action id="act5_q2_3" dialogue="act5_q2_3">
            <conditions>
                <flag name="ID.act5_q2_b1" value="1"/>
                <flag name="Quest.Deadly Cold" value="2"/>
            </conditions>
		</action>

        <action dialogue="bw_chastised" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Superhero U"/>
                <flag name="Quest.Deadly Cold" value="3"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
        <action>
            <conditions>
                <flag name="Quest.Deadly Cold" value="3"/>
                <flag name="Quest.Time for Heroes" value=""/>
            </conditions>
            <flags>
                <flag name="Resource.Clues" value="0"/>
                <flag name="Quest.Time for Heroes" value="1"/>
                <flag name="RefreshQuest" value="1"/>
            </flags>
        </action>
        <action>
            <conditions>
                <flag name="ID.act5_q1_9" value="1"/>
                <flag name="Game.BlizzardWizard" value="5" type="lower"/>
                <flag name="Quest.Time for Heroes" value=""/>
                <flag name="Quest.Deadly Cold" value=""/>
            </conditions>
            <flags>
                <flag name="Resource.Clues" value="0"/>
                <flag name="Quest.Time for Heroes" value="1"/>
                <flag name="RefreshQuest" value="1"/>
            </flags>
        </action>
        <action id="act5_q3_1" dialogue="act5_q3_1">
            <conditions>
                <flag name="Resource.Clues" value="250" type="higher"/>
                <flag name="Quest.Time for Heroes" value="1"/>
            </conditions>
		</action>
		<action arrow="true" guiid="location" guiname="Tumble Down Shack">
            <conditions>
                <flag name="Quest.Time for Heroes" value="2"/>
            </conditions>
		</action>
        <action dialogue="act5_q3_2">
			<action battle="true" name="Time Master" image="Characters04" index="1" mental="200" constitution="196" bg="Cellar" music="3">
				<power id="Temporal Flux" level="200"/>
                <action id="act5_q3_3" dialogue="act5_q3_3"/>
			</action>
            <conditions>
                <flag name="ArriveAt" value="Tumble Down Shack"/>
                <flag name="Quest.Time for Heroes" value="2"/>
            </conditions>
            <flags>
                <flag name="Resource.Clues" value="0"/>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
        <action id="act5_q3_4" dialogue="act5_q3_4">
            <conditions>
                <flag name="Resource.Clues" value="250" type="higher"/>
                <flag name="Quest.Time for Heroes" value="3"/>
            </conditions>
		</action>
		<action arrow="true" guiid="location" guiname="Tumble Down Shack">
            <conditions>
                <flag name="Quest.Time for Heroes" value="4"/>
            </conditions>
		</action>
        <action dialogue="act5_q3_5">
			<action win="act5_q3_win" battle="true" name="Time Master" image="Characters04" index="1" mental="20" constitution="20" bg="Cellar" music="3">
				<power id="Vortex Strike" level="15"/>
				<power id="Vortex Control" level="15"/>
				<flags>
					<flag name="Game.WinDialogue" value="act5_q3_win"/>
					<flag name="Game.LoseDialogue" value="act5_q3_lose"/>
				</flags>
			</action>
            <conditions>
                <flag name="ArriveAt" value="Tumble Down Shack"/>
                <flag name="Quest.Time for Heroes" value="4"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

        <action id="game_end_sidekick" dialogue="game_end_sidekick">
            <action dialogue="game_end_sidekick_2"/>
            <conditions>
                <flag name="Quest.Deadly Cold" value=""/>
                <flag name="Quest.Time for Heroes" value="5"/>
            </conditions>
        </action>
        <action id="game_end_good" dialogue="game_end_good">
            <action dialogue="game_end_good_2"/>
            <conditions>
                <flag name="Quest.Deadly Cold" value="3"/>
                <flag name="Quest.Time for Heroes" value="5"/>
            </conditions>
        </action>

        <action>
            <conditions>
                <flag name="ID.game_end_evil" value="1"/>
            </conditions>
			<flags>
                <flag name="Game.Evil" value="1"/>
				<flag name="Flag.Act" value="6"/>
				<flag name="Goto" value="Map"/>
				<flag name="Flag.StopActions" value="1"/>
			</flags>
		</action>
        <action>
            <conditions>
                <flag name="ID.game_end_sidekick" value="1"/>
            </conditions>
			<flags>
                <flag name="Game.Sidekick" value="1"/>
				<flag name="Flag.Act" value="6"/>
				<flag name="Goto" value="Map"/>
				<flag name="Flag.StopActions" value="1"/>
			</flags>
		</action>
        <action>
            <conditions>
                <flag name="ID.game_end_good" value="1"/>
            </conditions>
			<flags>
                <flag name="Game.Good" value="1"/>
				<flag name="Flag.Act" value="6"/>
				<flag name="Goto" value="Map"/>
				<flag name="Flag.StopActions" value="1"/>
			</flags>
		</action>
    </location>
</actions>