<BLOCKSET HREF="http://blocks.flatland.com/flatsets/basic.bset"/> <blockset href="http://blocks.flatland.com/simon/testchar.bset"/> <MAP DIMENSIONS="(5,5,1)" STYLE="single"/> <SKY TEXTURE="@basic:clouds.gif" BRIGHTNESS="100%"/> <GROUND/> <AMBIENT_LIGHT BRIGHTNESS="100%" COLOR="(255,255,255)"/> </HEAD> <BODY> <create symbol="@" block="testchar"> <param movable="yes"/> <define> <movement>down</movement> <direction>south</direction> </define> <script trigger="timer" delay="0.01"> if (direction = "south") { if (location:z gt 0) { location:z = location:z - 1.0; if(movement="down") { vertex[5]:z = vertex[5]:z + 1; vertex[8]:z = vertex[8]:z - 1; vertex[14]:z = vertex[14]:z - 1; vertex[15]:z = vertex[15]:z - 1; vertex[17]:z = vertex[17]:z + 1; vertex[18]:z = vertex[18]:z + 1; if(vertex[5]:z gt 160) { movement="up"; } } if(movement="up") { vertex[5]:z = vertex[5]:z - 1; vertex[8]:z = vertex[8]:z + 1; vertex[14]:z = vertex[14]:z + 1; vertex[15]:z = vertex[15]:z + 1; vertex[17]:z = vertex[17]:z - 1; vertex[18]:z = vertex[18]:z - 1; if(vertex[5]:z lt 96) { movement="down"; } } } else { direction = "north"; } } else { if (location:z lt (4 * 256)) { location:z = location:z + 1; if(movement="down") { vertex[5]:z = vertex[5]:z + 1; vertex[8]:z = vertex[8]:z - 1; vertex[14]:z = vertex[14]:z - 1; vertex[15]:z = vertex[15]:z - 1; vertex[17]:z = vertex[17]:z + 1; vertex[18]:z = vertex[18]:z + 1; if(vertex[5]:z gt 160) { movement="up"; } } if(movement="up") { vertex[5]:z = vertex[5]:z - 1; vertex[8]:z = vertex[8]:z + 1; vertex[14]:z = vertex[14]:z + 1; vertex[15]:z = vertex[15]:z + 1; vertex[17]:z = vertex[17]:z - 1; vertex[18]:z = vertex[18]:z - 1; if(vertex[5]:z lt 96) { movement="down"; } } } else { direction = "south"; } } </script> </create> <LEVEL NUMBER="1" > ..@.. ..... ..... ..... ..... </LEVEL> <ENTRANCE LOCATION="(1,5,1)" NAME="default" ANGLE="45,0"/> </BODY> </SPOT>