<princess_bride_fire_swamp_level background="level18" name="18 - Trapped!">
	<rooms>
			
		<!-- Level 18 - 1 -->
		<room pos="1" time="75">
			<ground y="1" appearance="grass" >
				<spans>
					
					<span type="ground" begin="0" end="15" height="7" />
					<span type="fire" begin="15" end="80" height="3" />
					<span type="ground" begin="80" end="95" height="7" />
					
					<span type="ground" begin="22" end="26" height="3" />
					<span type="ground" begin="70" end="74" height="3" />
					
				</spans>	
				<gizmos>
					<!-- blocking fire -->
					<gizmo type="firespout" offset="24" behavior="constant" toggleevent="103_switchA" />
					<gizmo type="firespout" offset="40" behavior="pulse" ontime="2" offtime="2" starttime="0" />
					<!--<gizmo type="firespout" offset="50" behavior="constant" toggleevent="103_switchB" />-->
					<gizmo type="firespout" offset="58" behavior="pulse" ontime="1" offtime="2" starttime="0" />
					<gizmo type="firespout" offset="69" behavior="pulse" ontime="2" offtime="2" starttime="1" />
					<gizmo type="firespout" offset="72" behavior="constant" toggleevent="103_switchB" />
					<gizmo type="firespout" offset="78" behavior="pulse" ontime="2" offtime="2" starttime="0" />
					<!-- switch and gate -->
					<gizmo type="gate" offset="93" closed="true" toggleevent="103_switchC" color="0x1099EA"/>
					<gizmo type="switch" offset="89" toggle="true" event="103_switchC" color="0x1099EA" />
					<gizmo type="goal" offset="98" />
				</gizmos>
				<items>
					
					<item type="gem" offset="18" height="30" value="1"/>
					<item type="gem" offset="21" height="27" value="2"/>
					<item type="gem" offset="25" height="23" value="1"/>
					<item type="gem" offset="29" height="27" value="2"/>
					<item type="gem" offset="32" height="30" value="1" />
					
					
					<item type="multiplier" offset="61"  height="40" value="1"/>
					<item type="gem" offset="61" height="30" value="2" />
					<item type="gem" offset="61" height="32" value="1" />
					<item type="gem" offset="61" height="26" value="3" />
					
					<item type="multiplier" offset="71"  height="40" value="1"/>
					<item type="gem" offset="71" height="35" value="3" />
					<item type="gem" offset="71" height="33" value="2" />
					<item type="gem" offset="71" height="28" value="3" />
					
					<item type="gem" offset="81" height="30" value="1" />
					<item type="multiplier" offset="81"  height="35" value="1"/>
					<item type="gem" offset="81" height="40" value="3" />
					<item type="gem" offset="81" height="25" value="3" />
					<item type="gem" offset="81" height="23" value="2" />
					
				</items>
			</ground>
			
			<platforms>
			<!-- bridge -->
				<platform appearance="grass" x="15" y="8" width="65" />
				<!-- floating w/ vine -->
				<platform appearance="grass" x="4" y="35" width="7" >
					<gizmos>
						<gizmo type="vine" offset="3" length="15" />
					</gizmos>
				</platform>
				<!-- platform with swingvine -->
				<platform appearance="grass" x="25" y="48" width="4" >
					<gizmos>
						<gizmo type="swingvine" offset="2" length="7" dir="left"/>
					</gizmos>
				</platform>
				<!-- platform with switch A -->
				<platform appearance="grass" x="42" y="35" width="12" >
					<gizmos>
						<gizmo type="switch" offset="4" toggle="true" event="103_switchA" color="0x990000"/>
						<gizmo type="vine" offset="7" length="17" coiled="false" />
					</gizmos>
				</platform>
				<!-- alternative gaol platform -->
				<platform appearance="grass" x="90" y="25" width="12" >
					<spans>
						
						<span type="ground" begin="9" end="12" height="18" />
					</spans>
					<gizmos>
						<gizmo type="switch" offset="5" toggle="true" event="103_switchB" color="0xFFCC00" />
						<!--<gizmo type="gate" offset="9" closed="true" toggleevent="103_switchC" color="0x1099EA" />-->
					</gizmos>
				</platform>
				<!-- vine block -->
				<platform appearance="grass" x="60" y="60" width="25" bottomCollision="true" >
					
					<gizmos>
						<gizmo type="vine" offset="1" length="38" />
						<gizmo type="vine" offset="11" length="38" />
						<gizmo type="vine" offset="21" length="38" />
						<!-- prevent from climbing though -->
						<gizmo type="bridge" offset="0" dir="right" closed="false" />
						<gizmo type="bridge" offset="25" dir="left" closed="false" />
					</gizmos>
				</platform>
				
			</platforms>
			
			
			<mobs>
				<mob type="boulder" offset="12" platform="ground" />
			</mobs>
		</room>
		<!-- level 18 - 2 -->
		
		<room pos="2" time="120">
			<ground y="1"  appearance="grass" >
				<spans>
					<span type="ground" begin="95" end="102" height="39" />
				</spans>
				<gizmos>
					<gizmo type="goal" offset="100" />
					<gizmo type="switch" offset="40" toggle="true" event="105_bridgedown01" color="0x990000" />
					<gizmo type="switch" offset="65" toggle="true" event="105_bridgedown02" color="0xFFCC00" />
					<gizmo type="firespout" offset="85" behavior="constant" toggleevent="105_flameoff02"/>
				</gizmos>
				<items>
					<item type="multiplier" offset="80"  height="4" value="1"/>
					<item type="multiplier" offset="67"  height="27" value="2"/>
					
					<!--<item type="crumbs" offset="13" height="3" />-->
					<item type="crumbs" offset="25" height="0" noreset="true"/>
					<item type="crumbs" offset="29" height="0" noreset="true"/>
					
					<!--<item type="crumbs" offset="50" height="3" noreset="true"/>
					<item type="crumbs" offset="54" height="3" noreset="true"/>-->
					
					<item type="crumbs" offset="70" height="0" noreset="true"/>
					<item type="crumbs" offset="74" height="0" noreset="true"/>
					
					<item type="gem" offset="90" height="1" />
					<item type="gem" offset="90" height="4" value="2"/>
					<item type="gem" offset="90" height="7" value="3"/>
					<item type="gem" offset="90" height="10" value="3" />
					<item type="gem" offset="93" height="1" />
					<item type="gem" offset="93" height="4" value="2"/>
					<item type="gem" offset="93" height="7" value="3"/>
					<item type="gem" offset="93" height="10" value="3" />
					<!--<item type="water" offset="96" height="40" />-->
				</items>
			</ground>
			
			<platforms>
				<!-- blocking pillar -->
			<!--	<platform appearance="grass" x="8" y="20" width="5" bottomCollision="true">
					<spans>
						<span type="ground" begin="0" end="5" height="50" />
					</spans>
				</platform>-->
				
				<platform appearance="grass" x="12" y="9" width="3"/>
				<platform appearance="grass" x="15" y="16" width="3"/>
				
				<!-- tunnel path -->
				<platform appearance="grass" x="20" y="20" width="50" id="105_platform01" >
					
					<gizmos>
						<gizmo type="gate" offset="10" closed="true" toggleevent = "105_bridgedown01" color="0x990000" />
						<gizmo type="gate" offset="25" closed="true" toggleevent = "105_bridgedown02" color="0xFFCC00" />
						<gizmo type="gate" offset="40" closed="true" toggleevent = "105_bridgedown01" color="0x990000" />
						<gizmo type="switch" offset="47" toggle="true" event="105_flameoff02" color="0x92F907" />
						<gizmo type="vine" offset="15" length="14" coiled="true"/>
						<!-- debug/shortcut vine -->
						<!--<gizmo type="vine" offset="45" length="7" />-->
					</gizmos>
				</platform>
				<!-- tunnel roof / 2nd level path-->
				<platform appearance="grass" x="15" y="36" width="47" bottomCollision="true" id="105_platform02">
					<spans>
						<span type="ground" begin="10" end="13" height="7" />
						<span type="ground" begin="0" end="47" height="4" />
					</spans>
					<gizmos>
						<gizmo type="switch" offset="5" toggle="false" event="105_flameoff01" color="0x1099EA" />
						<gizmo type="gate" offset="20" closed="true" toggleevent = "105_bridgedown02" color="0xFFCC00" />
						<gizmo type="gate" offset="30" closed="true" toggleevent = "105_bridgedown01" color="0x990000" />
						<gizmo type="gate" offset="40" closed="true" toggleevent = "105_bridgedown02" color="0xFFCC00" />
					</gizmos>
				</platform>
				<!-- 2nd tunnel roof-->
				<platform appearance="grass" x="25" y="56" width="37" bottomCollision="true">
					<spans>
						<span type="ground" begin="0" end="37" height="4" />
					</spans>
					
				</platform>
				<!-- 2nd level vine platform -->
				<platform appearance="grass" x="55" y="40" width="15" bottomCollision="false">
					<gizmos>
						<gizmo type="vine" offset="13" length="10" />
					</gizmos>
				</platform>
				<!-- goal platform -->
				<platform appearance="grass" x="75" y="35" width="15" bottomCollision="false">
					<gizmos>
						<gizmo type="vine" offset="2" length="30" coiled="true" />
						<gizmo type="firespout" offset="5" behavior="constant" toggleevent="105_flameoff01" />
						<gizmo type="firespout" offset="8" behavior="constant" toggleevent="105_flameoff01" />
					</gizmos>
				</platform>
			</platforms>
			
			<mobs>
				
				<mob type="rous" platform="105_platform01" difficulty="3" />
				<mob type="rous" platform="105_platform02" difficulty="3" offset="20" />
			</mobs>
			
		</room>
		<!--  Level 18 - 3  -->
		<room pos="3" time="60">
			
			<ground y="1" appearance="grass">
				<spans>
					<span type="water" begin="20" end="30" />
					<span type="fire" begin="40" end="60" />
					<span type="water" begin="70" end="80" />
				</spans>
				<gizmos>
					<gizmo type="firespout" offset="48" behavior="pulse" ontime="2" offtime="2" starttime="1" />
					<gizmo type="firespout" offset="52" behavior="pulse" ontime="2" offtime="2" starttime="0" /> 
					<gizmo type="switch" offset="85" toggle="true" event="118_switchZ" color="0x1099EA" />
					<!--<gizmo type="switch" offset="85" toggle="true" event="102_switchD" color="0x92F907" />-->
					
					<gizmo type="goal" offset="100" />
				</gizmos>
				
				<items>
					
					<item type="multiplier" offset="8"  height="25" value="3"/>
					
					<item type="gem" offset="20" height="37" />
					<item type="gem" offset="25" height="37" />
					<item type="gem" offset="30" height="37" />
					<item type="gem" offset="35" height="37" />
					<item type="gem" offset="40" height="37" />
					
					<item type="gem" offset="10" height="20" value="2"/>
					<item type="gem" offset="13" height="20" value="3" />
					
					<item type="gem" offset="19" height="20" value="2"/>
					<item type="gem" offset="22" height="20" value="3"/>
					
					<item type="gem" offset="37" height="20" value="2"/>
					<item type="gem" offset="40" height="20" value="3"/>
					
					
					<item type="gem" offset="46" height="20" value="2"/>
					<item type="gem" offset="49" height="20" value="3"/>
					<item type="gem" offset="52" height="20" value="2"/>
				</items>
				
			</ground> 
			
			<platforms>
				<!-- staring platform -->
				<!--<platform appearance="grass" x="0" y="39" width="10"/>-->
				<!-- 2nd platform  -->
				<platform appearance="grass" x="0" y="39" width="25" >
					<gizmos>
						<gizmo type="bridge" offset="25" closed="false" toggleevent="102_switchB" color="0xFFCC00" />
					</gizmos>
				</platform>
				<!-- 3rd platform with trap for wez -->
				<platform appearance="grass" x="40" y="36" width="40" >
					<spans>
						<span type="ground" begin="3" end="8" height="3" />
						<span type="ground" begin="20" end="26" height="3" />
						<span type="ground" begin="34" end="40" height="3" />
					</spans>
					<gizmos>
						<gizmo type="firespout" offset="36" behavior="constant" toggleevent="118_switchZ"/>			
						
						<gizmo type="gate" offset="5" closed="true" toggleevent="102_switchA" color="0x990000" />
						<gizmo type="switch" offset="28" toggle="false" event="102_switchB" color="0xFFCC00" />
					</gizmos>
				</platform>
				<!-- platform with switch A -->
				<platform appearance="grass" x="16" y="47" width="6" >
					<gizmos>
						<gizmo type="switch" offset="3" toggle="false" event="102_switchA" color="0x990000" />
					</gizmos>
				</platform>
				<!-- hanging platform 1 -->
				<platform appearance="grass" x="47" y="60" width="2" id="102_hidden01">
					<gizmos>
						<gizmo type="bridge" offset="2" dir="right" closed="false" toggleevent="102_switchB" color="0xFFCC00"/>
					</gizmos>
				</platform>
				<!-- hanging platform 2 -->
				<platform appearance="grass" x="47" y="73" width="2" id="102_hidden02">
					<gizmos>
						<gizmo type="bridge" offset="2" dir="right" closed="false" toggleevent="102_switchB" color="0xFFCC00"/>
					</gizmos>
				</platform>
				<!-- hanging platform 3 -->
				<!-- hanging platform 2 -->
				<platform appearance="grass" x="47" y="86" width="2" id="102_hidden03">
					<gizmos>
						<gizmo type="bridge" offset="2" dir="right" closed="false" toggleevent="102_switchB" color="0xFFCC00"/>
					</gizmos>
				</platform>
		<!--		<platform appearance="grass" x="88" y="73" width="2" id="102_hidden03">
					<gizmos>
						<gizmo type="bridge" offset="0" dir="left" closed="false" toggleevent="102_switchB" color="0xFFCC00"/>
					</gizmos>
				</platform>-->
				<!-- hanging platform 4 -->
				<platform appearance="grass" x="88" y="81" width="2" id="102_hidden04">
					<gizmos>
						<gizmo type="bridge" offset="0" dir="left" closed="false" toggleevent="102_switchB" color="0xFFCC00"/>
					</gizmos>
				</platform>
				<!-- midlevel platform -->
				<platform appearance="grass" x="5" y="22" width="55" >
					<spans>
						<span type="ground" begin="50" end="55" height="13" />
					</spans>
					<gizmos>
						<gizmo type="vine" offset="2" length="12" />
						<gizmo type="swingvine" offset="45" dir="left" />
					</gizmos>
				</platform>
				<!-- midlevel platform - w/ swingvine and bridge -->
				<!--<platform appearance="grass" x="40" y="22" width="20" >
					<gizmos>
						<gizmo type="swingvine" offset="10" dir="left" />
						<gizmo type="bridge" offset="0" dir="left" closed="true" toggleevent="102_switchD" color="0x93F907"/>
					</gizmos>
				</platform>-->
			</platforms>
			
			<mobs>
				<mob type="boulder" platform="102_hidden01" offset="10" />
				<mob type="boulder" platform="102_hidden01" offset="15" />
				<mob type="boulder" platform="102_hidden02" offset="15.1" />
				<mob type="boulder" platform="102_hidden03" offset="15.5" />
				<!--<mob type="boulder" platform="102_hidden03" offset="-15" />
				<mob type="boulder" platform="102_hidden04" offset="-15.1" />-->
			</mobs>
		</room>
		
		<!-- level 18 - 4  -->
		<room pos="4" time="75">
			<ground appearance="grass" y="1">
				<gizmos>
							
					
					
					<gizmo type="switch" offset="10" toggle="true" event="111_switchA" color="0x990000" />
					<gizmo type="firespout" offset="18" behavior="constant" toggleevent="111_switchA"/>
					
					<gizmo type="gate" offset="40" closed="true" toggleevent="111_switchB" color="0xFFCC00" />
					<gizmo type="firespout" offset="50" behavior="constant" toggleevent="111_switchC"/>					
					<gizmo type="gate" offset="60" closed="true" toggleevent="111_switchD" color="0x92F907" />
					<gizmo type="firespout" offset="70" behavior="constant" toggleevent="111_switchF"/>
					<!--<gizmo type="gate" offset="82" closed="true" toggleevent="111_switchE" color="0x946FC8" />-->
					<gizmo type="goal" offset="98" />
				</gizmos>
				<items>
					
					<item type="multiplier" offset="45"  height="7" value="2"/>
					<item type="multiplier" offset="55"  height="7" value="2"/>
					
					
					<item type="gem" offset="12" height="32"/>
					<item type="gem" offset="12" height="35"/>
					<item type="gem" offset="12" height="38" value="2"/>
					<item type="gem" offset="12" height="41" value="3"/>
					<item type="gem" offset="15" height="32"/>
					<item type="gem" offset="15" height="35"/>
					<item type="gem" offset="15" height="38" value="2"/>
					<item type="gem" offset="15" height="41" value="3"/>
					
					<item type="gem" offset="98" height="32"/>
					<item type="gem" offset="98" height="35"/>
					<item type="gem" offset="98" height="38" value="2"/>
					<item type="gem" offset="98" height="41" value="3"/>
					<item type="gem" offset="95" height="32"/>
					<item type="gem" offset="95" height="35"/>
					<item type="gem" offset="95" height="38" value="2"/>
					<item type="gem" offset="95" height="41" value="3"/>
				</items>
			</ground>
			
			<platforms>
				<!--<platform appearance="grass" x="-3" width="3" y="15" bottomCollision="false">
					
				</platform>
				-->
				<!--  top platform -->
				<platform appearance="grass" x="10" width="90" y="32" bottomCollision="true">
					<gizmos>
						<gizmo type="vine" offset="40" length="5" />
						<gizmo type="switch" offset="15" toggle="true" event="111_switchC" color="0x990000" />
						<gizmo type="switch" offset="75" toggle="true" event="111_switchF" color="0x990000"/>
						<gizmo type="spikes" offset="26" />
						<gizmo type="firespout" offset="30" behavior="pulse" ontime="1" offtime="2" starttime="0" />
						<gizmo type="spikes" offset="34" />
						
						<gizmo type="spikes" offset="56" />
						<gizmo type="firespout" offset="60" behavior="pulse" ontime="1" offtime="2" starttime="1" />
						<gizmo type="spikes" offset="64" />
						
						<gizmo type="portal" offset="86" id="portal_01" powerless="false" toggleevent="turnOnPortal"/>

					</gizmos>
				</platform>
				<!-- swingvine holder -->
				<platform appearance="grass" x="15" width="80" y="56" bottomCollision="true">
					<gizmos>
						<gizmo type="swingvine" offset="15" dir="right" />
						<gizmo type="swingvine" offset="65" dir="left" />
					</gizmos>
				</platform>
				<!-- tunnel roof -->
				<platform appearance="grass" x="25" width="3" y="10" bottomCollision="false"/>
				<platform appearance="grass" x="28" width="3" y="15" bottomCollision="false"/>
				<platform appearance="grass" x="35" width="50" y="18" bottomCollision="false">
					
					<gizmos>
						<gizmo type="switch" offset="10" toggle="true" event="111_switchB" color="0xFFCC00" />						
						<gizmo type="switch" offset="40" toggle="true" event="111_switchD" color="0x93F907" /> 
						
						
						
					</gizmos>
				</platform>
				<platform appearance="grass" x="90" width="12" y="10" bottomCollision="true">
					<spans>
						
						<span type="ground" begin="9" end="12" height="60" />
					</spans>
					<gizmos>
						
						<gizmo type="portal" offset="8" id="portal_01" powerless="false" toggleevent="turnOnPortal"/>
					</gizmos>
				</platform>
				<platform appearance="water" x="52" y="32"  width="10">
					<spans>
						<span type="water" begin="0" end="10" height="1" />					
					</spans>
					
				</platform>
			</platforms>
			
			<mobs>
				<!--<mob type="rous" offset="30" platform="ground" />
				<mob type="rous" offset="40" platform="ground" />
				<mob type="rous" offset="70" platform="ground" />
				-->
				<mob type="boulder" platform="ground" offset="30" />
			</mobs>
			
		</room>
		

	</rooms>
	
	
	<players>
	<!--	<player id="westley" room="1" platform="npcStart" offset="10" />
		<player id="buttercup" room="1" platform="npcStart" offset="5" />
	-->	<player id="westley" room="1" platform="ground" offset="6" />
		<player id="buttercup" room="1" platform="ground" offset="3" />
		
	</players>
</princess_bride_fire_swamp_level>