./msn_text_adventure.lua

  1. local Image_sets = { 
  2. 	beach = 			{frames = {"ui_txt_adv_beach_1", "ui_txt_adv_beach_2"}, 				sheet = "ui_bms_txt_adv_beach"}, 
  3. 	space = 			{frames = {"ui_txt_adv_space_1", "ui_txt_adv_space_2"}, 				sheet = "ui_bms_txt_adv_space"}, 
  4. 	computer = 		{frames = {"ui_txt_adv_computer_1", "ui_txt_adv_computer_2"}, 		sheet = "ui_bms_txt_adv_computer"}, 
  5. 	phone = 			{frames = {"ui_txt_adv_phone_1", "ui_txt_adv_phone_2"}, 				sheet = "ui_bms_txt_adv_phone"}, 
  6. 	terror = 		{frames = {"ui_txt_adv_terror_1", "ui_txt_adv_terror_2"}, 			sheet = "ui_bms_txt_adv_terror"}, 
  7. 	arch = 			{frames = {"ui_txt_adv_arch_1", "ui_txt_adv_arch_2"}, 				sheet = "ui_bms_txt_adv_arch"}, 
  8. 	matt_enter = 	{frames = {"ui_txt_adv_matt_enter_1", "ui_txt_adv_matt_enter_2"}, sheet = "ui_bms_txt_adv_matt_enter"}, 
  9. 	matt_punch = 	{frames = {"ui_txt_adv_matt_punch_1", "ui_txt_adv_matt_punch_2"}, sheet = "ui_bms_txt_adv_matt_punch"}, 
  10. 	kill_enter = 	{frames = {"ui_txt_adv_kill_enter_1", "ui_txt_adv_kill_enter_2"}, sheet = "ui_bms_txt_adv_kill_enter"}, 
  11. 	kill_punch = 	{frames = {"ui_txt_adv_kill_punch_1", "ui_txt_adv_kill_punch_2"}, sheet = "ui_bms_txt_adv_kill_punch"}, 
  12. 	matt_win = 		{frames = {"ui_txt_adv_matt_win_1", "ui_txt_adv_matt_win_2"}, 		sheet = "ui_bms_txt_adv_matt_win"}, 
  13. 	sizing = 		{frames = {"ui_txt_adv_sizing_1", "ui_txt_adv_sizing_2"}, 			sheet = "ui_bms_txt_adv_sizing"}, 
  14. } 
  15.  
  16.  
  17. local Data = { 
  18. 	[1] = { 
  19. 		scenario = "M02_TXT_ADV_SC_01", 
  20. 		image = Image_sets.computer, 
  21. 		choices = { 
  22. 			[1] = { 
  23. 				label = "M02_TXT_ADV_SC_01_CH1", 
  24. 				target = 2, 
  25. 				type = TYPE_BUTTON,				 
  26. 			}, 
  27. 			[2] = { 
  28. 				label = "M02_TXT_ADV_SC_01_CH2", 
  29. 				target = 3,				 
  30. 				type = TYPE_BUTTON,				 
  31. 			}, 
  32. 		}, 
  33. 		sfx = "Scenario", 
  34. 	}, 
  35. 	[2] = { 
  36. 		scenario = "M02_TXT_ADV_SC_02", 
  37. 		image = Image_sets.computer, 
  38. 		choices = { 
  39. 			[1] = { 
  40. 				label = "M02_TXT_ADV_SC_02_CH1", 
  41. 				target = 2, 
  42. 				type = TYPE_BUTTON,				 
  43. 			}, 
  44. 			[2] = { 
  45. 				label = "M02_TXT_ADV_SC_02_CH2", 
  46. 				target = 3,				 
  47. 				type = TYPE_BUTTON,				 
  48. 			}, 
  49. 		}, 
  50. 		sfx = "Neutral", 
  51. 	}, 
  52. 	[3] = { 
  53. 		scenario = "M02_TXT_ADV_SC_03", 
  54. 		image = Image_sets.computer, 
  55. 		choices = { 
  56. 			[1] = { 
  57. 				label = "M02_TXT_ADV_SC_03_CH1", 
  58. 				target = 5, 
  59. 				type = TYPE_BUTTON,				 
  60. 			}, 
  61. 			[2] = { 
  62. 				label = "M02_TXT_ADV_SC_03_CH2", 
  63. 				target = 4,				 
  64. 				type = TYPE_BUTTON,				 
  65. 			}, 
  66. 			[3] = { 
  67. 				label = "M02_TXT_ADV_SC_03_CH3", 
  68. 				target = 5,				 
  69. 				type = TYPE_BUTTON,				 
  70. 			}, 
  71. 			[4] = { 
  72. 				label = "M02_TXT_ADV_SC_03_CH4", 
  73. 				target = 5,				 
  74. 				type = TYPE_BUTTON,				 
  75. 			}, 
  76. 		}, 
  77. 		sfx = "Neutral", 
  78. 	}, 
  79. 	[4] = { 
  80. 		scenario = "M02_TXT_ADV_SC_04", 
  81. 		image = Image_sets.computer, 
  82. 		choices = { 
  83. 			[1] = { 
  84. 				label = "M02_TXT_ADV_SC_04_CH1", 
  85. 				target = 5, 
  86. 				type = TYPE_BUTTON,				 
  87. 			}, 
  88. 			[2] = { 
  89. 				label = "M02_TXT_ADV_SC_04_CH2", 
  90. 				target = 4,				 
  91. 				type = TYPE_BUTTON,				 
  92. 			}, 
  93. 			[3] = { 
  94. 				label = "M02_TXT_ADV_SC_04_CH3", 
  95. 				target = 5,				 
  96. 				type = TYPE_BUTTON,				 
  97. 			}, 
  98. 			[4] = { 
  99. 				label = "M02_TXT_ADV_SC_04_CH4", 
  100. 				target = 5,				 
  101. 				type = TYPE_BUTTON,				 
  102. 			}, 
  103. 		}, 
  104. 		sfx = "Neutral", 
  105. 	}, 
  106. 	[5] = { 
  107. 		scenario = "M02_TXT_ADV_SC_05", 
  108. 		image = Image_sets.computer, 
  109. 		choices = { 
  110. 			[1] = { 
  111. 				label = "M02_TXT_ADV_SC_05_CH1", 
  112. 				target = 8, 
  113. 				type = TYPE_BUTTON,				 
  114. 			}, 
  115. 			[2] = { 
  116. 				label = "M02_TXT_ADV_SC_05_CH2", 
  117. 				target = 6,				 
  118. 				type = TYPE_BUTTON,				 
  119. 			}, 
  120. 			[3] = { 
  121. 				label = "M02_TXT_ADV_SC_05_CH3", 
  122. 				target = 7,				 
  123. 				type = TYPE_BUTTON,				 
  124. 			}, 
  125. 			[4] = { 
  126. 				label = "M02_TXT_ADV_SC_05_CH4", 
  127. 				target = 7,				 
  128. 				type = TYPE_BUTTON,				 
  129. 			}, 
  130. 		}, 
  131. 		sfx = "Neutral", 
  132. 	}, 
  133. 	[6] = { 
  134. 		scenario = "M02_TXT_ADV_SC_06", 
  135. 		image = Image_sets.computer, 
  136. 		choices = { 
  137. 			[1] = { 
  138. 				label = "M02_TXT_ADV_SC_06_CH1", 
  139. 				target = 8, 
  140. 				type = TYPE_BUTTON,				 
  141. 			}, 
  142. 			[2] = { 
  143. 				label = "M02_TXT_ADV_SC_06_CH2", 
  144. 				target = 6,				 
  145. 				type = TYPE_BUTTON,				 
  146. 			}, 
  147. 			[3] = { 
  148. 				label = "M02_TXT_ADV_SC_06_CH3", 
  149. 				target = 7,				 
  150. 				type = TYPE_BUTTON,				 
  151. 			}, 
  152. 			[4] = { 
  153. 				label = "M02_TXT_ADV_SC_06_CH4", 
  154. 				target = 7,				 
  155. 				type = TYPE_BUTTON,				 
  156. 			}, 
  157. 		}, 
  158. 		sfx = "Neutral", 
  159. 	}, 
  160. 	[7] = { 
  161. 		scenario = "M02_TXT_ADV_SC_07", 
  162. 		image = Image_sets.computer, 
  163. 		choices = { 
  164. 			[1] = { 
  165. 				label = "M02_TXT_ADV_SC_07_CH1", 
  166. 				target = 8, 
  167. 				type = TYPE_BUTTON,				 
  168. 			}, 
  169. 			[2] = { 
  170. 				label = "M02_TXT_ADV_SC_07_CH2", 
  171. 				target = 6,				 
  172. 				type = TYPE_BUTTON,				 
  173. 			}, 
  174. 			[3] = { 
  175. 				label = "M02_TXT_ADV_SC_07_CH3", 
  176. 				target = 7,				 
  177. 				type = TYPE_BUTTON,				 
  178. 			}, 
  179. 			[4] = { 
  180. 				label = "M02_TXT_ADV_SC_07_CH4", 
  181. 				target = 7,				 
  182. 				type = TYPE_BUTTON,				 
  183. 			}, 
  184. 		}, 
  185. 		sfx = "Neutral", 
  186. 	}, 
  187. 	[8] = { 
  188. 		scenario = "M02_TXT_ADV_SC_08", 
  189. 		image = Image_sets.space, 
  190. 		choices = { 
  191. 			[1] = { 
  192. 				label = "M02_TXT_ADV_SC_08_CH1", 
  193. 				target = 9, 
  194. 				type = TYPE_BUTTON,				 
  195. 			}, 
  196. 			[2] = { 
  197. 				label = "M02_TXT_ADV_SC_08_CH2", 
  198. 				target = 10,				 
  199. 				type = TYPE_BUTTON,				 
  200. 			}, 
  201. 			[3] = { 
  202. 				label = "M02_TXT_ADV_SC_08_CH3", 
  203. 				target = 13,				 
  204. 				type = TYPE_BUTTON,				 
  205. 			}, 
  206. 		}, 
  207. 		sfx = "Progress", 
  208. 	}, 
  209. 	[9] = { 
  210. 		scenario = "M02_TXT_ADV_SC_09", 
  211. 		image = Image_sets.space, 
  212. 		choices = { 
  213. 			[1] = { 
  214. 				label = "M02_TXT_ADV_SC_09_CH1", 
  215. 				target = 9, 
  216. 				type = TYPE_BUTTON,				 
  217. 			}, 
  218. 			[2] = { 
  219. 				label = "M02_TXT_ADV_SC_09_CH2", 
  220. 				target = 10,				 
  221. 				type = TYPE_BUTTON,				 
  222. 			}, 
  223. 			[3] = { 
  224. 				label = "M02_TXT_ADV_SC_09_CH3", 
  225. 				target = 13,				 
  226. 				type = TYPE_BUTTON,				 
  227. 			}, 
  228. 		}, 
  229. 		sfx = "Neutral", 
  230. 	}, 
  231. 	[10] = { 
  232. 		scenario = "M02_TXT_ADV_SC_10", 
  233. 		image = Image_sets.space, 
  234. 		choices = { 
  235. 			[1] = { 
  236. 				label = "M02_TXT_ADV_SC_10_CH1", 
  237. 				target = 11, 
  238. 				type = TYPE_BUTTON,				 
  239. 			}, 
  240. 			[2] = { 
  241. 				label = "M02_TXT_ADV_SC_10_CH2", 
  242. 				target = 9,				 
  243. 				type = TYPE_BUTTON,				 
  244. 			}, 
  245. 			[3] = { 
  246. 				label = "M02_TXT_ADV_SC_10_CH3", 
  247. 				target = 13,				 
  248. 				type = TYPE_BUTTON,				 
  249. 			}, 
  250. 		}, 
  251. 		sfx = "Neutral", 
  252. 	}, 
  253. 	[11] = { 
  254. 		scenario = "M02_TXT_ADV_SC_11", 
  255. 		image = Image_sets.space, 
  256. 		choices = { 
  257. 			[1] = { 
  258. 				label = "M02_TXT_ADV_SC_11_CH1", 
  259. 				target = 12, 
  260. 				type = TYPE_BUTTON,				 
  261. 			}, 
  262. 			[2] = { 
  263. 				label = "M02_TXT_ADV_SC_11_CH2", 
  264. 				target = 9,				 
  265. 				type = TYPE_BUTTON,				 
  266. 			}, 
  267. 			[3] = { 
  268. 				label = "M02_TXT_ADV_SC_11_CH3", 
  269. 				target = 13,				 
  270. 				type = TYPE_BUTTON,				 
  271. 			}, 
  272. 		}, 
  273. 		sfx = "Neutral", 
  274. 	}, 
  275. 	[12] = { 
  276. 		scenario = "M02_TXT_ADV_SC_12", 
  277. 		image = Image_sets.space, 
  278. 		choices = { 
  279. 			[1] = { 
  280. 				label = "M02_TXT_ADV_SC_12_CH1", 
  281. 				target = 9, 
  282. 				type = TYPE_BUTTON,				 
  283. 			}, 
  284. 			[2] = { 
  285. 				label = "M02_TXT_ADV_SC_12_CH2", 
  286. 				target = 13,				 
  287. 				type = TYPE_BUTTON,				 
  288. 			}, 
  289. 		}, 
  290. 		sfx = "Scenario", 
  291. 	}, 
  292. 	[13] = { 
  293. 		scenario = "M02_TXT_ADV_SC_13", 
  294. 		image = Image_sets.space, 
  295. 		choices = { 
  296. 			[1] = { 
  297. 				label = "M02_TXT_ADV_SC_13_CH1", 
  298. 				target = 14, 
  299. 				type = TYPE_BUTTON,				 
  300. 			}, 
  301. 		}, 
  302. 		sfx = "Neutral", 
  303. 	}, 
  304. 	[14] = { 
  305. 		scenario = "M02_TXT_ADV_SC_14", 
  306. 		image = Image_sets.terror, 
  307. 		choices = { 
  308. 			[1] = { 
  309. 				label = "M02_TXT_ADV_SC_14_CH1", 
  310. 				target = 15, 
  311. 				type = TYPE_BUTTON,				 
  312. 			}, 
  313. 			[2] = { 
  314. 				label = "M02_TXT_ADV_SC_14_CH2", 
  315. 				target = 16,				 
  316. 				type = TYPE_BUTTON,				 
  317. 			}, 
  318. 			[3] = { 
  319. 				label = "M02_TXT_ADV_SC_14_CH3", 
  320. 				target = 17,				 
  321. 				type = TYPE_BUTTON,				 
  322. 			}, 
  323. 			[4] = { 
  324. 				label = "M02_TXT_ADV_SC_14_CH4", 
  325. 				target = 18,				 
  326. 				type = TYPE_BUTTON,				 
  327. 			}, 
  328. 		}, 
  329. 		sfx = "Progress", 
  330. 	}, 
  331. 	[15] = { 
  332. 		scenario = "M02_TXT_ADV_SC_15", 
  333. 		image = Image_sets.terror, 
  334. 		choices = { 
  335. 			[1] = { 
  336. 				label = "M02_TXT_ADV_SC_15_CH1", 
  337. 				target = 16, 
  338. 				type = TYPE_BUTTON,				 
  339. 			}, 
  340. 			[2] = { 
  341. 				label = "M02_TXT_ADV_SC_15_CH2", 
  342. 				target = 17,				 
  343. 				type = TYPE_BUTTON,				 
  344. 			}, 
  345. 			[3] = { 
  346. 				label = "M02_TXT_ADV_SC_15_CH3", 
  347. 				target = 18,				 
  348. 				type = TYPE_BUTTON,				 
  349. 			}, 
  350. 		}, 
  351. 		sfx = "Neutral", 
  352. 	}, 
  353. 	[16] = { 
  354. 		scenario = "M02_TXT_ADV_SC_16", 
  355. 		image = Image_sets.terror, 
  356. 		choices = { 
  357. 			[1] = { 
  358. 				label = "M02_TXT_ADV_SC_16_CH1", 
  359. 				target = 15, 
  360. 				type = TYPE_BUTTON,				 
  361. 			}, 
  362. 			[2] = { 
  363. 				label = "M02_TXT_ADV_SC_16_CH2", 
  364. 				target = 16,				 
  365. 				type = TYPE_BUTTON,				 
  366. 			}, 
  367. 			[3] = { 
  368. 				label = "M02_TXT_ADV_SC_16_CH3", 
  369. 				target = 17,				 
  370. 				type = TYPE_BUTTON,				 
  371. 			}, 
  372. 			[4] = { 
  373. 				label = "M02_TXT_ADV_SC_16_CH4", 
  374. 				target = 18,				 
  375. 				type = TYPE_BUTTON,				 
  376. 			}, 
  377. 		}, 
  378. 		sfx = "Neutral", 
  379. 	}, 
  380. 	[17] = { 
  381. 		scenario = "M02_TXT_ADV_SC_17", 
  382. 		image = Image_sets.terror, 
  383. 		choices = { 
  384. 			[1] = { 
  385. 				label = "M02_TXT_ADV_SC_17_CH1", 
  386. 				target = 15, 
  387. 				type = TYPE_BUTTON,				 
  388. 			}, 
  389. 			[2] = { 
  390. 				label = "M02_TXT_ADV_SC_17_CH2", 
  391. 				target = 16,				 
  392. 				type = TYPE_BUTTON,				 
  393. 			}, 
  394. 			[3] = { 
  395. 				label = "M02_TXT_ADV_SC_17_CH3", 
  396. 				target = 18,				 
  397. 				type = TYPE_BUTTON,				 
  398. 			}, 
  399. 		}, 
  400. 		sfx = "Neutral", 
  401. 	}, 
  402. 	[18] = { 
  403. 		scenario = "M02_TXT_ADV_SC_18", 
  404. 		image = Image_sets.terror, 
  405. 		choices = { 
  406. 			[1] = { 
  407. 				label = "M02_TXT_ADV_SC_18_CH1", 
  408. 				target = 19, 
  409. 				type = TYPE_BUTTON,				 
  410. 			}, 
  411. 		}, 
  412. 		sfx = "Neutral", 
  413. 	}, 
  414. 	[19] = { 
  415. 		scenario = "M02_TXT_ADV_SC_19", 
  416. 		image = Image_sets.beach, 
  417. 		choices = { 
  418. 			[1] = { 
  419. 				label = "M02_TXT_ADV_SC_19_CH1", 
  420. 				target = 20, 
  421. 				type = TYPE_BUTTON,				 
  422. 			}, 
  423. 			[2] = { 
  424. 				label = "M02_TXT_ADV_SC_19_CH2", 
  425. 				target = 21,				 
  426. 				type = TYPE_BUTTON,				 
  427. 			}, 
  428. 			[3] = { 
  429. 				label = "M02_TXT_ADV_SC_19_CH3", 
  430. 				target = 22,				 
  431. 				type = TYPE_BUTTON,				 
  432. 			}, 
  433. 			[4] = { 
  434. 				label = "M02_TXT_ADV_SC_19_CH4", 
  435. 				target = 23,				 
  436. 				type = TYPE_BUTTON,				 
  437. 			}, 
  438. 		}, 
  439. 		sfx = "Progress", 
  440. 	}, 
  441. 	[20] = { 
  442. 		scenario = "M02_TXT_ADV_SC_20", 
  443. 		image = Image_sets.beach, 
  444. 		choices = { 
  445. 			[1] = { 
  446. 				label = "M02_TXT_ADV_SC_20_CH1", 
  447. 				target = 19, 
  448. 				type = TYPE_BUTTON,				 
  449. 			}, 
  450. 		}, 
  451. 		sfx = "Neutral", 
  452. 	}, 
  453. 	[21] = { 
  454. 		scenario = "M02_TXT_ADV_SC_21", 
  455. 		image = Image_sets.beach, 
  456. 		choices = { 
  457. 			[1] = { 
  458. 				label = "M02_TXT_ADV_SC_21_CH1", 
  459. 				target = 20, 
  460. 				type = TYPE_BUTTON,				 
  461. 			}, 
  462. 			[2] = { 
  463. 				label = "M02_TXT_ADV_SC_21_CH2", 
  464. 				target = 22,				 
  465. 				type = TYPE_BUTTON,				 
  466. 			}, 
  467. 			[3] = { 
  468. 				label = "M02_TXT_ADV_SC_21_CH3", 
  469. 				target = 23,				 
  470. 				type = TYPE_BUTTON,				 
  471. 			}, 
  472. 		}, 
  473. 		sfx = "Neutral", 
  474. 	}, 
  475. 	[22] = { 
  476. 		scenario = "M02_TXT_ADV_SC_22", 
  477. 		image = Image_sets.beach, 
  478. 		choices = { 
  479. 			[1] = { 
  480. 				label = "M02_TXT_ADV_SC_22_CH1", 
  481. 				target = 20, 
  482. 				type = TYPE_BUTTON,				 
  483. 			}, 
  484. 			[2] = { 
  485. 				label = "M02_TXT_ADV_SC_22_CH2", 
  486. 				target = 21,				 
  487. 				type = TYPE_BUTTON,				 
  488. 			}, 
  489. 			[3] = { 
  490. 				label = "M02_TXT_ADV_SC_22_CH3", 
  491. 				target = 23,				 
  492. 				type = TYPE_BUTTON,				 
  493. 			}, 
  494. 		}, 
  495. 		sfx = "Neutral", 
  496. 	}, 
  497. 	[23] = { 
  498. 		scenario = "M02_TXT_ADV_SC_23", 
  499. 		image = Image_sets.beach, 
  500. 		choices = { 
  501. 			[1] = { 
  502. 				label = "M02_TXT_ADV_SC_23_CH1", 
  503. 				target = 24, 
  504. 				type = TYPE_BUTTON,				 
  505. 			}, 
  506. 			[2] = { 
  507. 				label = "M02_TXT_ADV_SC_23_CH2", 
  508. 				target = 25,				 
  509. 				type = TYPE_BUTTON,				 
  510. 			}, 
  511. 		}, 
  512. 		sfx = "Neutral", 
  513. 	}, 
  514. 	[24] = { 
  515. 		scenario = "M02_TXT_ADV_SC_24", 
  516. 		image = Image_sets.beach, 
  517. 		choices = { 
  518. 			[1] = { 
  519. 				label = "M02_TXT_ADV_SC_24_CH1", 
  520. 				target = 24, 
  521. 				type = TYPE_BUTTON,				 
  522. 			}, 
  523. 			[2] = { 
  524. 				label = "M02_TXT_ADV_SC_24_CH2", 
  525. 				target = 25,				 
  526. 				type = TYPE_BUTTON,				 
  527. 			}, 
  528. 		}, 
  529. 		sfx = "Neutral", 
  530. 	}, 
  531. 	[25] = { 
  532. 		scenario = "M02_TXT_ADV_SC_25", 
  533. 		image = Image_sets.arch, 
  534. 		choices = { 
  535. 			[1] = { 
  536. 				label = "M02_TXT_ADV_SC_25_CH1", 
  537. 				target = 26, 
  538. 				type = TYPE_BUTTON,				 
  539. 			}, 
  540. 			[2] = { 
  541. 				label = "M02_TXT_ADV_SC_25_CH2", 
  542. 				target = 34,				 
  543. 				type = TYPE_BUTTON,				 
  544. 			}, 
  545. 			[3] = { 
  546. 				label = "M02_TXT_ADV_SC_25_CH3", 
  547. 				target = 29,				 
  548. 				type = TYPE_BUTTON,				 
  549. 			}, 
  550. 		}, 
  551. 		sfx = "Progress", 
  552. 	}, 
  553. 	[26] = { 
  554. 		scenario = "M02_TXT_ADV_SC_26", 
  555. 		image = Image_sets.arch, 
  556. 		choices = { 
  557. 			[1] = { 
  558. 				label = "M02_TXT_ADV_SC_26_CH1", 
  559. 				target = 27, 
  560. 				type = TYPE_BUTTON,				 
  561. 			}, 
  562. 			[2] = { 
  563. 				label = "M02_TXT_ADV_SC_26_CH2", 
  564. 				target = 34,				 
  565. 				type = TYPE_BUTTON,				 
  566. 			}, 
  567. 			[3] = { 
  568. 				label = "M02_TXT_ADV_SC_26_CH3", 
  569. 				target = 29,				 
  570. 				type = TYPE_BUTTON,				 
  571. 			}, 
  572. 		}, 
  573. 		sfx = "Neutral", 
  574. 	}, 
  575. 	[27] = { 
  576. 		scenario = "M02_TXT_ADV_SC_27", 
  577. 		image = Image_sets.arch, 
  578. 		choices = { 
  579. 			[1] = { 
  580. 				label = "M02_TXT_ADV_SC_27_CH1", 
  581. 				target = 28, 
  582. 				type = TYPE_BUTTON,				 
  583. 			}, 
  584. 			[2] = { 
  585. 				label = "M02_TXT_ADV_SC_27_CH2", 
  586. 				target = 34,				 
  587. 				type = TYPE_BUTTON,				 
  588. 			}, 
  589. 			[3] = { 
  590. 				label = "M02_TXT_ADV_SC_27_CH3", 
  591. 				target = 29,				 
  592. 				type = TYPE_BUTTON,				 
  593. 			}, 
  594. 		}, 
  595. 		sfx = "Neutral", 
  596. 	}, 
  597. 	[28] = { 
  598. 		scenario = "M02_TXT_ADV_SC_28", 
  599. 		image = Image_sets.arch, 
  600. 		choices = { 
  601. 			[1] = { 
  602. 				label = "M02_TXT_ADV_SC_28_CH1", 
  603. 				target = 29, 
  604. 				type = TYPE_BUTTON,				 
  605. 			}, 
  606. 			[2] = { 
  607. 				label = "M02_TXT_ADV_SC_28_CH2", 
  608. 				target = 34,				 
  609. 				type = TYPE_BUTTON,				 
  610. 			}, 
  611. 			[3] = { 
  612. 				label = "M02_TXT_ADV_SC_28_CH3", 
  613. 				target = 29,				 
  614. 				type = TYPE_BUTTON,				 
  615. 			}, 
  616. 		}, 
  617. 		sfx = "Neutral", 
  618. 	}, 
  619. 	[29] = { 
  620. 		scenario = "M02_TXT_ADV_SC_29", 
  621. 		image = Image_sets.arch, 
  622. 		choices = { 
  623. 			[1] = { 
  624. 				label = "M02_TXT_ADV_SC_29_CH1", 
  625. 				target = 31, 
  626. 				type = TYPE_BUTTON,				 
  627. 			}, 
  628. 			[2] = { 
  629. 				label = "M02_TXT_ADV_SC_29_CH2", 
  630. 				target = 30,				 
  631. 				type = TYPE_BUTTON,				 
  632. 			}, 
  633. 		}, 
  634. 		sfx = "Neutral", 
  635. 	}, 
  636. 	[30] = { 
  637. 		scenario = "M02_TXT_ADV_SC_30", 
  638. 		image = Image_sets.arch, 
  639. 		choices = { 
  640. 			[1] = { 
  641. 				label = "M02_TXT_ADV_SC_30_CH1", 
  642. 				target = 31, 
  643. 				type = TYPE_BUTTON,				 
  644. 			}, 
  645. 			[2] = { 
  646. 				label = "M02_TXT_ADV_SC_30_CH2", 
  647. 				target = 29,				 
  648. 				type = TYPE_BUTTON,				 
  649. 			}, 
  650. 		}, 
  651. 		sfx = "Neutral", 
  652. 	}, 
  653. 	[31] = { 
  654. 		scenario = "M02_TXT_ADV_SC_31", 
  655. 		image = Image_sets.arch, 
  656. 		choices = { 
  657. 			[1] = { 
  658. 				label = "M02_TXT_ADV_SC_31_CH1", 
  659. 				target = 32, 
  660. 				type = TYPE_BUTTON,				 
  661. 			}, 
  662. 			[2] = { 
  663. 				label = "M02_TXT_ADV_SC_31_CH2", 
  664. 				target = 29,				 
  665. 				type = TYPE_BUTTON,				 
  666. 			}, 
  667. 		}, 
  668. 		sfx = "Neutral", 
  669. 	}, 
  670. 	[32] = { 
  671. 		scenario = "M02_TXT_ADV_SC_32", 
  672. 		image = Image_sets.arch, 
  673. 		choices = { 
  674. 			[1] = { 
  675. 				label = "M02_TXT_ADV_SC_32_CH1", 
  676. 				target = 35, 
  677. 				type = TYPE_BUTTON,				 
  678. 			}, 
  679. 			[2] = { 
  680. 				label = "M02_TXT_ADV_SC_32_CH2", 
  681. 				target = 33,				 
  682. 				type = TYPE_BUTTON,				 
  683. 			}, 
  684. 		}, 
  685. 		sfx = "Neutral", 
  686. 	}, 
  687. 	[33] = { 
  688. 		scenario = "M02_TXT_ADV_SC_33", 
  689. 		image = Image_sets.arch, 
  690. 		choices = { 
  691. 			[1] = { 
  692. 				label = "M02_TXT_ADV_SC_33_CH1", 
  693. 				target = 35, 
  694. 				type = TYPE_BUTTON,				 
  695. 			}, 
  696. 			[2] = { 
  697. 				label = "M02_TXT_ADV_SC_33_CH2", 
  698. 				target = 33,				 
  699. 				type = TYPE_BUTTON,				 
  700. 			}, 
  701. 		}, 
  702. 		sfx = "Neutral", 
  703. 	}, 
  704. 	[34] = { 
  705. 		scenario = "M02_TXT_ADV_SC_34", 
  706. 		image = Image_sets.arch, 
  707. 		choices = { 
  708. 			[1] = { 
  709. 				label = "M02_TXT_ADV_SC_34_CH1", 
  710. 				target = 26, 
  711. 				type = TYPE_BUTTON,				 
  712. 			}, 
  713. 			[2] = { 
  714. 				label = "M02_TXT_ADV_SC_34_CH2", 
  715. 				target = 29,				 
  716. 				type = TYPE_BUTTON,				 
  717. 			}, 
  718. 		}, 
  719. 		sfx = "Neutral", 
  720. 	}, 
  721. 	[35] = { 
  722. 		scenario = "M02_TXT_ADV_SC_35", 
  723. 		image = Image_sets.arch, 
  724. 		choices = { 
  725. 			[1] = { 
  726. 				label = "M02_TXT_ADV_SC_35_CH1", 
  727. 				target = 36, 
  728. 				type = TYPE_BUTTON,				 
  729. 			}, 
  730. 			[2] = { 
  731. 				label = "M02_TXT_ADV_SC_35_CH2", 
  732. 				target = 33,				 
  733. 				type = TYPE_BUTTON,				 
  734. 			}, 
  735. 		}, 
  736. 		sfx = "Neutral", 
  737. 	}, 
  738. 	[36] = { 
  739. 		scenario = "M02_TXT_ADV_SC_36", 
  740. 		image = Image_sets.kill_enter, 
  741. 		choices = { 
  742. 			[1] = { 
  743. 				label = "M02_TXT_ADV_SC_36_CH1", 
  744. 				target = 38, 
  745. 				type = TYPE_BUTTON,				 
  746. 			}, 
  747. 			[2] = { 
  748. 				label = "M02_TXT_ADV_SC_36_CH2", 
  749. 				target = 37,				 
  750. 				type = TYPE_BUTTON,				 
  751. 			}, 
  752. 		}, 
  753. 		sfx = "Neutral", 
  754. 	}, 
  755. 	[37] = { 
  756. 		scenario = "M02_TXT_ADV_SC_37", 
  757. 		image = Image_sets.kill_enter, 
  758. 		choices = { 
  759. 			[1] = { 
  760. 				label = "M02_TXT_ADV_SC_37_CH1", 
  761. 				target = 37, 
  762. 				type = TYPE_BUTTON,				 
  763. 			}, 
  764. 			[2] = { 
  765. 				label = "M02_TXT_ADV_SC_37_CH2", 
  766. 				target = 38,				 
  767. 				type = TYPE_BUTTON,				 
  768. 			}, 
  769. 		}, 
  770. 		sfx = "Neutral", 
  771. 	}, 
  772. 	[38] = { 
  773. 		scenario = "M02_TXT_ADV_SC_38", 
  774. 		image = Image_sets.matt_enter, 
  775. 		choices = { 
  776. 			[1] = { 
  777. 				label = "M02_TXT_ADV_SC_38_CH1", 
  778. 				target = 39, 
  779. 				type = TYPE_BUTTON,				 
  780. 			}, 
  781. 			[2] = { 
  782. 				label = "M02_TXT_ADV_SC_38_CH2", 
  783. 				target = 38,				 
  784. 				type = TYPE_BUTTON,				 
  785. 			}, 
  786. 		}, 
  787. 		sfx = "Neutral", 
  788. 	}, 
  789. 	[39] = { 
  790. 		scenario = "M02_TXT_ADV_SC_39", 
  791. 		image = Image_sets.sizing, 
  792. 		choices = { 
  793. 			[1] = { 
  794. 				label = "M02_TXT_ADV_SC_39_CH1", 
  795. 				target = 39, 
  796. 				type = TYPE_BUTTON,				 
  797. 			}, 
  798. 			[2] = { 
  799. 				label = "M02_TXT_ADV_SC_39_CH2", 
  800. 				target = 40,				 
  801. 				type = TYPE_BUTTON,				 
  802. 			}, 
  803. 		}, 
  804. 		sfx = "Neutral", 
  805. 	}, 
  806. 	[40] = { 
  807. 		scenario = "M02_TXT_ADV_SC_40", 
  808. 		image = Image_sets.sizing, 
  809. 		choices = { 
  810. 			[1] = { 
  811. 				label = "M02_TXT_ADV_SC_40_CH1", 
  812. 				target = 39, 
  813. 				type = TYPE_BUTTON,				 
  814. 			}, 
  815. 			[2] = { 
  816. 				label = "M02_TXT_ADV_SC_40_CH2", 
  817. 				target = 42,				 
  818. 				type = TYPE_BUTTON,				 
  819. 			}, 
  820. 			[3] = { 
  821. 				label = "M02_TXT_ADV_SC_40_CH3", 
  822. 				target = 39,				 
  823. 				type = TYPE_BUTTON,				 
  824. 			}, 
  825. 		}, 
  826. 		sfx = "Neutral", 
  827. 	}, 
  828. 	[41] = { 
  829. 		scenario = "M02_TXT_ADV_SC_41", 
  830. 		image = Image_sets.kill_punch, 
  831. 		choices = { 
  832. 			[1] = { 
  833. 				label = "M02_TXT_ADV_SC_41_CH1", 
  834. 				target = 41, 
  835. 				type = TYPE_BUTTON,				 
  836. 			}, 
  837. 			[2] = { 
  838. 				label = "M02_TXT_ADV_SC_41_CH2", 
  839. 				target = 42,				 
  840. 				type = TYPE_BUTTON,				 
  841. 			}, 
  842. 			[3] = { 
  843. 				label = "M02_TXT_ADV_SC_41_CH3", 
  844. 				target = 39,				 
  845. 				type = TYPE_BUTTON,				 
  846. 			}, 
  847. 		}, 
  848. 		sfx = "Neutral", 
  849. 	}, 
  850. 	[42] = { 
  851. 		scenario = "M02_TXT_ADV_SC_42", 
  852. 		image = Image_sets.matt_punch, 
  853. 		choices = { 
  854. 			[1] = { 
  855. 				label = "M02_TXT_ADV_SC_42_CH1", 
  856. 				target = 43, 
  857. 				type = TYPE_BUTTON,				 
  858. 			}, 
  859. 			[2] = { 
  860. 				label = "M02_TXT_ADV_SC_42_CH2", 
  861. 				target = 44,				 
  862. 				type = TYPE_BUTTON,				 
  863. 			}, 
  864. 			[3] = { 
  865. 				label = "M02_TXT_ADV_SC_42_CH3", 
  866. 				target = 39,				 
  867. 				type = TYPE_BUTTON,				 
  868. 			}, 
  869. 		}, 
  870. 		sfx = "Neutral", 
  871. 	}, 
  872. 	[43] = { 
  873. 		scenario = "M02_TXT_ADV_SC_43", 
  874. 		image = Image_sets.kill_punch, 
  875. 		choices = { 
  876. 			[1] = { 
  877. 				label = "M02_TXT_ADV_SC_43_CH1", 
  878. 				target = 41, 
  879. 				type = TYPE_BUTTON,				 
  880. 			}, 
  881. 			[2] = { 
  882. 				label = "M02_TXT_ADV_SC_43_CH2", 
  883. 				target = 42,				 
  884. 				type = TYPE_BUTTON, 
  885. 			}, 
  886. 			[2] = { 
  887. 				label = "M02_TXT_ADV_SC_43_CH3", 
  888. 				target = 39,				 
  889. 				type = TYPE_BUTTON,				 
  890. 			}, 
  891. 		}, 
  892. 		sfx = "Neutral", 
  893. 	}, 
  894. 	[44] = { 
  895. 		scenario = "M02_TXT_ADV_SC_44", 
  896. 		image = Image_sets.matt_punch, 
  897. 		choices = { 
  898. 			[1] = { 
  899. 				label = "M02_TXT_ADV_SC_44_CH1", 
  900. 				target = 43, 
  901. 				type = TYPE_BUTTON,				 
  902. 			}, 
  903. 			[2] = { 
  904. 				label = "M02_TXT_ADV_SC_44_CH2", 
  905. 				target = 45,				 
  906. 				type = TYPE_BUTTON,				 
  907. 			}, 
  908. 			[3] = { 
  909. 				label = "M02_TXT_ADV_SC_44_CH3", 
  910. 				target = 39,				 
  911. 				type = TYPE_BUTTON,				 
  912. 			}, 
  913. 		}, 
  914. 		sfx = "Neutral", 
  915. 	}, 
  916. 	[45] = { 
  917. 		scenario = "M02_TXT_ADV_SC_45", 
  918. 		image = Image_sets.matt_win, 
  919. 		choices = { 
  920. 			[1] = { 
  921. 				label = "M02_TXT_ADV_SC_45_CH1", 
  922. 				target = 46, 
  923. 				type = TYPE_BUTTON,				 
  924. 			}, 
  925. 			[2] = { 
  926. 				label = "M02_TXT_ADV_SC_45_CH2", 
  927. 				target = 47,				 
  928. 				type = TYPE_BUTTON,				 
  929. 			}, 
  930. 		}, 
  931. 		sfx = "Neutral", 
  932. 	}, 
  933. 	[46] = { 
  934. 		scenario = "M02_TXT_ADV_SC_46", 
  935. 		image = Image_sets.matt_win, 
  936. 		choices = { 
  937. 			[1] = { 
  938. 				label = "M02_TXT_ADV_SC_46_CH1", 
  939. 				target = 46, 
  940. 				type = TYPE_BUTTON,				 
  941. 			}, 
  942. 			[2] = { 
  943. 				label = "M02_TXT_ADV_SC_46_CH2", 
  944. 				target = 47,				 
  945. 				type = TYPE_BUTTON,				 
  946. 			}, 
  947. 		}, 
  948. 		sfx = "Neutral", 
  949. 	}, 
  950. 	[47] = { 
  951. 		scenario = "M02_TXT_ADV_SC_47", 
  952. 		image = Image_sets.phone, 
  953. 		choices = { 
  954. 			[1] = { 
  955. 				label = "M02_TXT_ADV_SC_47_CH1", 
  956. 				target = -1, 
  957. 				type = TYPE_BUTTON,				 
  958. 			}, 
  959. 		}, 
  960. 		sfx = "Win", 
  961. 	}, 
  962. 	 
  963. } 
  964. 	 
  965. local COLOR_TEXT_ADVENTURE_PRIMARY = {R = 220/255, G = 220/255, B = 220/255} 
  966. local COLOR_TEXT_ADVENTURE_SECONDARY = {R = 120/255, G = 120/255, B = 120/255} 
  967. local COLOR_TEXT_ADVENTURE_TERTIARY = {R = 90/255, G = 90/255, B = 90/255} 
  968.  
  969. local Text_buffer = {} 
  970. local Max_text_buffer_length = 6 
  971. local Input_tracker 
  972. local Mouse_input_tracker 
  973. local Msn_text_adventure_doc_handle = -1 
  974. local Cur_scen = 1 
  975. local Cur_audio_id = -1 
  976. local Action = {} 
  977. local Image_h = -1 
  978. local Prev_image = {} 
  979. local Image_frames_table = -1 
  980.  
  981. Msn_text_adventure_list = -1 
  982.  
  983. function msn_text_adventure_init() 
  984. 	pause_map_dump() 
  985.  
  986. 	--start audio 
  987. 	ui_audio_post_event("Music_Text_Adv")  -- This is overriding our conversations 
  988. 	 
  989. 	--Get doc handle 
  990. 	Msn_text_adventure_doc_handle = vint_document_find("msn_text_adventure") 
  991.  
  992. 	--Handle Input Tracker 
  993. 	Input_tracker = Vdo_input_tracker:new() 
  994. 	Input_tracker:add_input("nav_up", "msn_text_adventure_nav_up", 50) 
  995. 	Input_tracker:add_input("nav_down", "msn_text_adventure_nav_down", 50) 
  996. 	Input_tracker:add_input("select", "msn_text_adventure_button_a", 50) 
  997. 	Input_tracker:subscribe(true)	 
  998.  
  999. 		-- Add mouse input subscriptions for the PC 
  1000. 	if game_get_platform() == "PC" then 
  1001. 		Mouse_input_tracker = Vdo_input_tracker:new() 
  1002. 	end 
  1003. 	 
  1004. 	--Setup megalist 
  1005. 	Msn_text_adventure_list = Vdo_mega_list:new("choice_list", 0, Msn_text_adventure_doc_handle, "msn_text_adventure.lua", "Msn_text_adventure_list") 
  1006. 	Msn_text_adventure_list:set_highlight_color(COLOR_TEXT_ADVENTURE_TERTIARY,COLOR_STORE_VEHICLE_SECONDARY,COLOR_STORE_VEHICLE_TERTIARY) 
  1007. 	 
  1008. 	--set up image 
  1009. 	Image_h = vint_object_find("image", 0, Msn_text_adventure_doc_handle) 
  1010. 	 
  1011. 	--Hide base text 
  1012. 	local base_text = vint_object_find("base_text", 0, Msn_text_adventure_doc_handle) 
  1013. 	vint_set_property(base_text, "visible", false)	 
  1014. 	 
  1015. 	local cursor_blink = Vdo_anim_object:new("cursor_blink", 0, Msn_text_adventure_doc_handle) 
  1016. 	cursor_blink:play(0) 
  1017. 	 
  1018. 	msn_text_adventure_update(Data) 
  1019. end 
  1020.  
  1021. function msn_text_adventure_cleanup() 
  1022. 	for i = 1, #Text_buffer do 
  1023. 		Text_buffer[i]:object_destroy() 
  1024. 	end 
  1025. 	 
  1026. 	vint_bitmap_animator_unregister_animation( Image_h ) 
  1027. 	 
  1028. 	for idx, val in pairs(Image_sets) do 
  1029. 		if val.sheet ~= -1 and val.sheet ~= nil then 
  1030. 			game_peg_unload(val.sheet) 
  1031. 		end 
  1032. 	end 
  1033. 	 
  1034. 	--stop audio 
  1035. 	ui_audio_post_event("Music_Text_Adv_Stop") 
  1036. 	 
  1037. 	pause_map_restore() 
  1038. end 
  1039.  
  1040. function msn_text_adventure_update(data)	 
  1041. 	--show image 
  1042. 	if Prev_image ~= Data[Cur_scen].image then 
  1043. 		vint_set_property(Image_h, "visible", false) 
  1044. 		 
  1045. 		vint_bitmap_animator_unregister_animation( Image_h ) 
  1046. 		 
  1047. 		if Prev_image.sheet ~= -1 and Prev_image.sheet ~= nil then 
  1048. 			game_peg_unload(Prev_image.sheet) 
  1049. 		end 
  1050. 		 
  1051. 		Image_frames_table = Data[Cur_scen].image.frames 
  1052. 		game_peg_load_with_cb("msn_text_adventure_peg_load_complete",1, Data[Cur_scen].image.sheet) 
  1053. 		Prev_image = Data[Cur_scen].image 
  1054. 	end 
  1055. 	 
  1056. 	local base_text = vint_object_find("base_txt", 0, Msn_text_adventure_doc_handle) 
  1057. 	vint_set_property(base_text, "visible", false) 
  1058. 	 
  1059. 	--If we're on the first page play typing audio 
  1060. 	if Cur_scen == 1 then 
  1061. 		audio_stop(Cur_audio_id) 
  1062. 		Cur_audio_id = audio_object_post_event("Text_Adventure", "Mission_16_Text_Adventure", Data[Cur_scen].sfx) 
  1063. 	end 
  1064. 	 
  1065. 	--Make current text first in the queue 
  1066. 	if Text_buffer[1] ~= nil then 
  1067. 		for i = Max_text_buffer_length, 1, -1 do 
  1068. 			if Text_buffer[i] ~= nil then 
  1069. 				Text_buffer[i+1] = Text_buffer[i] 
  1070. 			end 
  1071. 		end 
  1072. 	end 
  1073.  
  1074. 	Text_buffer[1] = Vdo_base_object:clone(base_text)	 
  1075. 	Text_buffer[1]:set_text(data[Cur_scen].scenario)	 
  1076. 	Text_buffer[1]:set_visible(true) 
  1077. 	 
  1078. 	local move_width, move_height = Text_buffer[1]:get_actual_size() 
  1079. 	 
  1080. 	local text_x, text_y  
  1081.  
  1082. 	--Scroll text up if text exist 
  1083. 	if Text_buffer[2] ~= nil then 
  1084. 		text_x, text_y = Text_buffer[2]:get_anchor() 
  1085. 		Text_buffer[2]:set_anchor(text_x, text_y - move_height) 
  1086. 		Text_buffer[2]:set_color(COLOR_TEXT_ADVENTURE_TERTIARY.R,COLOR_TEXT_ADVENTURE_TERTIARY.G,COLOR_TEXT_ADVENTURE_TERTIARY.B) 
  1087. 		 
  1088. 		--Delete items that go off the screen 
  1089. 		if text_y < -200 then 
  1090. 			Text_buffer[2]:object_destroy() 
  1091. 		end 
  1092. 	end 
  1093. 	 
  1094. 	--Populate megalist	 
  1095. 	Msn_text_adventure_list:draw_items(data[Cur_scen].choices, 1, 500, 4, LIST_FONT_SCALE, true, false) 
  1096. 		 
  1097. 	--Update inputs if on pc... 
  1098. 	if game_get_platform() == "PC" then 
  1099. 		Mouse_input_tracker:remove_all() 
  1100. 		Msn_text_adventure_list:add_mouse_inputs("msn_text_adventure", Mouse_input_tracker) 
  1101. 		Mouse_input_tracker:subscribe(true) 
  1102. 	end 
  1103. end 
  1104.  
  1105. function msn_text_adventure_peg_load_complete(image_set) 
  1106. 	vint_set_property(Image_h, "visible", true) 
  1107. 	--vint_set_property(Image_h, "image", Data[Cur_scen].image.frame_1) 
  1108. 	--Image_frames_table = {Data[Cur_scen].image.frame_1, Data[Cur_scen].image.frame_2} 
  1109. 	--Image_frames_table = {"ui_store_lineup_mugshot_07", "ui_store_lineup_mugshot_08"} 
  1110. 	vint_bitmap_animator_register_animation(--[[target handle]]Image_h, --[[loop type see game_ui_globals.lua]]ANIMATED_BITMAP_PLAYBACK_TYPE_LOOPING, --[[playback reverse]] false, 
  1111. 										--[[frametime]].7, --[[duration (negative means forever)]]-1.0, --[[start paused]]false, --[[starting frame]] 1, --[[frames table]]Image_frames_table, --[[end event]] "")	 
  1112. end 
  1113.  
  1114. function msn_text_adventure_button_a(event, acceleration) 
  1115. 	if Msn_text_adventure_list:list_is_playing() == false then 
  1116. 		--What choice did they pick? 
  1117. 		local user_choice = Msn_text_adventure_list:get_selection() 
  1118. 		local previous_scen = Cur_scen 
  1119. 		 
  1120. 		--Set cur_scene to target 
  1121. 		Cur_scen = Data[Cur_scen].choices[user_choice].target 
  1122. 		 
  1123. 		if Cur_scen == -1 then 
  1124. 			msn_text_adventure_set_screen(47) -- count the success as a 35th screen 
  1125. 			pop_screen() 
  1126. 			return 
  1127. 		end 
  1128. 		 
  1129. 		msn_text_adventure_set_screen(Cur_scen) 
  1130. 		 
  1131. 		audio_stop(Cur_audio_id) 
  1132. 		Cur_audio_id = audio_object_post_event("Text_Adventure", "Mission_16_Text_Adventure", Data[Cur_scen].sfx) 
  1133. 			 
  1134. 		--What is the string for that choice? 
  1135. 		Action = Msn_text_adventure_list:return_selected_data() 
  1136. 		 
  1137. 		Text_buffer[1]:set_text(Action.label) 
  1138. 		 
  1139. 		if Text_buffer[2] ~= nil then 
  1140. 			Text_buffer[2]:object_destroy() 
  1141. 		end 
  1142. 		 
  1143. 		--Update text 
  1144. 		msn_text_adventure_update(Data) 
  1145. 	end	 
  1146. end 
  1147.  
  1148. function msn_text_adventure_nav_up(event, acceleration) 
  1149. 	Msn_text_adventure_list:move_cursor(-1) 
  1150. 	Cur_audio_id = audio_object_post_event("Text_Adventure", "Mission_16_Text_Adventure", "Navigation") 
  1151. end 
  1152.  
  1153. function msn_text_adventure_nav_down(event, acceleration) 
  1154. 	Msn_text_adventure_list:move_cursor(1) 
  1155. 	Cur_audio_id = audio_object_post_event("Text_Adventure", "Mission_16_Text_Adventure", "Navigation") 
  1156. end 
  1157.  
  1158. ------------------------------------------------------------------------------- 
  1159. -- Mouse inputs 
  1160. -- 
  1161.  
  1162. function msn_text_adventure_mouse_click(event, target_handle) 
  1163. 	if Msn_text_adventure_list:list_is_playing() == false then 
  1164. 		--Click item in megalist... 
  1165. 		local new_index = Msn_text_adventure_list:get_button_index(target_handle) 
  1166. 		if new_index ~= 0 then 
  1167. 			-- Enter an option if the target_handle is in the List 
  1168. 			Msn_text_adventure_list:set_selection(new_index) 
  1169. 			msn_text_adventure_button_a() 
  1170. 		end 
  1171. 	end 
  1172. end 
  1173.  
  1174. function msn_text_adventure_mouse_move(event, target_handle) 
  1175. 	if Msn_text_adventure_list:list_is_playing() == false then 
  1176. 		--nav item in megalist... 
  1177. 		local new_index = Msn_text_adventure_list:get_button_index(target_handle) 
  1178. 		if new_index ~= 0 then 
  1179. 			-- Set the button as the new selected highlight 
  1180. 			Msn_text_adventure_list:set_selection(new_index) 
  1181. 			Msn_text_adventure_list:move_cursor(0, true) 
  1182. 		end 
  1183. 	end 
  1184. end 
  1185.  
  1186.