Guest User

Untitled

a guest
Jun 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.99 KB | None | 0 0
  1. <!--Saved by Quest 5.7.6606.27193-->
  2. <asl version="550">
  3. <include ref="English.aslx" />
  4. <include ref="Core.aslx" />
  5. <game name="testmove">
  6. <gameid>09559cd6-7761-4340-b524-6b1f7b7697b5</gameid>
  7. <version>1.0</version>
  8. <firstpublished>2018</firstpublished>
  9. <autodescription type="boolean">false</autodescription>
  10. <showdescriptiononenter type="boolean">false</showdescriptiononenter>
  11. <attr name="changeroom_newline" type="boolean">false</attr>
  12. <echohyperlinks type="boolean">false</echohyperlinks>
  13. <autodisplayverbs type="boolean">false</autodisplayverbs>
  14. </game>
  15. <object name="startroom">
  16. <inherit name="editor_room" />
  17. <beforeenter type="script">
  18. </beforeenter>
  19. <beforefirstenter type="script">
  20. MoveObject (player, mainroom_centre)
  21. </beforefirstenter>
  22. <object name="player">
  23. <inherit name="editor_object" />
  24. <inherit name="editor_player" />
  25. </object>
  26. </object>
  27. <object name="testgroup">
  28. <inherit name="editor_object" />
  29. <object name="mainroom_n">
  30. <inherit name="editor_room" />
  31. <beforeenter type="script">
  32. msg (this.name)
  33. </beforeenter>
  34. <firstenter type="script">
  35. </firstenter>
  36. <onexit type="script">
  37. randroom
  38. </onexit>
  39. <exit alias="south" to="mainroom_centre">
  40. <inherit name="southdirection" />
  41. </exit>
  42. <exit alias="east" to="mainroom_ne">
  43. <inherit name="eastdirection" />
  44. </exit>
  45. <exit alias="west" to="mainroom_nw">
  46. <inherit name="westdirection" />
  47. </exit>
  48. <exit alias="southwest" to="mainroom_w">
  49. <inherit name="southwestdirection" />
  50. </exit>
  51. <exit alias="southeast" to="mainroom_e">
  52. <inherit name="southeastdirection" />
  53. </exit>
  54. </object>
  55. <object name="mainroom_s">
  56. <inherit name="editor_room" />
  57. <beforeenter type="script">
  58. msg (this.name)
  59. </beforeenter>
  60. <firstenter type="script">
  61. </firstenter>
  62. <onexit type="script">
  63. randroom
  64. </onexit>
  65. <exit alias="north" to="mainroom_centre">
  66. <inherit name="northdirection" />
  67. </exit>
  68. <exit alias="northeast" to="mainroom_e">
  69. <inherit name="northeastdirection" />
  70. </exit>
  71. <exit alias="northwest" to="mainroom_w">
  72. <inherit name="northwestdirection" />
  73. </exit>
  74. <exit alias="east" to="mainroom_e">
  75. <inherit name="eastdirection" />
  76. </exit>
  77. <exit alias="west" to="mainroom_w">
  78. <inherit name="westdirection" />
  79. </exit>
  80. </object>
  81. <object name="mainroom_e">
  82. <inherit name="editor_room" />
  83. <beforeenter type="script">
  84. msg (this.name)
  85. </beforeenter>
  86. <firstenter type="script">
  87. </firstenter>
  88. <onexit type="script">
  89. randroom
  90. </onexit>
  91. <exit alias="west" to="mainroom_centre">
  92. <inherit name="westdirection" />
  93. </exit>
  94. <exit alias="northwest" to="mainroom_n">
  95. <inherit name="northwestdirection" />
  96. </exit>
  97. <exit alias="southwest" to="mainroom_s">
  98. <inherit name="southwestdirection" />
  99. </exit>
  100. <exit alias="north" to="mainroom_ne">
  101. <inherit name="northdirection" />
  102. </exit>
  103. <exit alias="south" to="mainroom_se">
  104. <inherit name="southdirection" />
  105. </exit>
  106. </object>
  107. <object name="mainroom_w">
  108. <inherit name="editor_room" />
  109. <beforeenter type="script">
  110. msg (this.name)
  111. </beforeenter>
  112. <firstenter type="script">
  113. </firstenter>
  114. <onexit type="script">
  115. randroom
  116. </onexit>
  117. <exit alias="east" to="mainroom_centre">
  118. <inherit name="eastdirection" />
  119. </exit>
  120. <exit alias="northeast" to="mainroom_n">
  121. <inherit name="northeastdirection" />
  122. </exit>
  123. <exit alias="southeast" to="mainroom_s">
  124. <inherit name="southeastdirection" />
  125. </exit>
  126. <exit alias="north" to="mainroom_nw">
  127. <inherit name="northdirection" />
  128. </exit>
  129. <exit alias="south" to="mainroom_sw">
  130. <inherit name="southdirection" />
  131. </exit>
  132. </object>
  133. <object name="mainroom_ne">
  134. <inherit name="editor_room" />
  135. <beforeenter type="script">
  136. msg (this.name)
  137. </beforeenter>
  138. <firstenter type="script">
  139. </firstenter>
  140. <onexit type="script">
  141. randroom
  142. </onexit>
  143. <exit alias="southwest" to="mainroom_centre">
  144. <inherit name="southwestdirection" />
  145. </exit>
  146. <exit alias="west" to="mainroom_n">
  147. <inherit name="westdirection" />
  148. </exit>
  149. <exit alias="south" to="mainroom_e">
  150. <inherit name="southdirection" />
  151. </exit>
  152. </object>
  153. <object name="mainroom_nw">
  154. <inherit name="editor_room" />
  155. <beforeenter type="script">
  156. msg (this.name)
  157. </beforeenter>
  158. <firstenter type="script">
  159. </firstenter>
  160. <onexit type="script">
  161. randroom
  162. </onexit>
  163. <exit alias="southeast" to="mainroom_centre">
  164. <inherit name="southeastdirection" />
  165. </exit>
  166. <exit alias="east" to="mainroom_n">
  167. <inherit name="eastdirection" />
  168. </exit>
  169. <exit alias="south" to="mainroom_w">
  170. <inherit name="southdirection" />
  171. </exit>
  172. </object>
  173. <object name="mainroom_se">
  174. <inherit name="editor_room" />
  175. <beforeenter type="script">
  176. msg (this.name)
  177. </beforeenter>
  178. <firstenter type="script">
  179. </firstenter>
  180. <onexit type="script">
  181. randroom
  182. </onexit>
  183. <exit alias="northwest" to="mainroom_centre">
  184. <inherit name="northwestdirection" />
  185. </exit>
  186. <exit alias="north" to="mainroom_e">
  187. <inherit name="northdirection" />
  188. </exit>
  189. </object>
  190. <object name="mainroom_sw">
  191. <inherit name="editor_room" />
  192. <beforeenter type="script">
  193. msg (this.name)
  194. </beforeenter>
  195. <firstenter type="script">
  196. </firstenter>
  197. <onexit type="script">
  198. randroom
  199. </onexit>
  200. <exit alias="northeast" to="mainroom_centre">
  201. <inherit name="northeastdirection" />
  202. </exit>
  203. <exit alias="north" to="mainroom_w">
  204. <inherit name="northdirection" />
  205. </exit>
  206. </object>
  207. <object name="mainroom_centre">
  208. <inherit name="editor_room" />
  209. <beforeenter type="script">
  210. msg (this.name)
  211. </beforeenter>
  212. <firstenter type="script">
  213. </firstenter>
  214. <onexit type="script">
  215. randroom
  216. </onexit>
  217. <exit alias="north" to="mainroom_n">
  218. <inherit name="northdirection" />
  219. </exit>
  220. <exit alias="south" to="mainroom_s">
  221. <inherit name="southdirection" />
  222. </exit>
  223. <exit alias="east" to="mainroom_e">
  224. <inherit name="eastdirection" />
  225. </exit>
  226. <exit alias="west" to="mainroom_w">
  227. <inherit name="westdirection" />
  228. </exit>
  229. <exit alias="northeast" to="mainroom_ne">
  230. <inherit name="northeastdirection" />
  231. </exit>
  232. <exit alias="northwest" to="mainroom_nw">
  233. <inherit name="northwestdirection" />
  234. </exit>
  235. <exit alias="southeast" to="mainroom_se">
  236. <inherit name="southeastdirection" />
  237. </exit>
  238. <exit alias="southwest" to="mainroom_sw">
  239. <inherit name="southwestdirection" />
  240. </exit>
  241. </object>
  242. </object>
  243. <function name="randroom">
  244. randno = GetRandomInt(1,9)
  245. msg ("RandomRoomNumber:"+randno)
  246. switch (randno) {
  247. case (1) {
  248. MoveObject (player, mainroom_n)
  249. }
  250. case (2) {
  251. MoveObject (player, mainroom_s)
  252. }
  253. case (3) {
  254. MoveObject (player, mainroom_e)
  255. }
  256. case (4) {
  257. MoveObject (player, mainroom_w)
  258. }
  259. case (5) {
  260. MoveObject (player, mainroom_ne)
  261. }
  262. case (6) {
  263. MoveObject (player, mainroom_nw)
  264. }
  265. case (7) {
  266. MoveObject (player, mainroom_se)
  267. }
  268. case (8) {
  269. MoveObject (player, mainroom_sw)
  270. }
  271. case (9) {
  272. MoveObject (player, mainroom_centre)
  273. }
  274. }
  275. </function>
  276. </asl>
Add Comment
Please, Sign In to add comment