<blockset href="http://blocks.flatland.com/xuriel/xuriel_bedroom.bset" /> <blockset href="http://blocks.flatland.com/moola/moola_doors.bset" /> <blockset href="http://blocks.flatland.com/flatsets/interior.bset" /> <map style="double" dimensions="(21,27,4)" /> <sky /> <orb color="(255,255,255)" position="(0,15)" brightness="100%" /> <ambient_light brightness="50%" /> <ambient_sound file="@xuriel_bedroom:music_box_1.wav" playback="once" /> </head> <body> <!-- THE BEDROOM, TO BE SCALED --> <create symbol="#1" block="bedroom"> <param movable="yes" /> <part name="south" faces="0" solid="no" /> <part name="pathbottom" faces="2" /> <define> <scale_x>20.0</scale_x> <scale_y>20.0</scale_y> <scale_z>20.0</scale_z> </define> </create> <!-- THE BEDROOM WALL PANEL, TO BE SCALED --> <create symbol="#2" block="panel"> <param movable="yes" /> <define> <scale_x>20.0</scale_x> <scale_y>20.0</scale_y> <scale_z>20.0</scale_z> <rot_x>0</rot_x> <is_open>0</is_open> <open_panel>0</open_panel> <curr_ms>0</curr_ms> <last_ms>0</last_ms> <speed>1</speed> </define> <script trigger="click on"> if (is_open = 0 and open_panel = 0) { open_panel = 1; } if (is_open = 1 and open_panel = 0) { open_panel = -1; } </script> <script trigger="timer" delay="0.001"> if (open_panel = 1) { block = map.get_block("#2"); curr_ms = spot.time:millisecond; if (curr_ms gt last_ms + speed) { last_ms = curr_ms; if (rot_x lt 135) { block.rotate_x(1); rot_x = rot_x + 1; } else { is_open = 1; open_panel = 0; } } } if (open_panel = -1) { block = map.get_block("#2"); curr_ms = spot.time:millisecond; if (curr_ms gt last_ms + speed) { last_ms = curr_ms; if (rot_x gt 0) { block.rotate_x(-1); rot_x = rot_x - 1; } else { is_open = 0; open_panel = 0; } } } </script> </create> <create symbol="bd" block="bed"> <part name="toplegs" faces="0" solid="no" /> </create> <create symbol="lc" block="lcabinet"> </create> <create symbol="rc" block="rcabinet"> </create> <!-- THE PORTAL BLOCK(S) --> <!-- North/Red Door --> <create symbol="NC" block="doorsnorthclosed"> <param movable="yes" /> <action trigger="step in" radius="2"> <replace source="NO" /> </action> </create> <create symbol="NO" block="doorsnorthopen"> <param movable="yes" /> <part name="background" texture="../000002/images/thumbnail.jpg" /> <action trigger="step out" radius="2"> <replace source="NC" /> </action> <exit href="../000002/index.3dml" trigger="click on, step on" /> </create> <!-- IMPORT THE SCALE FUNCTION --> <import href="scripts/scaleblock.3dml" /> <!-- AT START, SCALE AND POSITION BLOCKS --> <define> <function name="start"> block = map.get_block("#1"); scaleblock(block); block.location:y = 256; block.location:z = block.location:z - 128; block = map.get_block("#2"); scaleblock(block); block.location:y = 256; block.location:z = block.location:z + 128; block.origin:x = 2560; block.origin:y = 320; block.origin:z = 3840; block = map.get_block("NC"); block.location:x = 2416; block.location:y = 600; block.location:z = 1396; </function> </define> <script trigger="timer" delay="0.001"> if (player.location:y lt 264) { player.location:x = 2432; player.location:y = 264; player.location:z = 5504; ambient_sound.playback = "single"; } </script> <level number="1"> </level> <level number="2"> .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. rc bd lc .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. #1 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. #2 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. NC .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. </level> <level number="3"> </level> <level number="4"> </level> <entrance location="(10,6,2)" name="default" angle="45.0" /> <entrance location="(11,21,3)" name="red" angle="0.0" /> </body> </spot>