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

<!-- Act IV -->
        <action id="act4_intro" dialogue="act4_intro"/>
        <action id="act4_q1_1" dialogue="act4_q1_1">
            <conditions>
                <flag name="Quest.Telekinetic Trouble" value="1"/>
                <flag name="Resource.Clues" value="100" type="higher"/>
            </conditions>
		</action>
        <action id="act4_q1_2" dialogue="act4_q1_2">
            <conditions>
                <flag name="Quest.Telekinetic Trouble" value="1"/>
                <flag name="Resource.Clues" value="250" type="higher"/>
            </conditions>
		</action>
		<action arrow="true" guiid="location" guiname="Ravenclaw Prison">
            <conditions>
                <flag name="Quest.Telekinetic Trouble" value="2"/>
            </conditions>
		</action>
        <action dialogue="act4_q1_3" remove="false">
			<action win="act4_q1_4" battle="true" name="Telekinetic Girl" image="Characters02" index="2" mental="10" constitution="9" bg="Cellar" music="3">
				<power id="Mind Control" level="8"/>
				<power id="Telekinetic Strike" level="9"/>
				<flags>
					<flag name="Game.WinDialogue" value="act4_q1_4"/>
				</flags>
			</action>
            <conditions>
                <flag name="Quest.Telekinetic Trouble" value="2"/>
                <flag name="ArriveAt" value="Ravenclaw Prison"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
        <action id="act4_q1_5" dialogue="act4_q1_5">
            <conditions>
                <flag name="Quest.Telekinetic Trouble" value="3"/>
                <flag name="Resource.Clues" value="100" type="higher"/>
            </conditions>
		</action>

		<action>
			<conditions>
                <flag name="Quest.Telekinetic Trouble" value="4"/>
                <flag name="Location.Department of Agriculture" value=""/>
			</conditions>
			<flags>
                <flag name="Game.NewLocation" value="Department of Agriculture"/>
                <flag name="Location.Department of Agriculture" value="1"/>
                <flag name="MoveTo" value="Department of Agriculture"/>
			</flags>
		</action>

		<action arrow="true" guiid="location" guiname="Department of Agriculture">
            <conditions>
                <flag name="Quest.Telekinetic Trouble" value="4"/>
            </conditions>
		</action>
        <action dialogue="act4_q1_6" remove="false">
			<action win="act4_q1_7" battle="true" name="Agent Stalker" image="Characters04" index="2" physical="10" constitution="12" bg="Federal" music="3">
				<power id="Mighty Punch" level="10"/>
				<power id="Rushing Beat" level="10"/>
				<flags>
					<flag name="Game.WinDialogue" value="act4_q1_7"/>
				</flags>
			</action>
            <conditions>
                <flag name="Quest.Telekinetic Trouble" value="4"/>
                <flag name="ArriveAt" value="Department of Agriculture"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

        <action id="act4_q2_1" dialogue="act4_q2_1">
			<action random="true">
				<action popup="true" title="What to do?" text="Do you want to catch Agent Stalker or save the citizens?">
					<choice id="Get Stalker!">
						<action>
							<flags>
								<flag name="Quest.Stalker Situation" value="1"/>
								<flag name="RefreshQuest" value="1"/>
							</flags>
						</action>
					</choice>
					<choice id="Save people!">
						<action>
							<flags>
								<flag name="Quest.Robot Rampage" value="1"/>
                                <flag name="Game.BlizzardWizard" add="1"/>
								<flag name="RefreshQuest" value="1"/>
							</flags>
						</action>
					</choice>
					<conditions>
						<flag name="Level.Attribute.Ethics" value="3" type="higher"/>
					</conditions>
				</action>
				<action>
					<conditions>
						<flag name="Level.Attribute.Ethics" value="3" type="lower"/>
					</conditions>
					<flags>
						<flag name="Quest.Stalker Situation" value="1"/>
						<flag name="RefreshQuest" value="1"/>
					</flags>
				</action>
			</action>
            <conditions>
                <flag name="Quest.Telekinetic Trouble" value="5"/>
            </conditions>
		</action>

		<action>
			<conditions>
                <flag name="Quest.Robot Rampage" value="1"/>
                <flag name="Location.Magik Mega Mall" value=""/>
			</conditions>
			<flags>
                <flag name="Game.NewLocation" value="Magik Mega Mall"/>
                <flag name="Location.Magik Mega Mall" value="1"/>
                <flag name="MoveTo" value="Magik Mega Mall"/>
			</flags>
		</action>

		<action arrow="true" guiid="location" guiname="Magik Mega Mall">
            <conditions>
                <flag name="Quest.Robot Rampage" value="1"/>
            </conditions>
		</action>
        <action dialogue="act4_q2_2" remove="false">
			<action win="act4_q2_3" battle="true" name="Protector Mk II" image="Characters08" index="2" elemental="10" constitution="12" bg="Arena" music="3">
				<power id="Ice Beam" level="10"/>
				<power id="Force Field" level="10"/>
				<flags>
					<flag name="Game.WinDialogue" value="act4_q2_3"/>
				</flags>
			</action>
            <conditions>
                <flag name="Quest.Robot Rampage" value="1"/>
                <flag name="ArriveAt" value="Magik Mega Mall"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>

		<action>
            <conditions>
				<flag name="Quest.Robot Rampage" value="2"/>
				<flag name="Quest.Stalker Situation" value=""/>
            </conditions>
            <flags>
				<flag name="Quest.Stalker Situation" value="1"/>
				<flag name="RefreshQuest" value="1"/>
            </flags>
		</action>
        <action id="act4_q3_1" dialogue="act4_q3_1">
            <conditions>
                <flag name="Quest.Stalker Situation" value="1"/>
                <flag name="Resource.Clues" value="100" type="higher"/>
            </conditions>
		</action>
		<action arrow="true" guiid="location" guiname="Westchester Annex">
            <conditions>
                <flag name="Quest.Stalker Situation" value="2"/>
            </conditions>
		</action>

        <action id="act4_q3_8" dialogue="act4_q3_8">
            <conditions>
                <flag name="Quest.Stalker Situation" value="3"/>
            </conditions>
		</action>
        <action id="act4_end" dialogue="act4_end">
            <conditions>
                <flag name="ID.act4_q3_8" value="1"/>
            </conditions>
			<flags>
				<flag name="Flag.Act" value="5"/>
				<flag name="Goto" value="Map"/>
				<flag name="Flag.StopActions" value="1"/>
			</flags>
		</action>
		
        <action dialogue="bw_extra_5">
            <conditions>
                <flag name="ArriveAt" value="Superhero U"/>
                <flag name="Quest.Telekinetic Trouble" value="5" type="lower"/>
                <flag name="Level.Attribute.Ethics" value="3" type="higher"/>
            </conditions>
            <flags>
                <flag name="Game.BlizzardWizard" add="1"/>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
        <action dialogue="bw_annoyed" remove="false">
            <conditions>
                <flag name="ArriveAt" value="Superhero U"/>
                <flag name="Quest.Telekinetic Trouble" value="5" type="lower"/>
            </conditions>
            <flags>
				<flag name="Refresh" value="1"/>
                <flag name="ArriveAt" value=""/>
            </flags>
		</action>
	</location>
</actions>