<scene name="Room24" numVictoryConditions="1">
	<inventory>
		<object name="Flammable" memberName="HUD_flammable" acquired="0" visible="1">
			<onUseObject name="Cord">
				<action target="Scene" name="RemoveFromInventory" param="Cord"/>
				<action target="Scene" name="RemoveFromInventory" param="Flammable"/>
				<action target="Scene" name="AddToInventory" param="WetCord"/>
			</onUseObject>
		</object>
		<object name="Cord" memberName="HUD_cord" acquired="0" visible="1">
			<onUseObject name="Flammable">
				<action target="Scene" name="RemoveFromInventory" param="Cord"/>
				<action target="Scene" name="RemoveFromInventory" param="Flammable"/>
				<action target="Scene" name="AddToInventory" param="WetCord"/>
			</onUseObject>
		</object>
		<object name="Gunpowder" memberName="HUD_gunpowder" numRequired="10" acquired="0" visible="1">
			<images>
				<image num="1" memberName="HUD_gunpowder"/>
				<image num="2" memberName="HUD_gunpowder"/>
				<image num="3" memberName="HUD_gunpowder"/>
				<image num="4" memberName="HUD_gunpowder"/>
				<image num="5" memberName="HUD_gunpowder"/>
				<image num="6" memberName="HUD_gunpowder"/>
				<image num="7" memberName="HUD_gunpowder"/>
				<image num="8" memberName="HUD_gunpowder"/>
				<image num="9" memberName="HUD_gunpowder"/>
				<image num="10" memberName="HUD_gunpowder"/>
			</images>
		</object>
		<!--<object name="BroomPole" memberName="HUD_broomPole" acquired="0" visible="1"/>-->
		<object name="CannonBall" memberName="HUD_cannonBall" acquired="0" visible="1"/>
		<object name="Firelock" memberName="HUD_firelock" acquired="0" visible="1"/>
		<object name="Rag" memberName="HUD_rag" acquired="0" visible="1"/>
		<object name="WetCord" memberName="HUD_cord" acquired="0" visible="0"/>		
	</inventory>
	
	<finalStates>
		<finalState objName="Flammable" state="acquired"/>
		<finalState objName="Soldier" state="done"/>
		<finalState objName="Round1" state="acquired"/>
		<finalState objName="Round2" state="acquired"/>
		<finalState objName="Round3" state="acquired"/>
		<finalState objName="Round4" state="acquired"/>
		<finalState objName="Round5" state="acquired"/>
		<finalState objName="Round6" state="acquired"/>
		<finalState objName="Round7" state="acquired"/>
		<finalState objName="CannonBall" state="acquired"/>
		<finalState objName="Firelock" state="acquired"/>
		<finalState objName="Rag" state="acquired"/>
		<finalState objName="Manual" state="clickable"/>
		<finalState objName="Cannon" state="readyToFire"/>
		<finalState objName="Fuse" state="done"/>
		<finalState objName="Door" state="blownOpen"/>
	</finalStates>
	
	<animations>
		<animation name="PlantAnim" type="loop" xpos="709" ypos="348">
			<frames>
				<frame memberName="plant1_anim" frameDelay="4"/>
				<frame memberName="plant2_anim" frameDelay="4"/>
				<frame memberName="plant3_anim" frameDelay="4"/>
				<frame memberName="plant4_anim" frameDelay="4"/>
				<frame memberName="plant5_anim" frameDelay="4"/>
				<frame memberName="plant6_anim" frameDelay="4"/>
				<frame memberName="plant7_anim" frameDelay="4"/>
				<frame memberName="plant8_anim" frameDelay="4"/>
				<frame memberName="plant9_anim" frameDelay="4"/>
				<frame memberName="plant10_anim" frameDelay="4"/>
				<frame memberName="plant11_anim" frameDelay="4"/>
				<frame memberName="plant12_anim" frameDelay="4"/>
				<frame memberName="plant13_anim" frameDelay="4"/>
				<frame memberName="plant14_anim" frameDelay="4"/>
				<frame memberName="plant15_anim" frameDelay="4"/>
				<frame memberName="plant16_anim" frameDelay="4"/>
				<frame memberName="plant17_anim" frameDelay="4"/>
				<frame memberName="plant18_anim" frameDelay="4"/>
				<frame memberName="plant19_anim" frameDelay="4"/>
				<frame memberName="plant20_anim" frameDelay="4"/>
				<frame memberName="plant21_anim" frameDelay="4"/>
				<frame memberName="plant22_anim" frameDelay="4"/>
				<frame memberName="plant23_anim" frameDelay="4"/>
				<frame memberName="plant24_anim" frameDelay="4"/>
				<frame memberName="plant25_anim" frameDelay="4"/>
				<frame memberName="plant26_anim" frameDelay="4"/>
				<frame memberName="plant27_anim" frameDelay="4"/>
				<frame memberName="plant28_anim" frameDelay="4"/>
				<frame memberName="plant29_anim" frameDelay="4"/>
				<frame memberName="plant30_anim" frameDelay="4"/>
				<frame memberName="plant31_anim" frameDelay="4"/>				
			</frames>
		</animation>
		
		<animation name="CannonAnim" type="once" xpos="507" ypos="303">
			<frames>
				<frame memberName="cannon1_anim" frameDelay="3"/>
				<frame memberName="cannon2_anim" frameDelay="3"/>
				<frame memberName="cannon3_anim" frameDelay="3"/>
				<frame memberName="cannon4_anim" frameDelay="3"/>
				<frame memberName="cannon5_anim" frameDelay="3"/>
				<frame memberName="cannon6_anim" frameDelay="3"/>
				<frame memberName="cannon7_anim" frameDelay="3"/>
				<frame memberName="cannon8_anim" frameDelay="3"/>
				<frame memberName="cannon9_anim" frameDelay="3"/>
				<frame memberName="cannon10_anim" frameDelay="3"/>
				<frame memberName="cannon11_anim" frameDelay="3"/>
				<frame memberName="cannon12_anim" frameDelay="3"/>
				<frame memberName="cannon13_anim" frameDelay="3"/>
				<frame memberName="cannon14_anim" frameDelay="3"/>
				<frame memberName="cannon15_anim" frameDelay="3"/>
				<frame memberName="cannon16_anim" frameDelay="3"/>
				<frame memberName="cannon17_anim" frameDelay="3"/>
				<frame memberName="cannon18_anim" frameDelay="3"/>
				<frame memberName="cannon19_anim" frameDelay="3"/>
				<frame memberName="cannon20_anim" frameDelay="3"/>
				<frame memberName="cannon21_anim" frameDelay="3"/>
				<frame memberName="cannon22_anim" frameDelay="3"/>
				<frame memberName="cannon23_anim" frameDelay="3"/>
				<frame memberName="cannon24_anim" frameDelay="3"/>
				<frame memberName="cannon25_anim" frameDelay="3"/>
				<frame memberName="cannon26_anim" frameDelay="3"/>
				<frame memberName="cannon27_anim" frameDelay="3"/>
				<frame memberName="cannon28_anim" frameDelay="3"/>
				<frame memberName="cannon29_anim" frameDelay="3"/>
				<frame memberName="cannon30_anim" frameDelay="3"/>
				<frame memberName="cannon31_anim" frameDelay="3"/>
				<frame memberName="cannon32_anim" frameDelay="3"/>
				<frame memberName="cannon33_anim" frameDelay="3"/>
				<frame memberName="cannon34_anim" frameDelay="3"/>
				<frame memberName="cannon35_anim" frameDelay="3"/>
				<frame memberName="cannon36_anim" frameDelay="3"/>
				<frame memberName="cannon37_anim" frameDelay="3"/>
				<frame memberName="cannon38_anim" frameDelay="3"/>
				<frame memberName="cannon39_anim" frameDelay="3"/>
				<frame memberName="cannon40_anim" frameDelay="3"/>
				<frame memberName="cannon41_anim" frameDelay="3"/>
			</frames>
		</animation>
		
		<animation name="FuseAnim" type="once" xpos="433" ypos="286">
			<frames>
				<frame memberName="fuse1_anim" frameDelay="3"/>
				<frame memberName="fuse2_anim" frameDelay="3"/>
				<frame memberName="fuse3_anim" frameDelay="3"/>
				<frame memberName="fuse4_anim" frameDelay="3"/>
				<frame memberName="fuse5_anim" frameDelay="3"/>
				<frame memberName="fuse6_anim" frameDelay="3"/>
				<frame memberName="fuse7_anim" frameDelay="3"/>
				<frame memberName="fuse8_anim" frameDelay="3"/>
				<frame memberName="fuse9_anim" frameDelay="3"/>
				<frame memberName="fuse10_anim" frameDelay="3"/>
				<frame memberName="fuse11_anim" frameDelay="3"/>
				<frame memberName="fuse12_anim" frameDelay="3"/>
				<frame memberName="fuse13_anim" frameDelay="3"/>
				<frame memberName="fuse14_anim" frameDelay="3"/>
				<frame memberName="fuse15_anim" frameDelay="3"/>
				<frame memberName="fuse16_anim" frameDelay="3"/>
				<frame memberName="fuse17_anim" frameDelay="3"/>
				<frame memberName="fuse18_anim" frameDelay="3"/>
				<frame memberName="fuse19_anim" frameDelay="3"/>
				<frame memberName="fuse20_anim" frameDelay="3"/>
				<frame memberName="fuse21_anim" frameDelay="3"/>
				<frame memberName="fuse22_anim" frameDelay="3"/>
				<frame memberName="fuse23_anim" frameDelay="3"/>
				<frame memberName="fuse24_anim" frameDelay="3"/>
				<frame memberName="fuse25_anim" frameDelay="3"/>
				<frame memberName="fuse26_anim" frameDelay="3"/>
				<frame memberName="fuse27_anim" frameDelay="3"/>
				<frame memberName="fuse28_anim" frameDelay="3"/>
				<frame memberName="fuse29_anim" frameDelay="3"/>
				<frame memberName="fuse30_anim" frameDelay="3"/>
				<frame memberName="fuse31_anim" frameDelay="3"/>
			</frames>
		</animation>
	</animations>
	
	<zoomWindows>
		<zoomWindow name="SoldierWindow" file="ZoomWindows\Room24_SoldierWindow.dir" x="150" y="360" visible="0"/>
		<zoomWindow name="ManualWindow" file="ZoomWindows\Room24_ManualWindow.dir" x="570" y="462" visible="0"/>
		<zoomWindow name="CannonWindow" file="ZoomWindows\Room24_CannonWindow.dir" x="440" y="325" visible="0"/>
	</zoomWindows>
	
	<locks>
		<lock name="CannonLock">
			<parts>
				<part name="Muzzle" state="locked"/>
				<part name="Fuse" state="locked"/>				
			</parts>
			<onUnlocked>
				<action target="Fuse" name="SendEvent" param="cannonComplete"/>
			</onUnlocked>
		</lock>
		
		<lock name="SoldierLock">
			<parts>
				<part name="Cord" state="locked"/>
				<part name="Round1" state="locked"/>
				<part name="Round2" state="locked"/>
				<part name="Round3" state="locked"/>
			</parts>
			<onUnlocked>				
				<action target="Soldier" name="SendEvent" param="all_parts_collected"/>
			</onUnlocked>
		</lock>		
	</locks>
	
	<objects>
		<object name="Flammable">
			<clickStrategy type="alpha" layer="Flammable"/>
			<states>
				<state name="clickable">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Flammable"/>
						<action target="Scene" name="PlaySound" param="indoor_small"/>
						<action target="Scene" name="PlaySound" param="traffic"/>
						<action target="Scene" name="StartAnimation" param="PlantAnim"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>										
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Flammable"/>
						<action target="Flammable" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_the_flask_metal"/>
					</onClick>
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Flammable"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Soldier">
			<clickStrategy type="rect" left="50" top="205" right="155" bottom="565"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="SoldierCord"/></onStateEnter>					
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick><action target="Scene" name="OpenWindow" param="SoldierWindow"/></onClick>					
					<onEvent name="noCord">
						<action target="Scene" name="ShowLayer" param="SoldierCord"/>
						<action target="Scene" name="PlaySound" param="Item_Pickup_Cloth_big"/>
						<action target="SoldierLock" name="UnlockPart" param="Cord"/>
					</onEvent>
					
					<onEvent name="all_parts_collected">
						<action target="Scene" name="CloseWindow" param="SoldierWindow" delay="60"/>
						<action target="Soldier" name="SetState" param="done"/>	
					</onEvent>
				</state>
				
				<state name="done">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="SoldierCord"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Round1">
			<clickStrategy type="alpha" layer="Round1"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Round1"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>										
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Gunpowder"/>
						<action target="Round1" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_the_round"/>
					</onClick>					
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Round1"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Round2">
			<clickStrategy type="alpha" layer="Round2"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Round2"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Gunpowder"/>
						<action target="Round2" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_the_round"/>
					</onClick>					
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Round2"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Round3">
			<clickStrategy type="alpha" layer="Round3"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Round3"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Gunpowder"/>
						<action target="Round3" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_the_round"/>
					</onClick>					
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Round3"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Round4">
			<clickStrategy type="alpha" layer="Round4"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Round4"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Gunpowder"/>
						<action target="Round4" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_the_round"/>
					</onClick>					
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Round4"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Round5">
			<clickStrategy type="alpha" layer="Round5"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Round5"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Gunpowder"/>
						<action target="Round5" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_the_round"/>
					</onClick>					
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Round5"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Round6">
			<clickStrategy type="alpha" layer="Round6"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Round6"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Gunpowder"/>
						<action target="Round6" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_the_round"/>
					</onClick>					
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Round6"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Round7">
			<clickStrategy type="alpha" layer="Round7"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Round7"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Gunpowder"/>
						<action target="Round7" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_the_round"/>
					</onClick>					
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Round7"/></onStateEnter>
				</state>
			</states>
		</object>
		<!--
		<object name="BroomPole">
			<clickStrategy type="alpha" layer="BroomPole"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="BroomPole"/></onStateEnter>
					<onClick>
						<action target="Scene" name="AddToInventory" param="BroomPole"/>
						<action target="BroomPole" name="SetState" param="acquired"/>
					</onClick>					
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="BroomPole"/></onStateEnter>
				</state>
			</states>
		</object>
		-->
		<object name="CannonBall">
			<clickStrategy type="alpha" layer="CannonBall"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="CannonBall"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="CannonBall"/>
						<action target="CannonBall" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_cannon_ball"/>
					</onClick>					
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="CannonBall"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Firelock">
			<clickStrategy type="alpha" layer="Firelock"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Firelock"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Firelock"/>
						<action target="Firelock" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="take_the_firelock"/>
					</onClick>					
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Firelock"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Rag">
			<clickStrategy type="alpha" layer="Rag"/>
			<states>
				<state name="clickable">
					<onStateEnter><action target="Scene" name="HideLayer" param="Rag"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Rag"/>
						<action target="Rag" name="SetState" param="acquired"/>
					</onClick>					
				</state>
				
				<state name="acquired">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Rag"/></onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Manual">
			<clickStrategy type="rect" left="540" top="450" right="610" bottom="500"/>
			<states>
				<state name="clickable">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="ManualWindow"/>
						<action target="Scene" name="ShowDialog" param="chart_click"/>
					</onClick>
				</state>
			</states>
		</object>
		
		<object name="Cannon">
			<clickStrategy type="rect" left="355" top="300" right="520" bottom="445"/>
			<states>
				<state name="waitForPowder">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick><action target="Scene" name="OpenWindow" param="CannonWindow"/></onClick>
					<onUseObject name="Gunpowder">
						<action target="Scene" name="OpenWindow" param="CannonWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Gunpowder"/>
						<action target="Cannon" name="SetState" param="waitForRag"/>
						<action target="Scene" name="PlaySound" param="use_filled_sack_on_cannon"/>
					</onUseObject>
					
					<onUseObject name="CannonBall">
						<action target="Scene" name="ShowDialog" param="wrong_order"/>
					</onUseObject>
					
					<onUseObject name="Rag">
						<action target="Scene" name="ShowDialog" param="wrong_order"/>
					</onUseObject>
				</state>
				
				<state name="waitForRag">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick><action target="Scene" name="OpenWindow" param="CannonWindow"/></onClick>
					<onUseObject name="Rag">
						<action target="Scene" name="OpenWindow" param="CannonWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Rag"/>
						<action target="Cannon" name="SetState" param="waitForBall"/>
						<action target="Scene" name="PlaySound" param="use_liquid_on_cord"/>
					</onUseObject>
				</state>
				
				<state name="waitForBall">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick><action target="Scene" name="OpenWindow" param="CannonWindow"/></onClick>
					<onUseObject name="CannonBall">
						<action target="Scene" name="OpenWindow" param="CannonWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="CannonBall"/>
						<action target="Cannon" name="SetState" param="readyToFire"/>
						<action target="CannonLock" name="UnlockPart" param="Muzzle"/>
						<action target="Scene" name="PlaySound" param="use_ball_on_the_cannon_nozzle"/>
					</onUseObject>
				</state>
				
				<state name="readyToFire">
					<onStateEnter>
						<action target="Scene" name="CloseWindow" param="CannonWindow" delay="100"/>
					</onStateEnter>					
				</state>
			</states>
		</object>
		
		<object name="Fuse">
			<clickStrategy type="alpha" layer="CannonCord"/>
			<states>
				<state name="noFuse">
					<onStateEnter><action target="Scene" name="HideLayer" param="CannonCord"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>

					<onClick>
						<action target="Scene" name="ShowDialog" param="no_fuse"/>
					</onClick>
					
					<onUseObject name="WetCord">
						<action target="Scene" name="RemoveFromInventory" param="WetCord"/>
						<action target="Fuse" name="SetState" param="withFuse"/>
						<action target="CannonLock" name="UnlockPart" param="Fuse"/>
					</onUseObject>
				</state>
				
				<state name="withFuse">
					<onStateEnter><action target="Scene" name="ShowLayer" param="CannonCord"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>					
					
					<onEvent name="cannonComplete">
						<action target="Fuse" name="SetState" param="lightable"/>
					</onEvent>
				</state>
				
				<state name="lightable">
					<onStateEnter><action target="Scene" name="ShowLayer" param="CannonCord"/></onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>					
					
					<onUseObject name="Firelock">
						<action target="Scene" name="RemoveFromInventory" param="Firelock"/>
						<action target="Door" name="SendEvent" param="cannonFired"/>
						<action target="Fuse" name="SetState" param="done"/>
						<action target="Scene" name="StartAnimation" param="FuseAnim"/>
						<action target="Scene" name="StopAnimation" param="FuseAnim" delay="160"/>
						<action target="Scene" name="StartAnimation" param="CannonAnim" delay="160"/>
					</onUseObject>
				</state>
				
				<state name="done">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="CannonCord"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Door">
			<clickStrategy type="alpha" layer="NextRoom"/>
			<states>
				<state name="closed">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="NextRoom"/>
						<action target="Scene" name="HideLayer" param="OpenDoor"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="noExit"/>
					</onMouseOver>										
					
					<onEvent name="cannonFired">
						<action target="Door" name="SetState" param="blownOpen" delay="160"/>
						<action target="Scene" name="PlaySound" param="cannon_fire_door"/>
					</onEvent>
				</state>
				
				<state name="blownOpen">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="NextRoom"/>
						<action target="Scene" name="ShowLayer" param="OpenDoor"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="exit"/>
					</onMouseOver>										
					
					<onClick>
						<action target="Scene" name="RegisterVictoryCondition" param=""/>
					</onClick>
				</state>
			</states>
		</object>
	</objects>
</scene>


