<scene name="Room8" numVictoryConditions="1">
	<inventory>
		<object name="Button" memberName="HUD_button" acquired="0" visible="1"/>
		<object name="Ring" memberName="HUD_ring" acquired="0" visible="1"/>
		<object name="Wire1" memberName="HUD_wire1" acquired="0" visible="1"/>
		<object name="Wire2" memberName="HUD_wire2" acquired="0" visible="1"/>
		<object name="Wire3" memberName="HUD_wire3" acquired="0" visible="1"/>		
		<object name="SackTruck" memberName="HUD_sackTruck" acquired="0" visible="1"/>
	</inventory>
	
	<finalStates>
		<finalState objName="Button" state="acquired"/>
		<finalState objName="SolarSystem" state="saturnActive"/>
		<finalState objName="Earth" state="invisible"/>
		<finalState objName="Mars" state="invisible"/>
		<finalState objName="Jupiter" state="invisible"/>
		<finalState objName="Saturn" state="visible_noRing"/>
		<finalState objName="Uranus" state="invisible"/>
		<finalState objName="Neptune" state="invisible"/>
		<finalState objName="Pluto" state="invisible"/>
		<finalState objName="Mercury" state="invisible"/>
		<finalState objName="Venus" state="invisible"/>
		<finalState objName="Volcano" state="clickable"/>
		<finalState objName="Wire1" state="acquired"/>
		<finalState objName="Wire2" state="acquired"/>
		<finalState objName="Wire3" state="acquired"/>
		<finalState objName="SackTruck" state="acquired"/>
		<finalState objName="SackTruckWheel" state="invisible"/>
		<finalState objName="Crate" state="outOfTheWay"/>
		<finalState objName="NextRoom" state="visible"/>
		<finalState objName="OpenDoor" state="visible"/>
	</finalStates>
	
	<animations>
		<animation name="LightsAnim" type="loop">
			<frames>
				<frame memberName="spot1_anim" frameDelay="60"/>
				<frame memberName="spot2_anim" frameDelay="30"/>
				<frame memberName="spot3_anim" frameDelay="20"/>
				<frame memberName="spot4_anim" frameDelay="40"/>
				<frame memberName="spot5_anim" frameDelay="120"/>
				<frame memberName="spot6_anim" frameDelay="40"/>
				<frame memberName="spot7_anim" frameDelay="80"/>
				<frame memberName="spot8_anim" frameDelay="20"/>				
			</frames>
		</animation>
	</animations>
	
	<zoomWindows>
		<zoomWindow name="SolarSystemWindow" file="ZoomWindows\Room8_SolarSystemWindow.dir" x="234" y="217" visible="0"/>
		<zoomWindow name="VolcanoWindow" file="ZoomWindows\Room8_VolcanoWindow.dir" x="620" y="420" visible="0"/>
		<zoomWindow name="SackTruckWindow" file="ZoomWindows\Room8_SackTruckWindow.dir" x="150" y="462" visible="0"/>
	</zoomWindows>
	
	<objects>
		<object name="Button">
			<clickStrategy type="alpha" layer="Button"/>
			<states>
				<state name="clickable">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Button"/>
						<action target="Scene" name="PlaySound" param="indoor_small"/>
						<action target="Scene" name="PlaySound" param="telemetry"/>
						<action target="Scene" name="StartAnimation" param="LightsAnim"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="AddToInventory" param="Button"/>
						<action target="Button" name="SetState" param="acquired"/>
						<action target="Scene" name="PlaySound" param="Item_Pickup_Metal_small"/>
					</onClick>
				</state>

				<state name="acquired">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Button"/>
					</onStateEnter>					
				</state>
			</states>
		</object>
		
		<object name="SolarSystem">		
			<clickStrategy type="rect" left="155" top="120" right="280" bottom="440"/>
			<states>
				<state name="noButton">				
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="SolarSystemWindow"/>
						<action target="Scene" name="ShowDialog" param="machine_click"/>
					</onClick>
					
					<onUseObject name="Button">
						<action target="Scene" name="OpenWindow" param="SolarSystemWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Button"/>
						<action target="SolarSystem" name="SetState" param="earthActive"/>
						<action target="Earth" name="SendEvent" param="show"/>
						<action target="Scene" name="PlaySound" param="insert_button_to_the_model"/>
					</onUseObject>
				</state>
				
				<state name="earthActive">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick><action target="Scene" name="OpenWindow" param="SolarSystemWindow"/></onClick>
					
					<onEvent name="nextPlanet">
						<action target="Earth" name="SendEvent" param="hide"/>
						<action target="Mars" name="SendEvent" param="show"/>
						<action target="SolarSystem" name="SetState" param="marsActive"/>
						<action target="Scene" name="PlaySound" param="click2"/>
					</onEvent>
				</state>
				
				<state name="marsActive">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick><action target="Scene" name="OpenWindow" param="SolarSystemWindow"/></onClick>
					
					<onEvent name="nextPlanet">
						<action target="Mars" name="SendEvent" param="hide"/>
						<action target="Jupiter" name="SendEvent" param="show"/>
						<action target="SolarSystem" name="SetState" param="jupiterActive"/>
						<action target="Scene" name="PlaySound" param="click2"/>
					</onEvent>
				</state>
				
				<state name="jupiterActive">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick><action target="Scene" name="OpenWindow" param="SolarSystemWindow"/></onClick>
					
					<onEvent name="nextPlanet">
						<action target="Jupiter" name="SendEvent" param="hide"/>
						<action target="Saturn" name="SendEvent" param="show"/>
						<action target="SolarSystem" name="SetState" param="saturnActive"/>
						<action target="Scene" name="PlaySound" param="click2"/>
					</onEvent>
				</state>
				
				<state name="saturnActive">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
										
					<onClick><action target="Scene" name="OpenWindow" param="SolarSystemWindow"/></onClick>
					
					<onEvent name="nextPlanet">
						<action target="Saturn" name="SendEvent" param="hide"/>
						<action target="Uranus" name="SendEvent" param="show"/>
						<action target="SolarSystem" name="SetState" param="uranusActive"/>
						<action target="Scene" name="PlaySound" param="click2"/>
					</onEvent>
				</state>
				
				<state name="uranusActive">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>

					<onClick><action target="Scene" name="OpenWindow" param="SolarSystemWindow"/></onClick>
					
					<onEvent name="nextPlanet">
						<action target="Uranus" name="SendEvent" param="hide"/>
						<action target="Neptune" name="SendEvent" param="show"/>
						<action target="SolarSystem" name="SetState" param="neptuneActive"/>
						<action target="Scene" name="PlaySound" param="click2"/>
					</onEvent>
				</state>
				
				<state name="neptuneActive">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>

					<onClick><action target="Scene" name="OpenWindow" param="SolarSystemWindow"/></onClick>
					
					<onEvent name="nextPlanet">
						<action target="Neptune" name="SendEvent" param="hide"/>
						<action target="Pluto" name="SendEvent" param="show"/>
						<action target="SolarSystem" name="SetState" param="plutoActive"/>
						<action target="Scene" name="PlaySound" param="click2"/>
					</onEvent>
				</state>
				
				<state name="plutoActive">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>										

					<onClick><action target="Scene" name="OpenWindow" param="SolarSystemWindow"/></onClick>
					
					<onEvent name="nextPlanet">
						<action target="Pluto" name="SendEvent" param="hide"/>
						<action target="Mercury" name="SendEvent" param="show"/>
						<action target="SolarSystem" name="SetState" param="mercuryActive"/>
						<action target="Scene" name="PlaySound" param="click2"/>
					</onEvent>
				</state>
				
				<state name="mercuryActive">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>										

					<onClick><action target="Scene" name="OpenWindow" param="SolarSystemWindow"/></onClick>
					
					<onEvent name="nextPlanet">
						<action target="Mercury" name="SendEvent" param="hide"/>
						<action target="Venus" name="SendEvent" param="show"/>
						<action target="SolarSystem" name="SetState" param="venusActive"/>
						<action target="Scene" name="PlaySound" param="click2"/>
					</onEvent>
				</state>
				
				<state name="venusActive">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>										

					<onClick><action target="Scene" name="OpenWindow" param="SolarSystemWindow"/></onClick>
					
					<onEvent name="nextPlanet">
						<action target="Venus" name="SendEvent" param="hide"/>
						<action target="Earth" name="SendEvent" param="show"/>
						<action target="SolarSystem" name="SetState" param="earthActive"/>
						<action target="Scene" name="PlaySound" param="click2"/>
					</onEvent>
				</state>
			</states>
		</object>
		
		<object name="Earth">
			<states>
				<state name="invisible">
					<onStateEnter><action target="Scene" name="HideLayer" param="Earth"/></onStateEnter>
					<onEvent name="show"><action target="Earth" name="SetState" param="visible"/></onEvent>
				</state>
				
				<state name="visible">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Earth"/></onStateEnter>
					<onEvent name="hide"><action target="Earth" name="SetState" param="invisible"/></onEvent>
				</state>
			</states>
		</object>
		
		<object name="Mars">
			<states>
				<state name="invisible">
					<onStateEnter><action target="Scene" name="HideLayer" param="Mars"/></onStateEnter>
					<onEvent name="show"><action target="Mars" name="SetState" param="visible"/></onEvent>
				</state>
				
				<state name="visible">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Mars"/></onStateEnter>
					<onEvent name="hide"><action target="Mars" name="SetState" param="invisible"/></onEvent>
				</state>
			</states>
		</object>
		
		<object name="Jupiter">
			<states>
				<state name="invisible">
					<onStateEnter><action target="Scene" name="HideLayer" param="Jupiter"/></onStateEnter>
					<onEvent name="show"><action target="Jupiter" name="SetState" param="visible"/></onEvent>
				</state>
				
				<state name="visible">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Jupiter"/></onStateEnter>
					<onEvent name="hide"><action target="Jupiter" name="SetState" param="invisible"/></onEvent>
				</state>
			</states>
		</object>
		
		<object name="Saturn">
			<states>
				<state name="invisible_withRing">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Saturn"/>
						<action target="Scene" name="HideLayer" param="SaturnDownNoRing"/>
						<action target="Scene" name="HideLayer" param="SaturnUpNoRing"/>
					</onStateEnter>
					
					<onEvent name="show"><action target="Saturn" name="SetState" param="visible_withRing"/></onEvent>
				</state>
				
				<state name="visible_withRing">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Saturn"/>
						<action target="Scene" name="HideLayer" param="SaturnDownNoRing"/>
						<action target="Scene" name="HideLayer" param="SaturnUpNoRing"/>
					</onStateEnter>
					
					<onEvent name="hide"><action target="Saturn" name="SetState" param="invisible_withRing"/></onEvent>
					<onEvent name="takeRing">
						<action target="Saturn" name="SetState" param="visible_noRing"/>
						<action target="Scene" name="PlaySound" param="Item_Pickup_Metal_big"/>
					</onEvent>
				</state>
				
				<state name="invisible_noRing">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Saturn"/>
						<action target="Scene" name="HideLayer" param="SaturnDownNoRing"/>
						<action target="Scene" name="ShowLayer" param="SaturnUpNoRing"/>
					</onStateEnter>
					
					<onEvent name="show"><action target="Saturn" name="SetState" param="visible_noRing"/></onEvent>
				</state>
				
				<state name="visible_noRing">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Saturn"/>
						<action target="Scene" name="ShowLayer" param="SaturnDownNoRing"/>
						<action target="Scene" name="HideLayer" param="SaturnUpNoRing"/>
						<action target="Scene" name="CloseWindow" param="SolarSystemWindow"/>
					</onStateEnter>
					
					<onEvent name="hide"><action target="Saturn" name="SetState" param="invisible_noRing"/></onEvent>
				</state>
			</states>
		</object>
		
		<object name="Uranus">
			<states>
				<state name="invisible">
					<onStateEnter><action target="Scene" name="HideLayer" param="Uranus"/></onStateEnter>
					<onEvent name="show"><action target="Uranus" name="SetState" param="visible"/></onEvent>
				</state>
				
				<state name="visible">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Uranus"/></onStateEnter>
					<onEvent name="hide"><action target="Uranus" name="SetState" param="invisible"/></onEvent>
				</state>
			</states>
		</object>
		
		<object name="Neptune">
			<states>
				<state name="invisible">
					<onStateEnter><action target="Scene" name="HideLayer" param="Neptune"/></onStateEnter>
					<onEvent name="show"><action target="Neptune" name="SetState" param="visible"/></onEvent>
				</state>
				
				<state name="visible">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Neptune"/></onStateEnter>
					<onEvent name="hide"><action target="Neptune" name="SetState" param="invisible"/></onEvent>
				</state>
			</states>
		</object>
		
		<object name="Pluto">
			<states>
				<state name="invisible">
					<onStateEnter><action target="Scene" name="HideLayer" param="Pluto"/></onStateEnter>
					<onEvent name="show"><action target="Pluto" name="SetState" param="visible"/></onEvent>
				</state>
				
				<state name="visible">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Pluto"/></onStateEnter>
					<onEvent name="hide"><action target="Pluto" name="SetState" param="invisible"/></onEvent>
				</state>
			</states>
		</object>
		
		<object name="Mercury">
			<states>
				<state name="invisible">
					<onStateEnter><action target="Scene" name="HideLayer" param="Mercury"/></onStateEnter>
					<onEvent name="show"><action target="Mercury" name="SetState" param="visible"/></onEvent>
				</state>
				
				<state name="visible">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Mercury"/></onStateEnter>
					<onEvent name="hide"><action target="Mercury" name="SetState" param="invisible"/></onEvent>
				</state>
			</states>
		</object>
		
		<object name="Venus">
			<states>
				<state name="invisible">
					<onStateEnter><action target="Scene" name="HideLayer" param="Venus"/></onStateEnter>
					<onEvent name="show"><action target="Venus" name="SetState" param="visible"/></onEvent>
				</state>
				
				<state name="visible">
					<onStateEnter><action target="Scene" name="ShowLayer" param="Venus"/></onStateEnter>
					<onEvent name="hide"><action target="Venus" name="SetState" param="invisible"/></onEvent>
				</state>
			</states>
		</object>
		
		<object name="Volcano">
			<clickStrategy type="rect" left="575" top="325" right="710" bottom="520"/>			
			<states>
				<state name="clickable">
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>										

					<onClick>
						<action target="Scene" name="OpenWindow" param="VolcanoWindow"/>
					</onClick>
				</state>
			</states>
		</object>
		
		<object name="Wire1">
			<states>
				<state name="unacquired">
					<onStateEnter><action target="Scene" name="HideLayer" param="Wire1"/></onStateEnter>
				</state>
				<state name="acquired">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Wire1"/>
						<action target="Scene" name="PlaySound" param="pickup_wire"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Wire2">
			<states>
				<state name="unacquired">
					<onStateEnter><action target="Scene" name="HideLayer" param="Wire2"/></onStateEnter>
				</state>
				<state name="acquired">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Wire2"/>
						<action target="Scene" name="PlaySound" param="pickup_wire"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Wire3">
			<states>
				<state name="unacquired">
					<onStateEnter><action target="Scene" name="HideLayer" param="Wire3"/></onStateEnter>
				</state>
				<state name="acquired">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Wire3"/>
						<action target="Scene" name="PlaySound" param="pickup_wire"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="SackTruck">
			<clickStrategy type="alpha" layer="SackTruck"/>
			<states>
				<state name="broken">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="SackTruck"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="ShowDialog" param="need_wheel"/>
					</onClick>
					
					<onUseObject name="Ring">
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Ring"/>
						<action target="SackTruck" name="SetState" param="withRing"/>
						<action target="SackTruckWheel" name="SetState" param="visible"/>
						<action target="Scene" name="PlaySound" param="put_ring_on_sack_truck"/>
					</onUseObject>
				</state>
				
				<state name="withRing">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="SackTruck"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="ShowDialog" param="need_wires"/>
					</onClick>
					
					<onUseObject name="Wire1">
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Wire1"/>
						<action target="SackTruck" name="SetState" param="with1Wire"/>
					</onUseObject>
					<onUseObject name="Wire2">
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Wire2"/>
						<action target="SackTruck" name="SetState" param="with1Wire"/>
					</onUseObject>
					<onUseObject name="Wire3">
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Wire3"/>
						<action target="SackTruck" name="SetState" param="with1Wire"/>
					</onUseObject>
				</state>
				
				<state name="with1Wire">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="SackTruck"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
					</onClick>
					
					<onUseObject name="Wire1">
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Wire1"/>
						<action target="SackTruck" name="SetState" param="with2Wire"/>
					</onUseObject>
					<onUseObject name="Wire2">
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Wire2"/>
						<action target="SackTruck" name="SetState" param="with2Wire"/>
					</onUseObject>
					<onUseObject name="Wire3">
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Wire3"/>
						<action target="SackTruck" name="SetState" param="with2Wire"/>
					</onUseObject>
				</state>
				
				<state name="with2Wire">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="SackTruck"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="zoom"/>
					</onMouseOver>					
					
					<onClick>
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
					</onClick>
					
					<onUseObject name="Wire1">
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Wire1"/>
						<action target="SackTruck" name="SetState" param="with3Wire"/>
					</onUseObject>
					<onUseObject name="Wire2">
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Wire2"/>
						<action target="SackTruck" name="SetState" param="with3Wire"/>
					</onUseObject>
					<onUseObject name="Wire3">
						<action target="Scene" name="OpenWindow" param="SackTruckWindow"/>
						<action target="Scene" name="RemoveFromInventory" param="Wire3"/>
						<action target="SackTruck" name="SetState" param="with3Wire"/>
					</onUseObject>
				</state>
				
				<state name="with3Wire">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="SackTruck"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>

					<onClick>
						<action target="SackTruck" name="SendEvent" param="grabSackTruck"/>
					</onClick>
					
					<onEvent name="grabSackTruck">
						<action target="Scene" name="CloseWindow" param="SackTruckWindow"/>
						<action target="Scene" name="AddToInventory" param="SackTruck"/>
						<action target="SackTruck" name="SetState" param="acquired"/>
						<action target="SackTruckWheel" name="SetState" param="invisible"/>
						<action target="Scene" name="PlaySound" param="take_sack_truck"/>
					</onEvent>
				</state>
				
				<state name="acquired">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="SackTruck"/>
					</onStateEnter>
				</state>
			</states>			
		</object>
		
		<object name="SackTruckWheel">
			<states>
				<state name="invisible">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="SackTruckWheel"/>
					</onStateEnter>
				</state>
				
				<state name="visible">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="SackTruckWheel"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="Crate" state="inTheWay">
			<clickStrategy type="alpha" layer="Crate"/>
			<states>
				<state name="inTheWay">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="Crate"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="interactive"/>
					</onMouseOver>	

					<onClick>
						<action target="Scene" name="ShowDialog" param="crate_click"/>
					</onClick>
					
					<onUseObject name="SackTruck">
						<action target="Scene" name="RemoveFromInventory" param="SackTruck"/>
						<action target="Crate" name="SetState" param="outOfTheWay"/>
						<action target="NextRoom" name="SetState" param="visible"/>
						<action target="OpenDoor" name="SetState" param="visible"/>						
						<action target="Scene" name="PlaySound" param="use_sack_truck_on_crate"/>
					</onUseObject>
				</state>
				
				<state name="outOfTheWay">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="Crate"/>
					</onStateEnter>
				</state>
			</states>
		</object>
		
		<object name="NextRoom">
			<clickStrategy type="alpha" layer="NextRoom"/>
			<states>
				<state name="invisible">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="NextRoom"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="noExit"/>
					</onMouseOver>
				</state>
				
				<state name="visible">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="NextRoom"/>
					</onStateEnter>
					
					<onMouseOver>
						<action target="Scene" name="SetCursor" param="exit"/>
					</onMouseOver>

					<onClick>
						<action target="Scene" name="RegisterVictoryCondition" param=""/>
					</onClick>
				</state>
			</states>
		</object>
		
		<object name="OpenDoor">
			<states>
				<state name="invisible">
					<onStateEnter>
						<action target="Scene" name="HideLayer" param="OpenDoor"/>
					</onStateEnter>					
				</state>
				
				<state name="visible">
					<onStateEnter>
						<action target="Scene" name="ShowLayer" param="OpenDoor"/>
					</onStateEnter>					
				</state>
			</states>
		</object>
	</objects>
</scene>
