Guest User

Untitled

a guest
Dec 29th, 2014
201
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 00000200: return;
  2.  
  3. 0000021B: if (!Read(0) unknown_operation 1000) {
  4. 00000223: kernel_unknown_0x350();
  5. 00000226: }
  6. 00000227: if (!Read(1010)) {
  7. 0000022C: kernel_unknown_0x34B();
  8. 00000231: } else {
  9. 00000232: if (!Read(1011)) {
  10. 00000237: kernel_unknown_0x34B();
  11. 0000023C: } else {
  12. 0000023D: if (!Read(1012)) {
  13. 00000242: kernel_unknown_0x34B();
  14. 00000247: } else {
  15. 00000248: if (!Read(1013)) {
  16. 0000024D: kernel_unknown_0x34B();
  17. 00000252: } else {
  18. 00000253: if (!Read(1014)) {
  19. 00000258: kernel_unknown_0x34B();
  20. 00000258: }
  21. 00000258: }
  22. 00000258: }
  23. 00000258: }
  24. 0000025B: }
  25. 0000025C: if (!Read(6787)) {
  26. 00000261: kernel_unknown_0x34C();
  27. 00000266: } else {
  28. 00000267: if (!Read(6802)) {
  29. 0000026C: kernel_unknown_0x34C();
  30. 0000026C: }
  31. 0000026F: }
  32. 00000270: if (!Read(0) unknown_operation 1199) {
  33. 00000278: if (!Read(984)) {
  34. 0000027D: if (!Read(7224)) {
  35. 00000282: if (!Read(7220)) {
  36. 00000287: kernel_unknown_0x349();
  37. 0000028C: } else {
  38. 0000028D: kernel_unknown_0x349();
  39. 0000028D: }
  40. 00000292: } else {
  41. 00000293: kernel_unknown_0x349();
  42. 00000293: }
  43. 00000298: } else {
  44. 00000299: kernel_unknown_0x349();
  45. 00000299: }
  46. 0000029E: } else {
  47. 0000029F: if (!Read(0) unknown_operation 1197) {
  48. 000002A7: kernel_unknown_0x349();
  49. 000002AC: } else {
  50. 000002AD: if (!Read(0) unknown_operation 1000) {
  51. 000002B5: kernel_unknown_0x349();
  52. 000002BA: } else {
  53. 000002BB: if (!Read(0) unknown_operation 638) {
  54. 000002C3: kernel_unknown_0x349();
  55. 000002C3: }
  56. 000002C3: }
  57. 000002C3: }
  58. 000002C6: }
  59. 000002C7: if (Read(5) != 0) {
  60. 000002CF: if (Read(987)) {
  61. 000002D5: if (!Read(7228)) {
  62. 000002DA: kernel_unknown_0x300();
  63. 000002DD: }
  64. 000002DD: }
  65. 000002DE: if (Read(976)) {
  66. 000002E4: kernel_unknown_0x300();
  67. 000002E7: }
  68. 000002E8: if (!Read(979)) {
  69. 000002ED: kernel_unknown_0x300();
  70. 000002F0: }
  71. 000002F1: if (Read(977)) {
  72. 000002F7: kernel_unknown_0x300();
  73. 000002FA: }
  74. 000002FB: if (Read(849)) {
  75. 00000301: kernel_unknown_0x300();
  76. 00000304: }
  77. 00000305: if (!Read(0) < 1580) {
  78. 0000030D: kernel_unknown_0x300();
  79. 00000310: }
  80. 00000311: kernel_unknown_0x300();
  81. 00000311: kernel_unknown_0x300();
  82. 00000311: kernel_unknown_0x300();
  83. 00000311: if (Read(984)) {
  84. 00000323: if (!Read(0) unknown_operation 1580) {
  85. 0000032B: kernel_unknown_0x300();
  86. 0000032E: }
  87. 0000032E: }
  88. 0000032F: if (!Read(6803)) {
  89. 00000334: kernel_unknown_0x300();
  90. 00000337: }
  91. 00000338: if (!Read(1008)) {
  92. 0000033D: kernel_unknown_0x300();
  93. 00000340: }
  94. 00000341: if (!Read(1010)) {
  95. 00000346: kernel_unknown_0x300();
  96. 00000349: }
  97. 0000034A: if (!Read(1011)) {
  98. 0000034F: kernel_unknown_0x300();
  99. 00000352: }
  100. 00000353: if (!Read(1012)) {
  101. 00000358: kernel_unknown_0x300();
  102. 0000035B: }
  103. 0000035C: if (!Read(1013)) {
  104. 00000361: kernel_unknown_0x300();
  105. 00000364: }
  106. 00000365: if (!Read(1014)) {
  107. 0000036A: kernel_unknown_0x300();
  108. 0000036D: }
  109. 0000036E: if (Read(3711)) {
  110. 00000374: if (!Read(1016)) {
  111. 00000379: kernel_unknown_0x300();
  112. 0000037C: }
  113. 0000037C: }
  114. 0000037D: if (!Read(1018)) {
  115. 00000382: kernel_unknown_0x300();
  116. 00000385: }
  117. 00000386: if (!Read(1020)) {
  118. 0000038B: kernel_unknown_0x300();
  119. 0000038E: }
  120. 0000038F: if (!Read(6787)) {
  121. 00000394: kernel_unknown_0x300();
  122. 00000397: }
  123. 00000398: if (!Read(6802)) {
  124. 0000039D: kernel_unknown_0x300();
  125. 000003A0: }
  126. 000003A0: kernel_unknown_0x320();
  127. 000003A2: if (Read(3711)) {
  128. 000003A8: kernel_unknown_0x300();
  129. 000003AB: }
  130. 000003AB: kernel_unknown_0x302();
  131. 000003AD: if (Read(6) != 0) {
  132. 000003B5: if (!Read(6787)) {
  133. 000003BA: kernel_unknown_0x300();
  134. 000003BA: kernel_unknown_0x30C();
  135. 000003C0: } else {
  136. 000003C1: if (!Read(6802)) {
  137. 000003C6: kernel_unknown_0x300();
  138. 000003C6: kernel_unknown_0x30C();
  139. 000003C6: }
  140. 000003CA: }
  141. 000003CC: } else {
  142. 000003CD: if (Read(6) != 1) {
  143. 000003D5: kernel_unknown_0x308();
  144. 000003D5: kernel_unknown_0x309();
  145. 000003D5: SetActiveEntityDirectionAndFacing(0);
  146. 000003E6: } else {
  147. 000003E7: if (Read(6) != 2) {
  148. 000003EF: kernel_unknown_0x308();
  149. 000003EF: kernel_unknown_0x309();
  150. 000003EF: SetActiveEntityDirectionAndFacing(0);
  151. 00000400: } else {
  152. 00000401: if (Read(6) != 3) {
  153. 00000409: if (!Read(1009)) {
  154. 0000040E: if (!Read(1008)) {
  155. 00000413: kernel_unknown_0x300();
  156. 00000413: kernel_unknown_0x30C();
  157. 00000417: }
  158. 00000418: if (!Read(1010)) {
  159. 0000041D: kernel_unknown_0x300();
  160. 0000041D: kernel_unknown_0x30C();
  161. 00000421: }
  162. 00000422: if (!Read(1011)) {
  163. 00000427: kernel_unknown_0x300();
  164. 00000427: kernel_unknown_0x30C();
  165. 0000042B: }
  166. 0000042C: if (!Read(1012)) {
  167. 00000431: kernel_unknown_0x300();
  168. 00000431: kernel_unknown_0x30C();
  169. 00000435: }
  170. 00000436: if (!Read(1013)) {
  171. 0000043B: kernel_unknown_0x300();
  172. 0000043B: kernel_unknown_0x30C();
  173. 0000043F: }
  174. 00000440: if (!Read(1014)) {
  175. 00000445: kernel_unknown_0x300();
  176. 00000445: kernel_unknown_0x30C();
  177. 00000449: }
  178. 00000449: }
  179. 0000044A: kernel_unknown_0x308();
  180. 0000044A: kernel_unknown_0x309();
  181. 0000044A: SetActiveEntityDirectionAndFacing(0);
  182. 0000045B: } else {
  183. 0000045C: if (Read(6) != 4) {
  184. 00000464: kernel_unknown_0x308();
  185. 00000464: kernel_unknown_0x309();
  186. 00000464: SetActiveEntityDirectionAndFacing(96);
  187. 00000475: } else {
  188. 00000476: if (Read(6) != 5) {
  189. 0000047E: kernel_unknown_0x308();
  190. 0000047E: kernel_unknown_0x309();
  191. 0000047E: SetActiveEntityDirectionAndFacing(228);
  192. 0000048F: } else {
  193. 00000490: if (Read(6) != 6) {
  194. 00000498: kernel_unknown_0x308();
  195. 00000498: kernel_unknown_0x309();
  196. 00000498: SetActiveEntityDirectionAndFacing(0);
  197. 000004A9: } else {
  198. 000004AA: if (Read(6) != 7) {
  199. 000004B2: if (!Read(1016)) {
  200. 000004B7: if (!Read(1017)) {
  201. 000004BC: kernel_unknown_0x300();
  202. 000004BC: kernel_unknown_0x30C();
  203. 000004C0: }
  204. 000004C0: }
  205. 000004C1: kernel_unknown_0x308();
  206. 000004C1: kernel_unknown_0x309();
  207. 000004C1: SetActiveEntityDirectionAndFacing(0);
  208. 000004D2: } else {
  209. 000004D3: if (Read(6) != 8) {
  210. 000004DB: kernel_unknown_0x308();
  211. 000004DB: kernel_unknown_0x309();
  212. 000004DB: SetActiveEntityDirectionAndFacing(0);
  213. 000004EC: } else {
  214. 000004ED: if (Read(6) != 9) {
  215. 000004F5: kernel_unknown_0x308();
  216. 000004F5: kernel_unknown_0x309();
  217. 000004F5: SetActiveEntityDirectionAndFacing(56);
  218. 00000506: } else {
  219. 00000507: if (Read(6) != 10) {
  220. 0000050F: kernel_unknown_0x308();
  221. 0000050F: kernel_unknown_0x309();
  222. 0000050F: SetActiveEntityDirectionAndFacing(0);
  223. 00000520: } else {
  224. 00000521: if (Read(6) != 11) {
  225. 00000529: kernel_unknown_0x308();
  226. 00000529: if (!Read(0) unknown_operation 1197) {
  227. 00000537: kernel_unknown_0x309();
  228. 0000053E: } else {
  229. 0000053F: kernel_unknown_0x309();
  230. 0000053F: }
  231. 00000545: SetActiveEntityDirectionAndFacing(0);
  232. 0000054A: } else {
  233. 0000054B: if (Read(6) != 12) {
  234. 00000553: kernel_unknown_0x308();
  235. 00000553: kernel_unknown_0x309();
  236. 00000553: SetActiveEntityDirectionAndFacing(0);
  237. 00000564: } else {
  238. 00000565: if (Read(6) != 13) {
  239. 0000056D: if (!Read(1016)) {
  240. 00000572: if (!Read(1017)) {
  241. 00000577: kernel_unknown_0x300();
  242. 00000577: kernel_unknown_0x30C();
  243. 0000057B: }
  244. 0000057B: }
  245. 0000057C: kernel_unknown_0x308();
  246. 0000057C: kernel_unknown_0x309();
  247. 0000057C: SetActiveEntityDirectionAndFacing(0);
  248. 0000058D: } else {
  249. 0000058E: if (Read(6) != 14) {
  250. 00000596: kernel_unknown_0x308();
  251. 00000596: kernel_unknown_0x309();
  252. 00000596: SetActiveEntityDirectionAndFacing(68);
  253. 000005A7: } else {
  254. 000005A8: if (Read(6) != 15) {
  255. 000005B0: kernel_unknown_0x308();
  256. 000005B0: kernel_unknown_0x309();
  257. 000005B0: SetActiveEntityDirectionAndFacing(250);
  258. 000005C1: } else {
  259. 000005C2: if (Read(6) != 16) {
  260. 000005CA: if (!Read(1016)) {
  261. 000005CF: if (!Read(1017)) {
  262. 000005D4: kernel_unknown_0x300();
  263. 000005D4: kernel_unknown_0x30C();
  264. 000005D8: }
  265. 000005D8: }
  266. 000005D9: kernel_unknown_0x308();
  267. 000005D9: kernel_unknown_0x309();
  268. 000005D9: SetActiveEntityDirectionAndFacing(0);
  269. 000005EA: } else {
  270. 000005EB: if (Read(6) != 17) {
  271. 000005F3: kernel_unknown_0x308();
  272. 000005F3: kernel_unknown_0x309();
  273. 000005F3: SetActiveEntityDirectionAndFacing(0);
  274. 00000604: } else {
  275. 00000605: if (Read(6) != 18) {
  276. 0000060D: kernel_unknown_0x308();
  277. 0000060D: kernel_unknown_0x309();
  278. 0000060D: SetActiveEntityDirectionAndFacing(0);
  279. 0000061E: } else {
  280. 0000061F: if (Read(6) != 19) {
  281. 00000627: kernel_unknown_0x308();
  282. 00000627: kernel_unknown_0x309();
  283. 00000627: SetActiveEntityDirectionAndFacing(0);
  284. 00000638: } else {
  285. 00000639: if (Read(6) != 20) {
  286. 00000641: kernel_unknown_0x308();
  287. 00000641: kernel_unknown_0x309();
  288. 00000641: SetActiveEntityDirectionAndFacing(0);
  289. 00000652: } else {
  290. 00000653: if (Read(6) != 21) {
  291. 0000065B: kernel_unknown_0x308();
  292. 0000065B: kernel_unknown_0x309();
  293. 0000065B: SetActiveEntityDirectionAndFacing(0);
  294. 0000066C: } else {
  295. 0000066D: if (Read(6) != 22) {
  296. 00000675: kernel_unknown_0x308();
  297. 00000675: kernel_unknown_0x309();
  298. 00000675: SetActiveEntityDirectionAndFacing(0);
  299. 00000686: } else {
  300. 00000687: if (Read(6) != 23) {
  301. 0000068F: kernel_unknown_0x308();
  302. 0000068F: kernel_unknown_0x309();
  303. 0000068F: SetActiveEntityDirectionAndFacing(0);
  304. 000006A0: } else {
  305. 000006A1: if (Read(6) != 24) {
  306. 000006A9: kernel_unknown_0x308();
  307. 000006A9: kernel_unknown_0x309();
  308. 000006A9: SetActiveEntityDirectionAndFacing(188);
  309. 000006BA: } else {
  310. 000006BB: if (Read(6) != 25) {
  311. 000006C3: kernel_unknown_0x308();
  312. 000006C3: kernel_unknown_0x309();
  313. 000006C3: SetActiveEntityDirectionAndFacing(0);
  314. 000006D4: } else {
  315. 000006D5: if (Read(6) != 26) {
  316. 000006DD: kernel_unknown_0x308();
  317. 000006DD: kernel_unknown_0x309();
  318. 000006DD: SetActiveEntityDirectionAndFacing(192);
  319. 000006EE: } else {
  320. 000006EF: if (Read(6) != 27) {
  321. 000006F7: kernel_unknown_0x308();
  322. 000006F7: kernel_unknown_0x309();
  323. 000006F7: SetActiveEntityDirectionAndFacing(0);
  324. 00000708: } else {
  325. 00000709: if (Read(6) != 28) {
  326. 00000711: kernel_unknown_0x308();
  327. 00000711: kernel_unknown_0x309();
  328. 00000711: SetActiveEntityDirectionAndFacing(96);
  329. 00000722: } else {
  330. 00000723: if (Read(6) != 29) {
  331. 0000072B: kernel_unknown_0x308();
  332. 0000072B: kernel_unknown_0x309();
  333. 0000072B: SetActiveEntityDirectionAndFacing(231);
  334. 0000073C: } else {
  335. 0000073D: if (Read(6) != 32) {
  336. 00000745: if (!Read(1009)) {
  337. 0000074A: if (!Read(1008)) {
  338. 0000074F: kernel_unknown_0x300();
  339. 0000074F: kernel_unknown_0x30C();
  340. 00000753: }
  341. 00000754: if (!Read(1010)) {
  342. 00000759: kernel_unknown_0x300();
  343. 00000759: kernel_unknown_0x30C();
  344. 0000075D: }
  345. 0000075E: if (!Read(1011)) {
  346. 00000763: kernel_unknown_0x300();
  347. 00000763: kernel_unknown_0x30C();
  348. 00000767: }
  349. 00000768: if (!Read(1012)) {
  350. 0000076D: kernel_unknown_0x300();
  351. 0000076D: kernel_unknown_0x30C();
  352. 00000771: }
  353. 00000772: if (!Read(1013)) {
  354. 00000777: kernel_unknown_0x300();
  355. 00000777: kernel_unknown_0x30C();
  356. 0000077B: }
  357. 0000077C: if (!Read(1014)) {
  358. 00000781: kernel_unknown_0x300();
  359. 00000781: kernel_unknown_0x30C();
  360. 00000785: }
  361. 00000785: }
  362. 00000786: kernel_unknown_0x308();
  363. 00000786: kernel_unknown_0x309();
  364. 00000786: SetActiveEntityDirectionAndFacing(Read(4));
  365. 00000797: } else {
  366. 00000798: if (Read(6) != 33) {
  367. 000007A0: if (!Read(1016)) {
  368. 000007A5: if (!Read(1017)) {
  369. 000007AA: kernel_unknown_0x300();
  370. 000007AA: kernel_unknown_0x30C();
  371. 000007AE: }
  372. 000007AE: }
  373. 000007AF: kernel_unknown_0x308();
  374. 000007AF: kernel_unknown_0x309();
  375. 000007AF: SetActiveEntityDirectionAndFacing(Read(4));
  376. 000007C0: } else {
  377. 000007C1: if (Read(6) != 34) {
  378. 000007C9: if (!Read(1009)) {
  379. 000007CE: if (!Read(1008)) {
  380. 000007D3: kernel_unknown_0x300();
  381. 000007D3: kernel_unknown_0x30C();
  382. 000007D7: }
  383. 000007D8: if (!Read(1010)) {
  384. 000007DD: kernel_unknown_0x300();
  385. 000007DD: kernel_unknown_0x30C();
  386. 000007E1: }
  387. 000007E2: if (!Read(1011)) {
  388. 000007E7: kernel_unknown_0x300();
  389. 000007E7: kernel_unknown_0x30C();
  390. 000007EB: }
  391. 000007EC: if (!Read(1012)) {
  392. 000007F1: kernel_unknown_0x300();
  393. 000007F1: kernel_unknown_0x30C();
  394. 000007F5: }
  395. 000007F6: if (!Read(1013)) {
  396. 000007FB: kernel_unknown_0x300();
  397. 000007FB: kernel_unknown_0x30C();
  398. 000007FF: }
  399. 00000800: if (!Read(1014)) {
  400. 00000805: kernel_unknown_0x300();
  401. 00000805: kernel_unknown_0x30C();
  402. 00000809: }
  403. 00000809: }
  404. 0000080A: kernel_unknown_0x308();
  405. 0000080A: kernel_unknown_0x309();
  406. 0000080A: SetActiveEntityDirectionAndFacing(Read(4));
  407. 0000081B: } else {
  408. 0000081C: if (Read(6) != 36) {
  409. 00000824: kernel_unknown_0x300();
  410. 00000824: kernel_unknown_0x302();
  411. 0000082A: } else {
  412. 0000082B: if (Read(6) != 37) {
  413. 00000833: kernel_unknown_0x300();
  414. 00000833: kernel_unknown_0x302();
  415. 00000839: } else {
  416. 0000083A: if (Read(6) != 38) {
  417. 00000842: kernel_unknown_0x300();
  418. 00000842: kernel_unknown_0x302();
  419. 00000848: } else {
  420. 00000849: if (Read(6) != 39) {
  421. 00000851: kernel_unknown_0x300();
  422. 00000851: kernel_unknown_0x302();
  423. 00000857: } else {
  424. 00000858: if (Read(6) != 40) {
  425. 00000860: if (!Read(1018)) {
  426. 00000865: kernel_unknown_0x300();
  427. 00000865: kernel_unknown_0x30C();
  428. 00000869: }
  429. 0000086A: kernel_unknown_0x308();
  430. 0000086A: kernel_unknown_0x309();
  431. 0000086A: SetActiveEntityDirectionAndFacing(0);
  432. 0000087B: } else {
  433. 0000087C: if (Read(6) != 41) {
  434. 00000884: if (!Read(1020)) {
  435. 00000889: kernel_unknown_0x300();
  436. 00000889: kernel_unknown_0x30C();
  437. 0000088D: }
  438. 0000088E: kernel_unknown_0x308();
  439. 0000088E: kernel_unknown_0x309();
  440. 0000089B: } else {
  441. 0000089C: if (Read(6) != 43) {
  442. 000008A4: kernel_unknown_0x308();
  443. 000008A4: kernel_unknown_0x309();
  444. 000008A4: SetActiveEntityDirectionAndFacing(128);
  445. 000008B5: } else {
  446. 000008B6: if (Read(6) != 44) {
  447. 000008BE: kernel_unknown_0x308();
  448. 000008BE: kernel_unknown_0x309();
  449. 000008BE: SetActiveEntityDirectionAndFacing(0);
  450. 000008CF: } else {
  451. 000008D0: if (Read(6) != 45) {
  452. 000008D8: if (!Read(1020)) {
  453. 000008DD: if (!Read(1021)) {
  454. 000008E2: if (!Read(7215)) {
  455. 000008E7: kernel_unknown_0x300();
  456. 000008E7: kernel_unknown_0x30C();
  457. 000008EB: }
  458. 000008EC: kernel_unknown_0x300();
  459. 000008EC: kernel_unknown_0x30C();
  460. 000008EC: if (!Read(7214)) {
  461. 000008F6: kernel_unknown_0x308();
  462. 000008F6: kernel_unknown_0x309();
  463. 000008F6: Write(Read(7214), 0);
  464. 00000907: }
  465. 00000907: }
  466. 00000907: }
  467. 00000909: } else {
  468. 0000090A: if (Read(6) != 46) {
  469. 00000912: kernel_unknown_0x308();
  470. 00000912: kernel_unknown_0x309();
  471. 00000912: SetActiveEntityDirectionAndFacing(232);
  472. 00000923: } else {
  473. 00000924: if (Read(6) != 47) {
  474. 0000092C: kernel_unknown_0x308();
  475. 0000092C: kernel_unknown_0x309();
  476. 0000092C: SetActiveEntityDirectionAndFacing(128);
  477. 0000093D: } else {
  478. 0000093E: if (Read(6) != 48) {
  479. 00000946: kernel_unknown_0x308();
  480. 00000946: kernel_unknown_0x309();
  481. 00000946: SetActiveEntityDirectionAndFacing(227);
  482. 00000957: } else {
  483. 00000958: if (Read(6) != 49) {
  484. 00000968: kernel_unknown_0x319();
  485. 0000096A: kernel_unknown_0x308();
  486. 0000096A: kernel_unknown_0x309();
  487. 0000096A: SetActiveEntityDirectionAndFacing(128);
  488. 0000097B: } else {
  489. 0000097C: if (Read(6) != 51) {
  490. 00000984: if (!Read(1020)) {
  491. 00000989: kernel_unknown_0x300();
  492. 00000989: kernel_unknown_0x30C();
  493. 00000989: kernel_unknown_0x300();
  494. 00000991: }
  495. 00000993: } else {
  496. 00000994: if (Read(6) != 53) {
  497. 0000099C: kernel_unknown_0x308();
  498. 0000099C: kernel_unknown_0x309();
  499. 0000099C: SetActiveEntityDirectionAndFacing(Read(4));
  500. 000009AD: } else {
  501. 000009AE: if (Read(6) != 54) {
  502. 000009B6: if (!Read(6802)) {
  503. 000009BB: kernel_unknown_0x300();
  504. 000009BB: kernel_unknown_0x30C();
  505. 000009BF: }
  506. 000009C0: kernel_unknown_0x308();
  507. 000009C0: kernel_unknown_0x309();
  508. 000009C0: SetActiveEntityDirectionAndFacing(192);
  509. 000009D1: } else {
  510. 000009D2: if (Read(6) != 55) {
  511. 000009DA: kernel_unknown_0x308();
  512. 000009DA: kernel_unknown_0x309();
  513. 000009DA: SetActiveEntityDirectionAndFacing(0);
  514. 000009EB: } else {
  515. 000009EC: if (Read(6) != 57) {
  516. 000009F4: kernel_unknown_0x308();
  517. 000009F4: kernel_unknown_0x309();
  518. 000009F4: SetActiveEntityDirectionAndFacing(128);
  519. 00000A05: } else {
  520. 00000A06: if (Read(6) != 58) {
  521. 00000A0E: kernel_unknown_0x308();
  522. 00000A0E: kernel_unknown_0x309();
  523. 00000A0E: SetActiveEntityDirectionAndFacing(25);
  524. 00000A1F: } else {
  525. 00000A20: if (Read(6) != 59) {
  526. 00000A28: if (!Read(1020)) {
  527. 00000A2D: kernel_unknown_0x300();
  528. 00000A2D: kernel_unknown_0x30C();
  529. 00000A2D: kernel_unknown_0x308();
  530. 00000A2D: kernel_unknown_0x309();
  531. 00000A2D: }
  532. 00000A2D: }
  533. 00000A2D: }
  534. 00000A2D: }
  535. 00000A2D: }
  536. 00000A2D: }
  537. 00000A2D: }
  538. 00000A2D: }
  539. 00000A2D: }
  540. 00000A2D: }
  541. 00000A2D: }
  542. 00000A2D: }
  543. 00000A2D: }
  544. 00000A2D: }
  545. 00000A2D: }
  546. 00000A2D: }
  547. 00000A2D: }
  548. 00000A2D: }
  549. 00000A2D: }
  550. 00000A2D: }
  551. 00000A2D: }
  552. 00000A2D: }
  553. 00000A2D: }
  554. 00000A2D: }
  555. 00000A2D: }
  556. 00000A2D: }
  557. 00000A2D: }
  558. 00000A2D: }
  559. 00000A2D: }
  560. 00000A2D: }
  561. 00000A2D: }
  562. 00000A2D: }
  563. 00000A2D: }
  564. 00000A2D: }
  565. 00000A2D: }
  566. 00000A2D: }
  567. 00000A2D: }
  568. 00000A2D: }
  569. 00000A2D: }
  570. 00000A2D: }
  571. 00000A2D: }
  572. 00000A2D: }
  573. 00000A2D: }
  574. 00000A2D: }
  575. 00000A2D: }
  576. 00000A2D: }
  577. 00000A2D: }
  578. 00000A2D: }
  579. 00000A2D: }
  580. 00000A2D: }
  581. 00000A2D: }
  582. 00000A2D: }
  583. 00000A3D: }
  584. 00000A3D: }
  585. 00000A3F: } else {
  586. 00000A40: if (Read(987)) {
  587. 00000A46: if (!Read(7220)) {
  588. 00000A4B: kernel_unknown_0x300();
  589. 00000A4B: Write(Read(7228), 1);
  590. 00000A54: }
  591. 00000A54: }
  592. 00000A55: if (!Read(984)) {
  593. 00000A5A: if (Read(7220)) {
  594. 00000A60: if (!Read(7224)) {
  595. 00000A65: kernel_unknown_0x300();
  596. 00000A65: kernel_unknown_0x30C();
  597. 00000A65: kernel_unknown_0x300();
  598. 00000A6D: }
  599. 00000A6D: }
  600. 00000A6D: }
  601. 00000A6E: if (Read(976)) {
  602. 00000A74: kernel_unknown_0x300();
  603. 00000A77: }
  604. 00000A78: if (!Read(979)) {
  605. 00000A7D: kernel_unknown_0x300();
  606. 00000A80: }
  607. 00000A81: if (Read(977)) {
  608. 00000A87: kernel_unknown_0x300();
  609. 00000A8A: }
  610. 00000A8B: if (Read(849)) {
  611. 00000A91: kernel_unknown_0x300();
  612. 00000A94: }
  613. 00000A95: if (!Read(0) < 1580) {
  614. 00000A9D: kernel_unknown_0x300();
  615. 00000AA0: }
  616. 00000AA1: kernel_unknown_0x300();
  617. 00000AA1: kernel_unknown_0x300();
  618. 00000AA1: kernel_unknown_0x300();
  619. 00000AA1: if (Read(984)) {
  620. 00000AB3: if (!Read(0) unknown_operation 1580) {
  621. 00000ABB: kernel_unknown_0x300();
  622. 00000ABE: }
  623. 00000ABE: }
  624. 00000ABF: if (!Read(6803)) {
  625. 00000AC4: kernel_unknown_0x300();
  626. 00000AC7: }
  627. 00000AC8: if (!Read(1016)) {
  628. 00000ACD: kernel_unknown_0x300();
  629. 00000AD0: }
  630. 00000AD1: if (!Read(1018)) {
  631. 00000AD6: kernel_unknown_0x300();
  632. 00000AD9: }
  633. 00000ADA: if (!Read(1020)) {
  634. 00000ADF: kernel_unknown_0x300();
  635. 00000AE2: }
  636. 00000AE3: if (!Read(6787)) {
  637. 00000AE8: kernel_unknown_0x300();
  638. 00000AEB: }
  639. 00000AEC: if (!Read(6802)) {
  640. 00000AF1: kernel_unknown_0x300();
  641. 00000AF4: }
  642. 00000AF5: if (!Read(7200)) {
  643. 00000AFA: if (!Read(1008)) {
  644. 00000AFF: kernel_unknown_0x300();
  645. 00000B02: }
  646. 00000B03: if (!Read(1010)) {
  647. 00000B08: kernel_unknown_0x300();
  648. 00000B0B: }
  649. 00000B0C: if (!Read(1011)) {
  650. 00000B11: kernel_unknown_0x300();
  651. 00000B14: }
  652. 00000B15: if (!Read(1012)) {
  653. 00000B1A: kernel_unknown_0x300();
  654. 00000B1D: }
  655. 00000B1E: if (!Read(1013)) {
  656. 00000B23: kernel_unknown_0x300();
  657. 00000B26: }
  658. 00000B27: if (!Read(1014)) {
  659. 00000B2C: kernel_unknown_0x300();
  660. 00000B2F: }
  661. 00000B2F: }
  662. 00000B30: kernel_unknown_0x300();
  663. 00000B30: kernel_unknown_0x302();
  664. 00000B30: if (!Read(7200)) {
  665. 00000B3A: if (!Read(1009)) {
  666. 00000B3F: if (!Read(1010)) {
  667. 00000B44: kernel_unknown_0x300();
  668. 00000B47: }
  669. 00000B48: if (!Read(1011)) {
  670. 00000B4D: kernel_unknown_0x300();
  671. 00000B50: }
  672. 00000B51: if (!Read(1012)) {
  673. 00000B56: kernel_unknown_0x300();
  674. 00000B59: }
  675. 00000B5A: if (!Read(1013)) {
  676. 00000B5F: kernel_unknown_0x300();
  677. 00000B62: }
  678. 00000B63: if (!Read(1014)) {
  679. 00000B68: kernel_unknown_0x300();
  680. 00000B6B: }
  681. 00000B6C: if (!Read(1008)) {
  682. 00000B71: kernel_unknown_0x300();
  683. 00000B74: }
  684. 00000B74: kernel_unknown_0x30C();
  685. 00000B75: }
  686. 00000B76: if (!Read(10)) {
  687. 00000B7A: kernel_unknown_0x320();
  688. 00000B7C: Write(Read(7200), 0);
  689. 00000B7C: if (!Read(7201)) {
  690. 00000B87: kernel_unknown_0x308();
  691. 00000B87: kernel_unknown_0x309();
  692. 00000B87: SetActiveEntityDirectionAndFacing(224);
  693. 00000B98: } else {
  694. 00000B99: kernel_unknown_0x308();
  695. 00000B99: kernel_unknown_0x309();
  696. 00000B99: SetActiveEntityDirectionAndFacing(96);
  697. 00000B99: }
  698. 00000BAA: } else {
  699. 00000BAB: Write(Read(897), 90);
  700. 00000BAB: Write(Read(7200), 0);
  701. 00000BAB: }
  702. 00000BB8: } else {
  703. 00000BB8: kernel_unknown_0x320();
  704. 00000BBA: Write(Read(7200), 0);
  705. 00000BBA: if (!Read(84)) {
  706. 00000BC5: Write(Read(84), 0);
  707. 00000BC5: Write(Read(1009), 1);
  708. 00000BC5: Write(Read(1008), 1);
  709. 00000BC5: Write(Read(898), Read(0));
  710. 00000BC5: Write(Read(899), Read(1));
  711. 00000BC5: Write(Read(904), 512);
  712. 00000BC5: Write(Read(906), 768);
  713. 00000BC5: kernel_unknown_0x300();
  714. 00000BC5: kernel_unknown_0x308();
  715. 00000BC5: kernel_unknown_0x309();
  716. 00000BC5: kernel_unknown_0x30C();
  717. 00000BC5: if (!Read(1010)) {
  718. 00000C05: kernel_unknown_0x300();
  719. 00000C08: }
  720. 00000C09: if (!Read(1011)) {
  721. 00000C0E: kernel_unknown_0x300();
  722. 00000C11: }
  723. 00000C12: if (!Read(1012)) {
  724. 00000C17: kernel_unknown_0x300();
  725. 00000C1A: }
  726. 00000C1B: if (!Read(1013)) {
  727. 00000C20: kernel_unknown_0x300();
  728. 00000C23: }
  729. 00000C24: if (!Read(1014)) {
  730. 00000C29: kernel_unknown_0x300();
  731. 00000C2C: }
  732. 00000C2E: } else {
  733. 00000C2F: if (!Read(1008)) {
  734. 00000C34: kernel_unknown_0x300();
  735. 00000C37: }
  736. 00000C38: if (!Read(1010)) {
  737. 00000C3D: kernel_unknown_0x300();
  738. 00000C40: }
  739. 00000C41: if (!Read(1011)) {
  740. 00000C46: kernel_unknown_0x300();
  741. 00000C49: }
  742. 00000C4A: if (!Read(1012)) {
  743. 00000C4F: kernel_unknown_0x300();
  744. 00000C52: }
  745. 00000C53: if (!Read(1013)) {
  746. 00000C58: kernel_unknown_0x300();
  747. 00000C5B: }
  748. 00000C5C: if (!Read(1014)) {
  749. 00000C61: kernel_unknown_0x300();
  750. 00000C61: }
  751. 00000C61: }
  752. 00000C64: }
  753. 00000C64: kernel_unknown_0x320();
  754. 00000C66: Write(Read(7200), 0);
  755. 00000C66: }
  756. 00000C6C: kernel_unknown_0x310();
  757. 00000C6C: kernel_unknown_0x311();
  758. 00000C6C: kernel_unknown_0x312();
  759. 00000C6C: kernel_unknown_0x313();
  760. 00000C6C: kernel_unknown_0x314();
  761. 00000C6C: kernel_unknown_0x315();
  762. 00000C6C: kernel_unknown_0x316();
  763. 00000C6C: kernel_unknown_0x310();
  764. 00000C6C: kernel_unknown_0x311();
  765. 00000C6C: kernel_unknown_0x312();
  766. 00000C6C: kernel_unknown_0x313();
  767. 00000C6C: kernel_unknown_0x314();
  768. 00000C6C: kernel_unknown_0x315();
  769. 00000C6C: kernel_unknown_0x316();
  770. 00000C6C: kernel_unknown_0x310();
  771. 00000C6C: kernel_unknown_0x311();
  772. 00000C6C: kernel_unknown_0x312();
  773. 00000C6C: kernel_unknown_0x313();
  774. 00000C6C: kernel_unknown_0x314();
  775. 00000C6C: kernel_unknown_0x315();
  776. 00000C6C: kernel_unknown_0x316();
  777. 00000C6C: kernel_unknown_0x310();
  778. 00000C6C: kernel_unknown_0x311();
  779. 00000C6C: kernel_unknown_0x312();
  780. 00000C6C: kernel_unknown_0x310();
  781. 00000C6C: kernel_unknown_0x311();
  782. 00000C6C: kernel_unknown_0x312();
  783. 00000C6C: kernel_unknown_0x310();
  784. 00000C6C: kernel_unknown_0x311();
  785. 00000C6C: kernel_unknown_0x312();
  786. 00000C6C: kernel_unknown_0x310();
  787. 00000C6C: kernel_unknown_0x311();
  788. 00000C6C: kernel_unknown_0x312();
  789. 00000C6C: kernel_unknown_0x310();
  790. 00000C6C: kernel_unknown_0x311();
  791. 00000C6C: kernel_unknown_0x312();
  792. 00000C6C: kernel_unknown_0x310();
  793. 00000C6C: kernel_unknown_0x311();
  794. 00000C6C: kernel_unknown_0x312();
  795. 00000C6C: kernel_unknown_0x310();
  796. 00000C6C: kernel_unknown_0x311();
  797. 00000C6C: kernel_unknown_0x312();
  798. 00000C6C: kernel_unknown_0x310();
  799. 00000C6C: kernel_unknown_0x311();
  800. 00000C6C: kernel_unknown_0x312();
  801. 00000C6C: kernel_unknown_0x310();
  802. 00000C6C: kernel_unknown_0x311();
  803. 00000C6C: kernel_unknown_0x312();
  804. 00000C6C: kernel_unknown_0x310();
  805. 00000C6C: kernel_unknown_0x311();
  806. 00000C6C: kernel_unknown_0x312();
  807. 00000C6C: if (Read(0) != 1596) {
  808. 00000DB8: kernel_unknown_0x33E();
  809. 00000DBD: } else {
  810. 00000DBE: if (!Read(6803)) {
  811. 00000DC3: if (!Read(7212)) {
  812. 00000DC8: if (Read(7209)) {
  813. 00000DCE: kernel_unknown_0x33E();
  814. 00000DCE: }
  815. 00000DD1: }
  816. 00000DD1: }
  817. 00000DD1: }
  818. 00000DD1: return;
  819.  
  820. 00000201: return;
  821.  
  822. 00000203: if (!Read(897)) {
  823. 0000020F: Write(Read(897), Read(897) - 1);
  824. 00000211: if (Read(897) != 0) {
  825. 00000218: kernel_unknown_0x320();
  826. 00000219: }
  827. 00000219: }
  828. 00000219: return;
  829.  
  830. 00000203: if (!Read(897)) {
  831. 0000020F: Write(Read(897), Read(897) - 1);
  832. 00000211: if (Read(897) != 0) {
  833. 00000218: kernel_unknown_0x320();
  834. 00000219: }
  835. 00000219: }
  836. 00000219: return;
  837.  
  838. 00000203: if (!Read(897)) {
  839. 0000020F: Write(Read(897), Read(897) - 1);
  840. 00000211: if (Read(897) != 0) {
  841. 00000218: kernel_unknown_0x320();
  842. 00000219: }
  843. 00000219: }
  844. 00000219: return;
  845.  
  846. 00000203: if (!Read(897)) {
  847. 0000020F: Write(Read(897), Read(897) - 1);
  848. 00000211: if (Read(897) != 0) {
  849. 00000218: kernel_unknown_0x320();
  850. 00000219: }
  851. 00000219: }
  852. 00000219: return;
  853.  
  854. 00000DD3: if (!Read(0) < 1199) {
  855. 00000DDB: EnterFieldScene(50, 0);
  856. 00000DE2: } else {
  857. 00000DE3: if (!Read(0) > 1199) {
  858. 00000DEB: EnterFieldScene(50, 1);
  859. 00000DEB: }
  860. 00000DF0: }
  861. 00000DF0: return;
  862.  
  863. 00002AED: TriggerBattle(469);
  864. 00002AED: Write(Read(7200), 1);
  865. 00002AED: Write(Read(7201), Read(11));
  866. 00002AED: return;
  867.  
  868. 00000203: if (!Read(897)) {
  869. 0000020F: Write(Read(897), Read(897) - 1);
  870. 00000211: if (Read(897) != 0) {
  871. 00000218: kernel_unknown_0x320();
  872. 00000219: }
  873. 00000219: }
  874. 00000219: return;
  875.  
  876. 00002C8C: if (!Read(0) unknown_operation 1620) {
  877. 00002C94: kernel_unknown_0x222();
  878. 00002C97: }
  879. 00002C97: return;
  880.  
  881. 00000DF2: Unknown333(Read(2), 64);
  882. 00000DF2: kernel_unknown_0x347();
  883. 00000DF2: kernel_unknown_0x30E();
  884. 00000DF2: SetWaitFrames(15);
  885. 00000DF2: Wait();
  886. 00000DF2: kernel_unknown_0x30E();
  887. 00000DF2: SetControlLock(1);
  888. 00000DF2: return;
  889.  
  890. 00000E12: kernel_unknown_0x30E();
  891. 00000E12: SetWaitFrames(15);
  892. 00000E12: Wait();
  893. 00000E12: kernel_unknown_0x30E();
  894. 00000E28: kernel_unknown_0x353();
  895. 00000E31: SetActiveEntityDirectionAndFacing(Read(3) + 192);
  896. 00000E33: SetControlLock(1);
  897. 00000E33: SetControlLock(0);
  898. 00000E33: return;
  899.  
  900. 00000E41: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  901. 00000E43: SetActiveEntityMovespeed(20);
  902. 00000E43: SetWaitFrames(5);
  903. 00000E43: Wait();
  904. 00000E43: SetActiveEntityMovespeed(0);
  905. 00000E43: SetWindowParameters(0, 0);
  906. 00000E43: if (Read(8) != 0) {
  907. 00000E5D: WaitForWindowReady();
  908. 00000E5F: SetWindowDimensions(30, 160, 260, 41);
  909. 00000E5F: WaitForWindowReady();
  910. 00000E5F: SetWindowMessage(49);
  911. 00000E6F: } else {
  912. 00000E70: if (Read(8) != 1) {
  913. 00000E77: WaitForWindowReady();
  914. 00000E79: SetWindowDimensions(80, 160, 180, 41);
  915. 00000E79: WaitForWindowReady();
  916. 00000E79: SetWindowMessage(50);
  917. 00000E89: } else {
  918. 00000E8A: if (Read(8) != 2) {
  919. 00000E91: WaitForWindowReady();
  920. 00000E93: SetWindowDimensions(35, 160, 250, 41);
  921. 00000E93: WaitForWindowReady();
  922. 00000E93: SetWindowMessage(51);
  923. 00000E93: }
  924. 00000E93: }
  925. 00000EA1: }
  926. 00000EA1: WaitForMessageAcknowledge();
  927. 00000EA3: SetControlLock(1);
  928. 00000EA3: SetBattleLock(1);
  929. 00000EA3: return;
  930.  
  931. 00000EAC: Unknown333(4, 0);
  932. 00000EB7: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  933. 00000EB9: SetActiveEntityMovespeed(20);
  934. 00000EB9: SetWaitFrames(5);
  935. 00000EB9: Wait();
  936. 00000EB9: SetActiveEntityMovespeed(0);
  937. 00000EB9: SetWaitFrames(30);
  938. 00000EB9: Wait();
  939. 00000EB9: SetWindowParameters(0, 0);
  940. 00000EB9: if (Read(8) != 0) {
  941. 00000ED8: WaitForWindowReady();
  942. 00000EDA: SetWindowDimensions(60, 160, 200, 57);
  943. 00000EDA: WaitForWindowReady();
  944. 00000EDA: SetWindowMessage(38);
  945. 00000EEA: } else {
  946. 00000EEB: if (Read(8) != 1) {
  947. 00000EF2: WaitForWindowReady();
  948. 00000EF4: SetWindowDimensions(50, 160, 220, 41);
  949. 00000EF4: WaitForWindowReady();
  950. 00000EF4: SetWindowMessage(40);
  951. 00000EF4: }
  952. 00000F02: }
  953. 00000F02: WaitForMessageAcknowledge();
  954. 00000F04: SetWaitFrames(30);
  955. 00000F04: Wait();
  956. 00000F0E: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  957. 00000F10: SetWindowParameters(0, 0);
  958. 00000F10: if (Read(8) != 0) {
  959. 00000F1D: WaitForWindowReady();
  960. 00000F1F: SetWindowDimensions(70, 160, 180, 57);
  961. 00000F1F: WaitForWindowReady();
  962. 00000F1F: SetWindowMessage(39);
  963. 00000F2F: } else {
  964. 00000F30: if (Read(8) != 1) {
  965. 00000F37: WaitForWindowReady();
  966. 00000F39: SetWindowDimensions(55, 160, 210, 57);
  967. 00000F39: WaitForWindowReady();
  968. 00000F39: SetWindowMessage(41);
  969. 00000F39: }
  970. 00000F47: }
  971. 00000F47: WaitForMessageAcknowledge();
  972. 00000F49: Write(Read(1009), 0);
  973. 00000F49: SetBattleLock(1);
  974. 00000F49: SetControlLock(1);
  975. 00000F49: return;
  976.  
  977. 00000F58: Unknown333(4, 0);
  978. 00000F58: SetWindowParameters(0, 0);
  979. 00000F58: if (Read(8) != 0) {
  980. 00000F6B: WaitForWindowReady();
  981. 00000F6D: SetWindowDimensions(60, 160, 200, 73);
  982. 00000F6D: WaitForWindowReady();
  983. 00000F6D: kernel_unknown_0x326();
  984. 00000F6D: kernel_unknown_0x327();
  985. 00000F82: } else {
  986. 00000F83: if (Read(8) != 1) {
  987. 00000F8A: WaitForWindowReady();
  988. 00000F8C: SetWindowDimensions(25, 160, 270, 73);
  989. 00000F8C: WaitForWindowReady();
  990. 00000F8C: kernel_unknown_0x326();
  991. 00000F8C: kernel_unknown_0x327();
  992. 00000FA1: } else {
  993. 00000FA2: if (Read(8) != 2) {
  994. 00000FA9: WaitForWindowReady();
  995. 00000FAB: SetWindowDimensions(60, 160, 200, 73);
  996. 00000FAB: WaitForWindowReady();
  997. 00000FAB: kernel_unknown_0x326();
  998. 00000FAB: kernel_unknown_0x327();
  999. 00000FAB: }
  1000. 00000FAB: }
  1001. 00000FBE: }
  1002. 00000FBF: if (Read(12) != 2) {
  1003. 00000FC7: Write(Read(908), Read(9));
  1004. 00000FC7: if (Read(85)) {
  1005. 00000FD3: Write(Read(85), Read(908));
  1006. 00000FDA: } else {
  1007. 00000FDB: if (Read(86)) {
  1008. 00000FE1: Write(Read(86), Read(908));
  1009. 00000FE8: } else {
  1010. 00000FE9: if (Read(87)) {
  1011. 00000FEF: Write(Read(87), Read(908));
  1012. 00000FF6: } else {
  1013. 00000FF7: if (Read(88)) {
  1014. 00000FFD: Write(Read(88), Read(908));
  1015. 00001004: } else {
  1016. 00001005: Write(Read(85), Read(86));
  1017. 00001005: Write(Read(86), Read(87));
  1018. 00001005: Write(Read(87), Read(88));
  1019. 00001005: Write(Read(88), Read(908));
  1020. 00001005: }
  1021. 00001005: }
  1022. 00001005: }
  1023. 00001005: }
  1024. 0000101C: }
  1025. 0000101C: return;
  1026.  
  1027. 0000101E: SetControlLock(0);
  1028. 0000101E: SetBattleLock(0);
  1029. 0000101E: kernel_unknown_0x321();
  1030. 0000101E: if (Read(7202)) {
  1031. 0000102F: WaitForWindowReady();
  1032. 00001031: SetWindowDimensions(100, 160, 120, 41);
  1033. 00001031: SetWindowParameters(0, 1);
  1034. 00001031: WaitForWindowReady();
  1035. 00001031: SetWindowMessage(20);
  1036. 00001031: kernel_unknown_0x30E();
  1037. 00001031: SetActiveEntityMovespeed(20);
  1038. 00001031: SetWaitFrames(40);
  1039. 00001031: Wait();
  1040. 00001031: WaitForWindowReady();
  1041. 00001031: WaitForWindowReady();
  1042. 00001031: SetWindowDimensions(110, 160, 100, 41);
  1043. 00001031: SetWindowParameters(0, 1);
  1044. 00001031: WaitForWindowReady();
  1045. 00001031: SetWindowMessage(21);
  1046. 00001031: kernel_unknown_0x30E();
  1047. 00001031: SetActiveEntityMovespeed(20);
  1048. 0000107B: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1049. 0000107D: if (!Read(13)) {
  1050. 00001082: SetWaitFrames(1);
  1051. 00001082: Wait();
  1052. 00001082: goto 0x107C;
  1053. 00001088: }
  1054. 00001088: WaitForWindowReady();
  1055. 0000108A: SetActiveEntityMovespeed(0);
  1056. 0000108A: SetWaitFrames(10);
  1057. 0000108A: Wait();
  1058. 00001098: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1059. 0000109A: kernel_unknown_0x30E();
  1060. 0000109A: WaitForWindowReady();
  1061. 0000109A: SetWindowDimensions(70, 160, 180, 57);
  1062. 0000109A: SetWindowParameters(0, 0);
  1063. 0000109A: WaitForWindowReady();
  1064. 0000109A: SetWindowMessage(22);
  1065. 0000109A: WaitForMessageAcknowledge();
  1066. 0000109A: Write(Read(7202), 1);
  1067. 000010BE: } else {
  1068. 000010BF: SetActiveEntityMovespeed(40);
  1069. 000010C8: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1070. 000010CA: if (!Read(13)) {
  1071. 000010CF: SetWaitFrames(1);
  1072. 000010CF: Wait();
  1073. 000010CF: goto 0x10C9;
  1074. 000010D5: }
  1075. 000010D6: SetActiveEntityMovespeed(0);
  1076. 000010D6: SetWaitFrames(10);
  1077. 000010D6: Wait();
  1078. 000010E4: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1079. 000010E6: kernel_unknown_0x30E();
  1080. 000010E6: WaitForWindowReady();
  1081. 000010E6: SetWindowDimensions(30, 160, 260, 57);
  1082. 000010E6: SetWindowParameters(0, 0);
  1083. 000010E6: WaitForWindowReady();
  1084. 000010E6: SetWindowMessage(23);
  1085. 000010E6: WaitForMessageAcknowledge();
  1086. 000010E6: }
  1087. 00001103: kernel_unknown_0x30E();
  1088. 00001103: SetControlLock(1);
  1089. 00001103: SetBattleLock(1);
  1090. 00001103: return;
  1091.  
  1092. 000014D6: SetControlLock(0);
  1093. 000014D6: Unknown333(6, 0);
  1094. 000014E5: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1095. 000014E7: SetActiveEntityMovespeed(20);
  1096. 000014E7: SetWaitFrames(5);
  1097. 000014E7: Wait();
  1098. 000014E7: SetActiveEntityMovespeed(0);
  1099. 000014F9: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1100. 000014FB: kernel_unknown_0x30E();
  1101. 000014FB: SetWaitFrames(30);
  1102. 000014FB: Wait();
  1103. 000014FB: SetWindowParameters(0, 0);
  1104. 000014FB: if (Read(8) != 0) {
  1105. 00001513: WaitForWindowReady();
  1106. 00001515: SetWindowDimensions(60, 160, 200, 41);
  1107. 00001515: WaitForWindowReady();
  1108. 00001515: SetWindowMessage(35);
  1109. 00001525: } else {
  1110. 00001526: if (Read(8) != 1) {
  1111. 0000152D: WaitForWindowReady();
  1112. 0000152F: SetWindowDimensions(80, 160, 160, 41);
  1113. 0000152F: WaitForWindowReady();
  1114. 0000152F: SetWindowMessage(36);
  1115. 0000152F: }
  1116. 0000153D: }
  1117. 0000153D: WaitForMessageAcknowledge();
  1118. 0000153F: kernel_unknown_0x30E();
  1119. 0000153F: SetControlLock(1);
  1120. 0000153F: return;
  1121.  
  1122. 0000154A: Unknown333(6, 0);
  1123. 00001555: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1124. 00001557: SetActiveEntityMovespeed(20);
  1125. 00001557: SetWaitFrames(20);
  1126. 00001557: Wait();
  1127. 00001557: SetActiveEntityMovespeed(0);
  1128. 00001569: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1129. 0000156B: SetWaitFrames(20);
  1130. 0000156B: Wait();
  1131. 0000156B: kernel_unknown_0x30E();
  1132. 0000156B: SetWaitFrames(40);
  1133. 0000156B: Wait();
  1134. 0000156B: SetWindowParameters(0, 0);
  1135. 0000156B: if (Read(8) != 0) {
  1136. 00001588: WaitForWindowReady();
  1137. 0000158A: SetWindowDimensions(60, 160, 200, 41);
  1138. 0000158A: WaitForWindowReady();
  1139. 0000158A: SetWindowMessage(35);
  1140. 0000159A: } else {
  1141. 0000159B: if (Read(8) != 1) {
  1142. 000015A2: WaitForWindowReady();
  1143. 000015A4: SetWindowDimensions(80, 160, 160, 41);
  1144. 000015A4: WaitForWindowReady();
  1145. 000015A4: SetWindowMessage(36);
  1146. 000015A4: }
  1147. 000015B2: }
  1148. 000015B2: WaitForMessageAcknowledge();
  1149. 000015B4: kernel_unknown_0x30E();
  1150. 000015B4: SetBattleLock(1);
  1151. 000015B4: SetControlLock(1);
  1152. 000015B4: return;
  1153.  
  1154. 000015C3: SetControlLock(0);
  1155. 000015C3: SetBattleLock(0);
  1156. 000015C3: kernel_unknown_0x30E();
  1157. 000015C3: PlaySoundEffect(144);
  1158. 000015C3: kernel_unknown_0x34A();
  1159. 000015C3: SetWaitFrames(6);
  1160. 000015C3: Wait();
  1161. 000015C3: kernel_unknown_0x34A();
  1162. 000015C3: SetWaitFrames(14);
  1163. 000015C3: Wait();
  1164. 000015C3: kernel_unknown_0x34A();
  1165. 000015C3: SetWaitFrames(6);
  1166. 000015C3: Wait();
  1167. 000015C3: SetWaitFrames(20);
  1168. 000015C3: Wait();
  1169. 000015C3: WaitForWindowReady();
  1170. 000015C3: SetWindowDimensions(137, 160, 46, 25);
  1171. 000015C3: SetWindowParameters(0, 0);
  1172. 000015C3: WaitForWindowReady();
  1173. 000015C3: SetWindowMessage(34);
  1174. 000015C3: WaitForMessageAcknowledge();
  1175. 000015C3: PlaySoundEffect(144);
  1176. 000015C3: SetWaitFrames(2);
  1177. 000015C3: Wait();
  1178. 000015C3: SetActiveEntityMovespeed(100);
  1179. 000015C3: SetWaitFrames(2);
  1180. 000015C3: Wait();
  1181. 000015C3: SetActiveEntityMovespeed(0);
  1182. 000015C3: kernel_unknown_0x34A();
  1183. 000015C3: SetWaitFrames(6);
  1184. 000015C3: Wait();
  1185. 000015C3: kernel_unknown_0x34A();
  1186. 000015C3: SetWaitFrames(14);
  1187. 000015C3: Wait();
  1188. 000015C3: kernel_unknown_0x34A();
  1189. 000015C3: SetWaitFrames(6);
  1190. 000015C3: Wait();
  1191. 000015C3: PlaySoundEffect(144);
  1192. 000015C3: SetWaitFrames(2);
  1193. 000015C3: Wait();
  1194. 000015C3: SetActiveEntityMovespeed(100);
  1195. 000015C3: SetWaitFrames(2);
  1196. 000015C3: Wait();
  1197. 000015C3: SetActiveEntityMovespeed(0);
  1198. 000015C3: kernel_unknown_0x34A();
  1199. 000015C3: SetWaitFrames(4);
  1200. 000015C3: Wait();
  1201. 000015C3: kernel_unknown_0x34A();
  1202. 000015C3: SetWaitFrames(4);
  1203. 000015C3: Wait();
  1204. 000015C3: kernel_unknown_0x34A();
  1205. 000015C3: SetWaitFrames(4);
  1206. 000015C3: Wait();
  1207. 000015C3: kernel_unknown_0x34A();
  1208. 000015C3: SetWaitFrames(60);
  1209. 000015C3: Wait();
  1210. 000015C3: kernel_unknown_0x34A();
  1211. 000015C3: kernel_unknown_0x30E();
  1212. 000015C3: PlaySoundEffect(250);
  1213. 000015C3: SetWaitFrames(10);
  1214. 000015C3: Wait();
  1215. 000015C3: kernel_unknown_0x30E();
  1216. 000015C3: SetWaitFrames(60);
  1217. 000015C3: Wait();
  1218. 000015C3: kernel_unknown_0x331();
  1219. 000015C3: SetControlLock(0);
  1220. 000015C3: SetWaitFrames(20);
  1221. 000015C3: Wait();
  1222. 000015C3: Write(Read(3705), 1);
  1223. 000015C3: kernel_unknown_0x30E();
  1224. 000015C3: kernel_unknown_0x330();
  1225. 000015C3: kernel_unknown_0x215();
  1226. 000015C3: return;
  1227.  
  1228. 000016B4: if (!Read(3704)) {
  1229. 000016B9: if (Read(3710)) {
  1230. 000016BF: if (!Read(3709)) {
  1231. 000016C4: SetBattleLock(0);
  1232. 000016C4: SetControlLock(0);
  1233. 000016C4: SetWaitFrames(20);
  1234. 000016C4: Wait();
  1235. 000016C4: kernel_unknown_0x330();
  1236. 000016C4: kernel_unknown_0x210();
  1237. 000016DA: } else {
  1238. 000016DB: SetControlLock(0);
  1239. 000016DB: Unknown333(Read(8), 192);
  1240. 000016DB: Write(Read(2), Read(15));
  1241. 000016DB: kernel_unknown_0x330();
  1242. 000016DB: kernel_unknown_0x20E();
  1243. 000016DB: kernel_unknown_0x334();
  1244. 000016DB: kernel_unknown_0x30C();
  1245. 000016DB: if (Read(8) != 19) {
  1246. 000016FD: Write(Read(1009), 1);
  1247. 000016FD: }
  1248. 00001702: }
  1249. 00001704: } else {
  1250. 00001705: SetControlLock(0);
  1251. 00001705: Unknown333(Read(8), 192);
  1252. 00001705: Write(Read(2), Read(15));
  1253. 00001705: kernel_unknown_0x330();
  1254. 00001705: kernel_unknown_0x20E();
  1255. 00001705: kernel_unknown_0x334();
  1256. 00001705: kernel_unknown_0x30C();
  1257. 00001705: if (Read(8) != 19) {
  1258. 00001727: Write(Read(1009), 1);
  1259. 00001727: }
  1260. 0000172C: }
  1261. 0000172E: } else {
  1262. 0000172F: SetControlLock(0);
  1263. 0000172F: Unknown333(Read(8), 192);
  1264. 0000172F: Write(Read(2), Read(15));
  1265. 0000172F: kernel_unknown_0x330();
  1266. 0000172F: kernel_unknown_0x20E();
  1267. 0000172F: kernel_unknown_0x334();
  1268. 0000172F: kernel_unknown_0x30C();
  1269. 0000172F: if (Read(8) != 19) {
  1270. 00001751: Write(Read(1009), 1);
  1271. 00001751: }
  1272. 00001756: }
  1273. 00001756: return;
  1274.  
  1275. 00001758: PlaySoundEffect(11);
  1276. 00001758: SetControlLock(0);
  1277. 00001758: SetActiveEntityMovespeed(35);
  1278. 00001758: SetActiveEntityDirectionAndFacing(Read(4));
  1279. 0000176D: SetActiveEntityDirection(Read(4) + 128);
  1280. 0000176F: FadeOut(250, 0);
  1281. 0000176F: SetWaitFrames(3);
  1282. 0000176F: Wait();
  1283. 0000176F: FadeIn(250, 0);
  1284. 0000176F: SetWaitFrames(7);
  1285. 0000176F: Wait();
  1286. 0000176F: SetActiveEntityMovespeed(0);
  1287. 0000176F: WaitForWindowReady();
  1288. 0000176F: SetWindowDimensions(60, 160, 200, 73);
  1289. 0000176F: SetWindowParameters(0, 0);
  1290. 0000176F: WaitForWindowReady();
  1291. 0000176F: SetWindowMessage(54);
  1292. 0000176F: WaitForMessageAcknowledge();
  1293. 0000176F: SetControlLock(1);
  1294. 0000176F: return;
  1295.  
  1296. 000017A5: SetControlLock(0);
  1297. 000017A5: SetActiveEntityMovespeed(40);
  1298. 000017A5: SetActiveEntityDirectionAndFacing(Read(4));
  1299. 000017B6: SetActiveEntityDirection(Read(4) + 128);
  1300. 000017B8: SetWaitFrames(30);
  1301. 000017B8: Wait();
  1302. 000017B8: SetActiveEntityMovespeed(0);
  1303. 000017B8: WaitForWindowReady();
  1304. 000017B8: SetWindowDimensions(20, 160, 280, 57);
  1305. 000017B8: SetWindowParameters(0, 0);
  1306. 000017B8: WaitForWindowReady();
  1307. 000017B8: SetWindowMessage(37);
  1308. 000017B8: SetControlLock(1);
  1309. 000017B8: return;
  1310.  
  1311. 000017DC: PlaySoundEffect(11);
  1312. 000017DC: SetControlLock(0);
  1313. 000017DC: SetActiveEntityMovespeed(35);
  1314. 000017DC: SetActiveEntityDirectionAndFacing(Read(4));
  1315. 000017F1: SetActiveEntityDirection(Read(4) + 128);
  1316. 000017F3: FadeOut(250, 0);
  1317. 000017F3: SetWaitFrames(3);
  1318. 000017F3: Wait();
  1319. 000017F3: FadeIn(250, 0);
  1320. 000017F3: SetWaitFrames(7);
  1321. 000017F3: Wait();
  1322. 000017F3: SetActiveEntityMovespeed(0);
  1323. 000017F3: WaitForWindowReady();
  1324. 000017F3: SetWindowDimensions(60, 160, 200, 89);
  1325. 000017F3: SetWindowParameters(0, 0);
  1326. 000017F3: WaitForWindowReady();
  1327. 000017F3: SetWindowMessage(60);
  1328. 000017F3: SetControlLock(1);
  1329. 000017F3: return;
  1330.  
  1331. 00001828: PlaySoundEffect(11);
  1332. 00001828: SetControlLock(0);
  1333. 00001828: SetActiveEntityMovespeed(20);
  1334. 00001828: SetActiveEntityDirectionAndFacing(Read(4));
  1335. 0000183D: SetActiveEntityDirection(Read(4) + 128);
  1336. 0000183F: FadeOut(250, 0);
  1337. 0000183F: SetWaitFrames(3);
  1338. 0000183F: Wait();
  1339. 0000183F: FadeIn(250, 0);
  1340. 0000183F: SetWaitFrames(3);
  1341. 0000183F: Wait();
  1342. 0000183F: SetActiveEntityMovespeed(0);
  1343. 0000183F: return;
  1344.  
  1345. 0000188C: PlaySoundEffect(11);
  1346. 0000188C: SetControlLock(0);
  1347. 0000188C: SetActiveEntityMovespeed(20);
  1348. 0000188C: SetActiveEntityDirectionAndFacing(Read(4));
  1349. 000018A1: SetActiveEntityDirection(Read(4) + 128);
  1350. 000018A3: SetWaitFrames(7);
  1351. 000018A3: Wait();
  1352. 000018A3: SetActiveEntityMovespeed(0);
  1353. 000018A3: return;
  1354.  
  1355. 000018CE: SetActiveEntityMovespeed(0);
  1356. 000018CE: if (Read(7226)) {
  1357. 000018D8: kernel_unknown_0x30E();
  1358. 000018D8: SetWaitFrames(28);
  1359. 000018D8: Wait();
  1360. 000018D8: Write(Read(7226), 1);
  1361. 000018E8: }
  1362. 000018E9: kernel_unknown_0x30E();
  1363. 000018E9: if (Read(7227)) {
  1364. 000018F5: kernel_unknown_0x34A();
  1365. 000018F5: SetWaitFrames(20);
  1366. 000018F5: Wait();
  1367. 000018F5: kernel_unknown_0x34A();
  1368. 000018F5: Write(Read(7227), 1);
  1369. 00001907: }
  1370. 00001908: Write(Read(911), 0);
  1371. 00001908: Write(Read(7222), 1);
  1372. 00001908: Write(Read(7221), 1);
  1373. 00001908: Write(Read(7225), 0);
  1374. 00001908: return;
  1375.  
  1376. 00001921: SetActiveEntityMovespeed(0);
  1377. 00001921: kernel_unknown_0x30E();
  1378. 00001921: PlaySoundEffect(433);
  1379. 00001921: FadeOut(250, 0);
  1380. 00001921: SetWaitFrames(3);
  1381. 00001921: Wait();
  1382. 00001921: FadeIn(250, 0);
  1383. 00001921: SetWaitFrames(1);
  1384. 00001921: Wait();
  1385. 00001921: kernel_unknown_0x219();
  1386. 00001921: SetWaitFrames(40);
  1387. 00001921: Wait();
  1388. 00001921: kernel_unknown_0x30E();
  1389. 00001921: SetWaitFrames(9);
  1390. 00001921: Wait();
  1391. 00001921: kernel_unknown_0x30E();
  1392. 00001921: if (!Read(911) < 5) {
  1393. 0000196E: Write(Read(911), Read(911) + 1);
  1394. 0000196F: }
  1395. 0000196F: return;
  1396.  
  1397. 00001971: kernel_unknown_0x30E();
  1398. 00001971: PlaySoundEffect(266);
  1399. 00001971: SetWaitFrames(80);
  1400. 00001971: Wait();
  1401. 00001971: kernel_unknown_0x30A();
  1402. 00001971: SetWaitFrames(100);
  1403. 00001971: Wait();
  1404. 00001971: FadeOut(8, 0);
  1405. 00001971: PlaySoundEffect(0);
  1406. 00001971: SetWaitFrames(100);
  1407. 00001971: Wait();
  1408. 00001971: FadeIn(8, 0);
  1409. 00001971: kernel_unknown_0x33D();
  1410. 00001971: Write(Read(7220), 1);
  1411. 00001971: return;
  1412.  
  1413. 00001D55: Write(Read(7205), 1);
  1414. 00001D55: SetWaitFrames(30);
  1415. 00001D55: Wait();
  1416. 00001D63: kernel_unknown_0x30A();
  1417. 00001D65: kernel_unknown_0x34D();
  1418. 00001D65: SetWaitFrames(30);
  1419. 00001D65: Wait();
  1420. 00001D65: kernel_unknown_0x34D();
  1421. 00001D65: PlaySoundEffect(306);
  1422. 00001D65: SetWaitFrames(130);
  1423. 00001D65: Wait();
  1424. 00001D65: kernel_unknown_0x30A();
  1425. 00001D65: kernel_unknown_0x34E();
  1426. 00001D65: SetWaitFrames(30);
  1427. 00001D65: Wait();
  1428. 00001D65: kernel_unknown_0x30E();
  1429. 00001D65: SetWaitFrames(30);
  1430. 00001D65: Wait();
  1431. 00001D65: PlaySoundEffect(432);
  1432. 00001D65: SetWaitFrames(120);
  1433. 00001D65: Wait();
  1434. 00001D65: kernel_unknown_0x30E();
  1435. 00001D65: SetActiveEntityMovespeed(4);
  1436. 00001D65: kernel_unknown_0x34E();
  1437. 00001D65: kernel_unknown_0x34D();
  1438. 00001D65: SetWaitFrames(100);
  1439. 00001D65: Wait();
  1440. 00001D65: SetWaitFrames(100);
  1441. 00001D65: Wait();
  1442. 00001D65: SetWaitFrames(100);
  1443. 00001D65: Wait();
  1444. 00001D65: FadeOut(16, 1);
  1445. 00001D65: SetWaitFrames(50);
  1446. 00001D65: Wait();
  1447. 00001D65: EnterFieldScene(51, 0);
  1448. 00001D65: kernel_unknown_0x319();
  1449. 00001D65: SetControlLock(1);
  1450. 00001D65: SetBattleLock(1);
  1451. 00001D65: return;
  1452.  
  1453. 0000241B: kernel_unknown_0x351();
  1454. 0000241B: SetControlLock(0);
  1455. 0000241B: SetBattleLock(0);
  1456. 0000241B: SetWaitFrames(60);
  1457. 0000241B: Wait();
  1458. 00002431: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1459. 00002433: SetActiveEntityMovespeed(20);
  1460. 00002433: SetWaitFrames(10);
  1461. 00002433: Wait();
  1462. 00002433: SetActiveEntityMovespeed(0);
  1463. 00002433: WaitForWindowReady();
  1464. 00002433: SetWindowDimensions(122, 160, 76, 41);
  1465. 00002433: SetWindowParameters(0, 0);
  1466. 00002433: WaitForWindowReady();
  1467. 00002433: SetWindowMessage(55);
  1468. 00002433: WaitForMessageAcknowledge();
  1469. 00002433: SetWaitFrames(20);
  1470. 00002433: Wait();
  1471. 00002433: kernel_unknown_0x352();
  1472. 00002433: PlaySoundEffect(383);
  1473. 00002433: SetWaitFrames(20);
  1474. 00002433: Wait();
  1475. 00002433: kernel_unknown_0x351();
  1476. 00002433: kernel_unknown_0x33E();
  1477. 00002433: kernel_unknown_0x30E();
  1478. 00002433: SetWaitFrames(40);
  1479. 00002433: Wait();
  1480. 00002433: WaitForWindowReady();
  1481. 00002433: SetWindowDimensions(90, 160, 140, 41);
  1482. 00002433: SetWindowParameters(0, 0);
  1483. 00002433: WaitForWindowReady();
  1484. 00002433: SetWindowMessage(56);
  1485. 00002433: WaitForMessageAcknowledge();
  1486. 00002433: SetWaitFrames(30);
  1487. 00002433: Wait();
  1488. 00002433: kernel_unknown_0x33D();
  1489. 00002433: SetControlLock(1);
  1490. 00002433: SetBattleLock(1);
  1491. 00002433: return;
  1492.  
  1493. 00002C64: SetControlLock(0);
  1494. 00002C6B: kernel_unknown_0x33A();
  1495. 00002C6D: SetWaitFrames(30);
  1496. 00002C6D: Wait();
  1497. 00002C6D: kernel_unknown_0x33A();
  1498. 00002C6D: FadeOut(16, 1);
  1499. 00002C6D: SetWaitFrames(30);
  1500. 00002C6D: Wait();
  1501. 00002C6D: EnterFieldScene(59, 0);
  1502. 00002C6D: SetControlLock(1);
  1503. 00002C6D: return;
  1504.  
  1505. 00002C99: SetControlLock(0);
  1506. 00002C99: kernel_unknown_0x321();
  1507. 00002C99: SetActiveEntityMovespeed(20);
  1508. 00002CA5: if (!Read(13)) {
  1509. 00002CAA: SetWaitFrames(1);
  1510. 00002CAA: Wait();
  1511. 00002CAA: goto 0x2CA4;
  1512. 00002CB0: }
  1513. 00002CB1: SetActiveEntityMovespeed(0);
  1514. 00002CB1: SetControlLock(1);
  1515. 00002CB1: return;
  1516.  
  1517. 00001F8B: if (Read(7211)) {
  1518. 00001F91: SetControlLock(0);
  1519. 00001F91: Write(Read(7211), 1);
  1520. 00001F91: SetWaitFrames(30);
  1521. 00001F91: Wait();
  1522. 00001F91: WaitForWindowReady();
  1523. 00001F91: SetWindowDimensions(40, 5, 240, 73);
  1524. 00001F91: SetWindowParameters(0, 0);
  1525. 00001F91: WaitForWindowReady();
  1526. 00001F91: SetWindowMessage(53);
  1527. 00001F91: WaitForMessageAcknowledge();
  1528. 00001F91: SetControlLock(1);
  1529. 00001FBA: }
  1530. 00001FBA: return;
  1531.  
  1532. 00001F89: return;
  1533.  
  1534. 0000101E: SetControlLock(0);
  1535. 0000101E: SetBattleLock(0);
  1536. 0000101E: kernel_unknown_0x321();
  1537. 0000101E: if (Read(7202)) {
  1538. 0000102F: WaitForWindowReady();
  1539. 00001031: SetWindowDimensions(100, 160, 120, 41);
  1540. 00001031: SetWindowParameters(0, 1);
  1541. 00001031: WaitForWindowReady();
  1542. 00001031: SetWindowMessage(20);
  1543. 00001031: kernel_unknown_0x30E();
  1544. 00001031: SetActiveEntityMovespeed(20);
  1545. 00001031: SetWaitFrames(40);
  1546. 00001031: Wait();
  1547. 00001031: WaitForWindowReady();
  1548. 00001031: WaitForWindowReady();
  1549. 00001031: SetWindowDimensions(110, 160, 100, 41);
  1550. 00001031: SetWindowParameters(0, 1);
  1551. 00001031: WaitForWindowReady();
  1552. 00001031: SetWindowMessage(21);
  1553. 00001031: kernel_unknown_0x30E();
  1554. 00001031: SetActiveEntityMovespeed(20);
  1555. 0000107B: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1556. 0000107D: if (!Read(13)) {
  1557. 00001082: SetWaitFrames(1);
  1558. 00001082: Wait();
  1559. 00001082: goto 0x107C;
  1560. 00001088: }
  1561. 00001088: WaitForWindowReady();
  1562. 0000108A: SetActiveEntityMovespeed(0);
  1563. 0000108A: SetWaitFrames(10);
  1564. 0000108A: Wait();
  1565. 00001098: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1566. 0000109A: kernel_unknown_0x30E();
  1567. 0000109A: WaitForWindowReady();
  1568. 0000109A: SetWindowDimensions(70, 160, 180, 57);
  1569. 0000109A: SetWindowParameters(0, 0);
  1570. 0000109A: WaitForWindowReady();
  1571. 0000109A: SetWindowMessage(22);
  1572. 0000109A: WaitForMessageAcknowledge();
  1573. 0000109A: Write(Read(7202), 1);
  1574. 000010BE: } else {
  1575. 000010BF: SetActiveEntityMovespeed(40);
  1576. 000010C8: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1577. 000010CA: if (!Read(13)) {
  1578. 000010CF: SetWaitFrames(1);
  1579. 000010CF: Wait();
  1580. 000010CF: goto 0x10C9;
  1581. 000010D5: }
  1582. 000010D6: SetActiveEntityMovespeed(0);
  1583. 000010D6: SetWaitFrames(10);
  1584. 000010D6: Wait();
  1585. 000010E4: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1586. 000010E6: kernel_unknown_0x30E();
  1587. 000010E6: WaitForWindowReady();
  1588. 000010E6: SetWindowDimensions(30, 160, 260, 57);
  1589. 000010E6: SetWindowParameters(0, 0);
  1590. 000010E6: WaitForWindowReady();
  1591. 000010E6: SetWindowMessage(23);
  1592. 000010E6: WaitForMessageAcknowledge();
  1593. 000010E6: }
  1594. 00001103: kernel_unknown_0x30E();
  1595. 00001103: SetControlLock(1);
  1596. 00001103: SetBattleLock(1);
  1597. 00001103: return;
  1598.  
  1599. 0000241B: kernel_unknown_0x351();
  1600. 0000241B: SetControlLock(0);
  1601. 0000241B: SetBattleLock(0);
  1602. 0000241B: SetWaitFrames(60);
  1603. 0000241B: Wait();
  1604. 00002431: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1605. 00002433: SetActiveEntityMovespeed(20);
  1606. 00002433: SetWaitFrames(10);
  1607. 00002433: Wait();
  1608. 00002433: SetActiveEntityMovespeed(0);
  1609. 00002433: WaitForWindowReady();
  1610. 00002433: SetWindowDimensions(122, 160, 76, 41);
  1611. 00002433: SetWindowParameters(0, 0);
  1612. 00002433: WaitForWindowReady();
  1613. 00002433: SetWindowMessage(55);
  1614. 00002433: WaitForMessageAcknowledge();
  1615. 00002433: SetWaitFrames(20);
  1616. 00002433: Wait();
  1617. 00002433: kernel_unknown_0x352();
  1618. 00002433: PlaySoundEffect(383);
  1619. 00002433: SetWaitFrames(20);
  1620. 00002433: Wait();
  1621. 00002433: kernel_unknown_0x351();
  1622. 00002433: kernel_unknown_0x33E();
  1623. 00002433: kernel_unknown_0x30E();
  1624. 00002433: SetWaitFrames(40);
  1625. 00002433: Wait();
  1626. 00002433: WaitForWindowReady();
  1627. 00002433: SetWindowDimensions(90, 160, 140, 41);
  1628. 00002433: SetWindowParameters(0, 0);
  1629. 00002433: WaitForWindowReady();
  1630. 00002433: SetWindowMessage(56);
  1631. 00002433: WaitForMessageAcknowledge();
  1632. 00002433: SetWaitFrames(30);
  1633. 00002433: Wait();
  1634. 00002433: kernel_unknown_0x33D();
  1635. 00002433: SetControlLock(1);
  1636. 00002433: SetBattleLock(1);
  1637. 00002433: return;
  1638.  
  1639. 00001112: SetControlLock(0);
  1640. 00001112: SetBattleLock(0);
  1641. 00001112: kernel_unknown_0x321();
  1642. 00001112: if (Read(7202)) {
  1643. 00001123: WaitForWindowReady();
  1644. 00001125: SetWindowDimensions(100, 160, 120, 41);
  1645. 00001125: SetWindowParameters(0, 1);
  1646. 00001125: WaitForWindowReady();
  1647. 00001125: SetWindowMessage(24);
  1648. 00001125: kernel_unknown_0x30E();
  1649. 00001125: SetActiveEntityMovespeed(20);
  1650. 00001125: SetWaitFrames(40);
  1651. 00001125: Wait();
  1652. 00001125: WaitForWindowReady();
  1653. 00001125: WaitForWindowReady();
  1654. 00001125: SetWindowDimensions(85, 160, 150, 41);
  1655. 00001125: SetWindowParameters(0, 1);
  1656. 00001125: WaitForWindowReady();
  1657. 00001125: SetWindowMessage(25);
  1658. 00001125: kernel_unknown_0x30E();
  1659. 00001125: SetActiveEntityMovespeed(20);
  1660. 0000116F: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1661. 00001171: if (!Read(13)) {
  1662. 00001176: SetWaitFrames(1);
  1663. 00001176: Wait();
  1664. 00001176: goto 0x1170;
  1665. 0000117C: }
  1666. 0000117C: WaitForWindowReady();
  1667. 0000117E: SetActiveEntityMovespeed(0);
  1668. 0000117E: SetWaitFrames(10);
  1669. 0000117E: Wait();
  1670. 0000118C: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1671. 0000118E: kernel_unknown_0x30E();
  1672. 0000118E: WaitForWindowReady();
  1673. 0000118E: SetWindowDimensions(27, 160, 265, 57);
  1674. 0000118E: SetWindowParameters(0, 0);
  1675. 0000118E: WaitForWindowReady();
  1676. 0000118E: SetWindowMessage(26);
  1677. 0000118E: WaitForMessageAcknowledge();
  1678. 0000118E: Write(Read(7202), 1);
  1679. 000011B2: } else {
  1680. 000011B3: SetActiveEntityMovespeed(40);
  1681. 000011BC: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1682. 000011BE: if (!Read(13)) {
  1683. 000011C3: SetWaitFrames(1);
  1684. 000011C3: Wait();
  1685. 000011C3: goto 0x11BD;
  1686. 000011C9: }
  1687. 000011CA: SetActiveEntityMovespeed(0);
  1688. 000011CA: SetWaitFrames(10);
  1689. 000011CA: Wait();
  1690. 000011D8: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1691. 000011DA: kernel_unknown_0x30E();
  1692. 000011DA: WaitForWindowReady();
  1693. 000011DA: SetWindowDimensions(30, 160, 260, 57);
  1694. 000011DA: SetWindowParameters(0, 0);
  1695. 000011DA: WaitForWindowReady();
  1696. 000011DA: SetWindowMessage(27);
  1697. 000011DA: WaitForMessageAcknowledge();
  1698. 000011DA: }
  1699. 000011F7: kernel_unknown_0x30E();
  1700. 000011F7: SetControlLock(1);
  1701. 000011F7: SetBattleLock(1);
  1702. 000011F7: return;
  1703.  
  1704. 00002C99: SetControlLock(0);
  1705. 00002C99: kernel_unknown_0x321();
  1706. 00002C99: SetActiveEntityMovespeed(20);
  1707. 00002CA5: if (!Read(13)) {
  1708. 00002CAA: SetWaitFrames(1);
  1709. 00002CAA: Wait();
  1710. 00002CAA: goto 0x2CA4;
  1711. 00002CB0: }
  1712. 00002CB1: SetActiveEntityMovespeed(0);
  1713. 00002CB1: SetControlLock(1);
  1714. 00002CB1: return;
  1715.  
  1716. 00001206: SetControlLock(0);
  1717. 00001206: SetBattleLock(0);
  1718. 00001206: kernel_unknown_0x321();
  1719. 00001206: if (Read(7202)) {
  1720. 00001217: WaitForWindowReady();
  1721. 00001219: SetWindowDimensions(85, 160, 150, 41);
  1722. 00001219: SetWindowParameters(0, 1);
  1723. 00001219: WaitForWindowReady();
  1724. 00001219: SetWindowMessage(28);
  1725. 00001219: kernel_unknown_0x30E();
  1726. 00001219: SetActiveEntityMovespeed(20);
  1727. 00001219: SetWaitFrames(40);
  1728. 00001219: Wait();
  1729. 00001219: WaitForWindowReady();
  1730. 00001219: WaitForWindowReady();
  1731. 00001219: SetWindowDimensions(73, 160, 174, 41);
  1732. 00001219: SetWindowParameters(0, 1);
  1733. 00001219: WaitForWindowReady();
  1734. 00001219: SetWindowMessage(29);
  1735. 00001219: kernel_unknown_0x30E();
  1736. 00001219: SetActiveEntityMovespeed(20);
  1737. 00001263: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1738. 00001265: if (!Read(13)) {
  1739. 0000126A: SetWaitFrames(1);
  1740. 0000126A: Wait();
  1741. 0000126A: goto 0x1264;
  1742. 00001270: }
  1743. 00001270: WaitForWindowReady();
  1744. 00001272: SetActiveEntityMovespeed(0);
  1745. 00001272: SetWaitFrames(10);
  1746. 00001272: Wait();
  1747. 00001280: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1748. 00001282: kernel_unknown_0x30E();
  1749. 00001282: WaitForWindowReady();
  1750. 00001282: SetWindowDimensions(80, 160, 160, 41);
  1751. 00001282: SetWindowParameters(0, 0);
  1752. 00001282: WaitForWindowReady();
  1753. 00001282: SetWindowMessage(30);
  1754. 00001282: WaitForMessageAcknowledge();
  1755. 00001282: Write(Read(7202), 1);
  1756. 000012A6: } else {
  1757. 000012A7: SetActiveEntityMovespeed(40);
  1758. 000012B0: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1759. 000012B2: if (!Read(13)) {
  1760. 000012B7: SetWaitFrames(1);
  1761. 000012B7: Wait();
  1762. 000012B7: goto 0x12B1;
  1763. 000012BD: }
  1764. 000012BE: SetActiveEntityMovespeed(0);
  1765. 000012BE: SetWaitFrames(10);
  1766. 000012BE: Wait();
  1767. 000012CC: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  1768. 000012CE: kernel_unknown_0x30E();
  1769. 000012CE: WaitForWindowReady();
  1770. 000012CE: SetWindowDimensions(27, 160, 265, 41);
  1771. 000012CE: SetWindowParameters(0, 0);
  1772. 000012CE: WaitForWindowReady();
  1773. 000012CE: SetWindowMessage(31);
  1774. 000012CE: WaitForMessageAcknowledge();
  1775. 000012CE: }
  1776. 000012EB: kernel_unknown_0x30E();
  1777. 000012EB: SetControlLock(1);
  1778. 000012EB: SetBattleLock(1);
  1779. 000012EB: return;
  1780.  
  1781. 00002CBA: SetControlLock(0);
  1782. 00002CBA: kernel_unknown_0x321();
  1783. 00002CBA: SetActiveEntityMovespeed(20);
  1784. 00002CC6: if (!Read(13)) {
  1785. 00002CCB: SetWaitFrames(1);
  1786. 00002CCB: Wait();
  1787. 00002CCB: goto 0x2CC5;
  1788. 00002CD1: }
  1789. 00002CD2: SetActiveEntityMovespeed(0);
  1790. 00002CD2: SetControlLock(1);
  1791. 00002CD2: return;
  1792.  
  1793. 0000234C: if (Read(5) != 0) {
  1794. 00002354: if (Read(6) != 51) {
  1795. 0000235C: Write(Read(909), Read(7));
  1796. 0000235C: kernel_unknown_0x319();
  1797. 0000235C: Write(Read(912), 0);
  1798. 0000235C: PlaySoundEffect(383);
  1799. 0000235C: kernel_unknown_0x308();
  1800. 0000235C: kernel_unknown_0x309();
  1801. 0000235C: SetActiveEntityDirectionAndFacing(151);
  1802. 0000235C: SetBattleLock(0);
  1803. 0000235C: SetControlLock(0);
  1804. 0000235C: kernel_unknown_0x31C();
  1805. 0000235C: kernel_unknown_0x32F();
  1806. 0000235C: SetWaitFrames(15);
  1807. 0000235C: Wait();
  1808. 0000235C: SetActiveEntityMovespeed(160);
  1809. 0000239D: kernel_unknown_0x33A();
  1810. 0000239F: SetWaitFrames(150);
  1811. 0000239F: Wait();
  1812. 0000239F: kernel_unknown_0x33A();
  1813. 0000239F: SetWaitFrames(85);
  1814. 0000239F: Wait();
  1815. 0000239F: SetActiveEntityMovespeed(0);
  1816. 0000239F: kernel_unknown_0x220();
  1817. 000023B4: }
  1818. 000023B6: } else {
  1819. 000023B7: if (Read(5) != 1) {
  1820. 000023BF: if (!Read(984)) {
  1821. 000023C4: if (Read(7220)) {
  1822. 000023CA: if (!Read(7224)) {
  1823. 000023CF: SetControlLock(0);
  1824. 000023CF: kernel_unknown_0x339();
  1825. 000023CF: kernel_unknown_0x319();
  1826. 000023CF: kernel_unknown_0x308();
  1827. 000023CF: kernel_unknown_0x309();
  1828. 000023CF: SetActiveEntityDirectionAndFacing(128);
  1829. 000023CF: kernel_unknown_0x31C();
  1830. 000023CF: kernel_unknown_0x32F();
  1831. 000023CF: kernel_unknown_0x351();
  1832. 000023CF: SetWaitFrames(10);
  1833. 000023CF: Wait();
  1834. 000023CF: kernel_unknown_0x21F();
  1835. 000023CF: }
  1836. 000023FC: }
  1837. 000023FC: }
  1838. 000023FC: }
  1839. 000023FC: }
  1840. 000023FD: if (!Read(0) unknown_operation 1314) {
  1841. 00002405: if (!Read(1019)) {
  1842. 0000240A: kernel_unknown_0x308();
  1843. 0000240A: kernel_unknown_0x309();
  1844. 0000240A: SetActiveEntityDirectionAndFacing(245);
  1845. 00002419: }
  1846. 00002419: }
  1847. 00002419: return;
  1848.  
  1849. 000022F0: kernel_unknown_0x19();
  1850. 000022F0: if (!14 <= 100) {
  1851. 000022F8: kernel_unknown_0x30D();
  1852. 000022F9: }
  1853. 000022FA: if (!Read(0) < 1580) {
  1854. 00002302: kernel_unknown_0x18();
  1855. 00002302: if (!14 <= 256) {
  1856. 0000230B: kernel_unknown_0x218();
  1857. 0000230E: }
  1858. 00002310: } else {
  1859. 00002311: if (Read(0) != 1580) {
  1860. 00002319: kernel_unknown_0x18();
  1861. 00002319: if (!14 <= 256) {
  1862. 00002322: EnterFieldScene(52, 0);
  1863. 00002322: }
  1864. 00002327: }
  1865. 00002327: }
  1866. 00002328: if (Read(0) != 1596) {
  1867. 00002330: kernel_unknown_0x18();
  1868. 00002330: if (!9 <= 256) {
  1869. 00002339: Write(Read(0), 1598);
  1870. 00002339: EnterFieldScene(52, 0);
  1871. 00002339: Write(Read(7214), 1);
  1872. 0000234A: }
  1873. 0000234A: }
  1874. 0000234A: return;
  1875.  
  1876. 0000253A: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2 || Read(8) == 19) {
  1877. 00002543: if (Read(8) != 19) {
  1878. 0000254B: Write(Read(7215), 1);
  1879. 00002550: }
  1880. 00002551: if (!Read(6803)) {
  1881. 00002556: if (Read(7212)) {
  1882. 0000255C: SetControlLock(0);
  1883. 0000255C: Write(Read(7212), 1);
  1884. 0000255C: kernel_unknown_0x221();
  1885. 0000255C: kernel_unknown_0x334();
  1886. 0000256A: }
  1887. 0000256A: }
  1888. 0000256B: if (!Read(3704)) {
  1889. 00002570: if (Read(3710)) {
  1890. 00002576: if (!Read(3709)) {
  1891. 0000257B: SetBattleLock(0);
  1892. 0000257B: SetControlLock(0);
  1893. 0000257B: SetWaitFrames(20);
  1894. 0000257B: Wait();
  1895. 0000257B: kernel_unknown_0x330();
  1896. 0000257B: kernel_unknown_0x210();
  1897. 00002591: } else {
  1898. 00002591: kernel_unknown_0x30C();
  1899. 00002593: if (Read(8) != 3) {
  1900. 0000259B: Write(Read(1021), 1);
  1901. 0000259B: }
  1902. 000025A0: }
  1903. 000025A2: } else {
  1904. 000025A2: kernel_unknown_0x30C();
  1905. 000025A4: if (Read(8) != 3) {
  1906. 000025AC: Write(Read(1021), 1);
  1907. 000025AC: }
  1908. 000025B1: }
  1909. 000025B3: } else {
  1910. 000025B3: kernel_unknown_0x30C();
  1911. 000025B5: if (Read(8) != 3) {
  1912. 000025BD: Write(Read(1021), 1);
  1913. 000025BD: }
  1914. 000025C2: }
  1915. 000025C2: }
  1916. 000025C2: return;
  1917.  
  1918. 000025C4: Write(Read(1021), 0);
  1919. 000025C4: Write(Read(1019), 0);
  1920. 000025C4: Write(Read(7215), 0);
  1921. 000025C4: return;
  1922.  
  1923. 00001758: PlaySoundEffect(11);
  1924. 00001758: SetControlLock(0);
  1925. 00001758: SetActiveEntityMovespeed(35);
  1926. 00001758: SetActiveEntityDirectionAndFacing(Read(4));
  1927. 0000176D: SetActiveEntityDirection(Read(4) + 128);
  1928. 0000176F: FadeOut(250, 0);
  1929. 0000176F: SetWaitFrames(3);
  1930. 0000176F: Wait();
  1931. 0000176F: FadeIn(250, 0);
  1932. 0000176F: SetWaitFrames(7);
  1933. 0000176F: Wait();
  1934. 0000176F: SetActiveEntityMovespeed(0);
  1935. 0000176F: WaitForWindowReady();
  1936. 0000176F: SetWindowDimensions(60, 160, 200, 73);
  1937. 0000176F: SetWindowParameters(0, 0);
  1938. 0000176F: WaitForWindowReady();
  1939. 0000176F: SetWindowMessage(54);
  1940. 0000176F: WaitForMessageAcknowledge();
  1941. 0000176F: SetControlLock(1);
  1942. 0000176F: return;
  1943.  
  1944. 000017A5: SetControlLock(0);
  1945. 000017A5: SetActiveEntityMovespeed(40);
  1946. 000017A5: SetActiveEntityDirectionAndFacing(Read(4));
  1947. 000017B6: SetActiveEntityDirection(Read(4) + 128);
  1948. 000017B8: SetWaitFrames(30);
  1949. 000017B8: Wait();
  1950. 000017B8: SetActiveEntityMovespeed(0);
  1951. 000017B8: WaitForWindowReady();
  1952. 000017B8: SetWindowDimensions(20, 160, 280, 57);
  1953. 000017B8: SetWindowParameters(0, 0);
  1954. 000017B8: WaitForWindowReady();
  1955. 000017B8: SetWindowMessage(37);
  1956. 000017B8: SetControlLock(1);
  1957. 000017B8: return;
  1958.  
  1959. 000017DC: PlaySoundEffect(11);
  1960. 000017DC: SetControlLock(0);
  1961. 000017DC: SetActiveEntityMovespeed(35);
  1962. 000017DC: SetActiveEntityDirectionAndFacing(Read(4));
  1963. 000017F1: SetActiveEntityDirection(Read(4) + 128);
  1964. 000017F3: FadeOut(250, 0);
  1965. 000017F3: SetWaitFrames(3);
  1966. 000017F3: Wait();
  1967. 000017F3: FadeIn(250, 0);
  1968. 000017F3: SetWaitFrames(7);
  1969. 000017F3: Wait();
  1970. 000017F3: SetActiveEntityMovespeed(0);
  1971. 000017F3: WaitForWindowReady();
  1972. 000017F3: SetWindowDimensions(60, 160, 200, 89);
  1973. 000017F3: SetWindowParameters(0, 0);
  1974. 000017F3: WaitForWindowReady();
  1975. 000017F3: SetWindowMessage(60);
  1976. 000017F3: SetControlLock(1);
  1977. 000017F3: return;
  1978.  
  1979. 00001828: PlaySoundEffect(11);
  1980. 00001828: SetControlLock(0);
  1981. 00001828: SetActiveEntityMovespeed(20);
  1982. 00001828: SetActiveEntityDirectionAndFacing(Read(4));
  1983. 0000183D: SetActiveEntityDirection(Read(4) + 128);
  1984. 0000183F: FadeOut(250, 0);
  1985. 0000183F: SetWaitFrames(3);
  1986. 0000183F: Wait();
  1987. 0000183F: FadeIn(250, 0);
  1988. 0000183F: SetWaitFrames(3);
  1989. 0000183F: Wait();
  1990. 0000183F: SetActiveEntityMovespeed(0);
  1991. 0000183F: return;
  1992.  
  1993. 0000188C: PlaySoundEffect(11);
  1994. 0000188C: SetControlLock(0);
  1995. 0000188C: SetActiveEntityMovespeed(20);
  1996. 0000188C: SetActiveEntityDirectionAndFacing(Read(4));
  1997. 000018A1: SetActiveEntityDirection(Read(4) + 128);
  1998. 000018A3: SetWaitFrames(7);
  1999. 000018A3: Wait();
  2000. 000018A3: SetActiveEntityMovespeed(0);
  2001. 000018A3: return;
  2002.  
  2003. 00002C64: SetControlLock(0);
  2004. 00002C6B: kernel_unknown_0x33A();
  2005. 00002C6D: SetWaitFrames(30);
  2006. 00002C6D: Wait();
  2007. 00002C6D: kernel_unknown_0x33A();
  2008. 00002C6D: FadeOut(16, 1);
  2009. 00002C6D: SetWaitFrames(30);
  2010. 00002C6D: Wait();
  2011. 00002C6D: EnterFieldScene(59, 0);
  2012. 00002C6D: SetControlLock(1);
  2013. 00002C6D: return;
  2014.  
  2015. 00001FBC: if (Read(7218)) {
  2016. 00001FC2: SetControlLock(0);
  2017. 00001FC2: Write(Read(7218), 1);
  2018. 00001FC2: SetWaitFrames(30);
  2019. 00001FC2: Wait();
  2020. 00001FC2: WaitForWindowReady();
  2021. 00001FC2: SetWindowDimensions(40, 5, 240, 89);
  2022. 00001FC2: SetWindowParameters(0, 0);
  2023. 00001FC2: WaitForWindowReady();
  2024. 00001FC2: SetWindowMessage(59);
  2025. 00001FC2: WaitForMessageAcknowledge();
  2026. 00001FC2: SetControlLock(1);
  2027. 00001FEB: }
  2028. 00001FEB: return;
  2029.  
  2030. 00001FF8: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  2031. 00002001: SetControlLock(0);
  2032. 00002001: Write(Read(1008), 1);
  2033. 00002001: Unknown333(Read(8), 192);
  2034. 00002001: Write(Read(2), Read(15));
  2035. 00002001: kernel_unknown_0x330();
  2036. 00002001: kernel_unknown_0x20E();
  2037. 00002001: kernel_unknown_0x334();
  2038. 00002001: kernel_unknown_0x30C();
  2039. 00002001: if (Read(8) != 4) {
  2040. 00002029: Write(Read(1009), 1);
  2041. 0000202E: }
  2042. 0000202E: }
  2043. 0000202E: return;
  2044.  
  2045. 00002030: if (!Read(0) < 385) {
  2046. 00002038: if (!Read(7204)) {
  2047. 0000203D: SetControlLock(0);
  2048. 0000203D: SetBattleLock(0);
  2049. 0000203D: SetWaitFrames(5);
  2050. 0000203D: Wait();
  2051. 0000203D: Write(Read(3), Read(4));
  2052. 0000203D: kernel_unknown_0x330();
  2053. 0000203D: kernel_unknown_0x20F();
  2054. 0000203D: kernel_unknown_0x334();
  2055. 0000203D: SetWaitFrames(20);
  2056. 0000203D: Wait();
  2057. 0000203D: kernel_unknown_0x330();
  2058. 0000203D: kernel_unknown_0x211();
  2059. 0000203D: kernel_unknown_0x334();
  2060. 0000203D: kernel_unknown_0x354();
  2061. 0000206C: } else {
  2062. 0000206D: SetControlLock(0);
  2063. 0000206D: SetWaitFrames(5);
  2064. 0000206D: Wait();
  2065. 0000206D: Write(Read(3), Read(4));
  2066. 0000206D: kernel_unknown_0x330();
  2067. 0000206D: kernel_unknown_0x20F();
  2068. 0000206D: kernel_unknown_0x334();
  2069. 0000206D: Write(Read(1008), 0);
  2070. 0000206D: Write(Read(1009), 0);
  2071. 0000206D: kernel_unknown_0x30E();
  2072. 0000206D: PlaySoundEffect(276);
  2073. 0000206D: SetWaitFrames(18);
  2074. 0000206D: Wait();
  2075. 0000206D: SetBattleLock(1);
  2076. 0000206D: kernel_unknown_0x30E();
  2077. 0000206D: kernel_unknown_0x332();
  2078. 0000206D: SetControlLock(1);
  2079. 0000206D: }
  2080. 000020B0: } else {
  2081. 000020B1: if (!Read(1000)) {
  2082. 000020B6: SetControlLock(0);
  2083. 000020B6: SetBattleLock(0);
  2084. 000020B6: SetWaitFrames(5);
  2085. 000020B6: Wait();
  2086. 000020B6: Write(Read(3), Read(4));
  2087. 000020B6: kernel_unknown_0x330();
  2088. 000020B6: kernel_unknown_0x20F();
  2089. 000020B6: kernel_unknown_0x334();
  2090. 000020B6: SetWaitFrames(20);
  2091. 000020B6: Wait();
  2092. 000020B6: kernel_unknown_0x330();
  2093. 000020B6: kernel_unknown_0x212();
  2094. 000020B6: kernel_unknown_0x334();
  2095. 000020B6: Write(Read(1008), 0);
  2096. 000020B6: Write(Read(1009), 0);
  2097. 000020B6: kernel_unknown_0x30E();
  2098. 000020B6: PlaySoundEffect(276);
  2099. 000020B6: SetWaitFrames(18);
  2100. 000020B6: Wait();
  2101. 000020B6: kernel_unknown_0x30E();
  2102. 000020B6: SetBattleLock(1);
  2103. 000020B6: kernel_unknown_0x332();
  2104. 000020B6: SetControlLock(1);
  2105. 0000210B: } else {
  2106. 0000210C: SetControlLock(0);
  2107. 0000210C: SetWaitFrames(5);
  2108. 0000210C: Wait();
  2109. 0000210C: Write(Read(3), Read(4));
  2110. 0000210C: kernel_unknown_0x330();
  2111. 0000210C: kernel_unknown_0x20F();
  2112. 0000210C: kernel_unknown_0x334();
  2113. 0000210C: Write(Read(1008), 0);
  2114. 0000210C: Write(Read(1009), 0);
  2115. 0000210C: kernel_unknown_0x30E();
  2116. 0000210C: PlaySoundEffect(276);
  2117. 0000210C: SetWaitFrames(18);
  2118. 0000210C: Wait();
  2119. 0000210C: SetBattleLock(1);
  2120. 0000210C: kernel_unknown_0x30E();
  2121. 0000210C: kernel_unknown_0x332();
  2122. 0000210C: SetControlLock(1);
  2123. 0000210C: }
  2124. 0000210C: }
  2125. 0000214D: return;
  2126.  
  2127. 000012FA: SetControlLock(0);
  2128. 000012FA: SetBattleLock(0);
  2129. 000012FA: kernel_unknown_0x321();
  2130. 000012FA: if (Read(7202)) {
  2131. 0000130B: WaitForWindowReady();
  2132. 0000130D: SetWindowDimensions(118, 160, 84, 25);
  2133. 0000130D: SetWindowParameters(0, 1);
  2134. 0000130D: WaitForWindowReady();
  2135. 0000130D: SetWindowMessage(32);
  2136. 00001325: kernel_unknown_0x30E();
  2137. 00001325: SetActiveEntityMovespeed(20);
  2138. 00001325: SetWaitFrames(30);
  2139. 00001325: Wait();
  2140. 00001325: WaitForWindowReady();
  2141. 00001325: PlaySoundEffect(276);
  2142. 00001325: kernel_unknown_0x30E();
  2143. 00001325: SetActiveEntityMovespeed(20);
  2144. 00001346: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  2145. 00001348: if (!Read(13)) {
  2146. 0000134D: SetWaitFrames(1);
  2147. 0000134D: Wait();
  2148. 0000134D: goto 0x1347;
  2149. 00001353: }
  2150. 00001354: SetActiveEntityMovespeed(0);
  2151. 00001354: SetWaitFrames(30);
  2152. 00001354: Wait();
  2153. 00001362: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  2154. 00001363: WaitForWindowReady();
  2155. 00001365: SetWindowDimensions(88, 160, 144, 25);
  2156. 00001365: SetWindowParameters(0, 0);
  2157. 00001365: WaitForWindowReady();
  2158. 00001365: SetWindowMessage(33);
  2159. 00001365: WaitForMessageAcknowledge();
  2160. 00001365: Write(Read(7202), 1);
  2161. 00001382: } else {
  2162. 00001383: PlaySoundEffect(276);
  2163. 00001383: kernel_unknown_0x30E();
  2164. 00001383: SetActiveEntityMovespeed(40);
  2165. 00001396: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  2166. 00001398: if (!Read(13)) {
  2167. 0000139D: SetWaitFrames(1);
  2168. 0000139D: Wait();
  2169. 0000139D: goto 0x1397;
  2170. 000013A3: }
  2171. 000013A4: SetActiveEntityMovespeed(0);
  2172. 000013A4: SetWaitFrames(10);
  2173. 000013A4: Wait();
  2174. 000013B2: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  2175. 000013B4: if (Read(7203)) {
  2176. 000013BA: SetWaitFrames(30);
  2177. 000013BA: Wait();
  2178. 000013BA: WaitForWindowReady();
  2179. 000013BA: SetWindowDimensions(88, 160, 144, 25);
  2180. 000013BA: SetWindowParameters(0, 0);
  2181. 000013BA: WaitForWindowReady();
  2182. 000013BA: SetWindowMessage(33);
  2183. 000013BA: WaitForMessageAcknowledge();
  2184. 000013BA: Write(Read(7203), 1);
  2185. 000013BA: }
  2186. 000013DB: }
  2187. 000013DC: SetBattleLock(1);
  2188. 000013DC: SetControlLock(1);
  2189. 000013DC: return;
  2190.  
  2191. 00002248: if (Read(5) != 0) {
  2192. 00002250: if (Read(6) != 40) {
  2193. 00002258: if (Read(7216)) {
  2194. 0000225E: SetControlLock(0);
  2195. 0000225E: Write(Read(7216), 1);
  2196. 0000225E: SetWaitFrames(30);
  2197. 0000225E: Wait();
  2198. 0000225E: WaitForWindowReady();
  2199. 0000225E: SetWindowDimensions(25, 5, 270, 121);
  2200. 0000225E: SetWindowParameters(0, 0);
  2201. 0000225E: WaitForWindowReady();
  2202. 0000225E: SetWindowMessage(58);
  2203. 0000225E: WaitForMessageAcknowledge();
  2204. 0000225E: SetControlLock(1);
  2205. 00002287: }
  2206. 00002287: }
  2207. 00002287: }
  2208. 00002288: if (!Read(0) unknown_operation 641) {
  2209. 00002290: if (!Read(3708)) {
  2210. 00002295: kernel_unknown_0x308();
  2211. 00002295: kernel_unknown_0x309();
  2212. 00002295: SetActiveEntityDirectionAndFacing(128);
  2213. 000022A4: }
  2214. 000022A4: }
  2215. 000022A4: return;
  2216.  
  2217. 000022B1: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  2218. 000022BA: if (!Read(3704)) {
  2219. 000022BF: if (Read(3710)) {
  2220. 000022C5: if (!Read(3709)) {
  2221. 000022CA: SetControlLock(0);
  2222. 000022CA: SetBattleLock(0);
  2223. 000022CA: SetWaitFrames(20);
  2224. 000022CA: Wait();
  2225. 000022CA: kernel_unknown_0x330();
  2226. 000022CA: kernel_unknown_0x210();
  2227. 000022E0: } else {
  2228. 000022E0: kernel_unknown_0x30C();
  2229. 000022E0: }
  2230. 000022E3: } else {
  2231. 000022E3: kernel_unknown_0x30C();
  2232. 000022E3: }
  2233. 000022E6: } else {
  2234. 000022E6: kernel_unknown_0x30C();
  2235. 000022E6: }
  2236. 000022E7: }
  2237. 000022E7: return;
  2238.  
  2239. 000022E9: Write(Read(3708), 0);
  2240. 000022E9: return;
  2241.  
  2242. 000021C7: if (Read(7213)) {
  2243. 000021CD: SetControlLock(0);
  2244. 000021CD: Write(Read(7213), 1);
  2245. 000021CD: SetWaitFrames(30);
  2246. 000021CD: Wait();
  2247. 000021CD: WaitForWindowReady();
  2248. 000021CD: SetWindowDimensions(20, 5, 280, 137);
  2249. 000021CD: SetWindowParameters(0, 0);
  2250. 000021CD: WaitForWindowReady();
  2251. 000021CD: SetWindowMessage(57);
  2252. 000021CD: WaitForMessageAcknowledge();
  2253. 000021CD: SetControlLock(1);
  2254. 000021F6: }
  2255. 000021F6: return;
  2256.  
  2257. 000021C5: return;
  2258.  
  2259. 00002203: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  2260. 0000220C: if (!Read(3705)) {
  2261. 00002211: if (!Read(3706)) {
  2262. 00002215: kernel_unknown_0x30C();
  2263. 00002217: if (Read(8) != 6) {
  2264. 0000221F: Write(Read(1017), 1);
  2265. 00002224: }
  2266. 00002226: } else {
  2267. 00002227: kernel_unknown_0x330();
  2268. 00002227: kernel_unknown_0x214();
  2269. 00002227: }
  2270. 00002230: } else {
  2271. 00002230: kernel_unknown_0x30C();
  2272. 00002232: if (Read(8) != 6) {
  2273. 0000223A: Write(Read(1017), 1);
  2274. 0000223A: }
  2275. 0000223F: }
  2276. 0000223F: }
  2277. 0000223F: return;
  2278.  
  2279. 00002241: Write(Read(1017), 0);
  2280. 00002241: return;
  2281.  
  2282. 000015C3: SetControlLock(0);
  2283. 000015C3: SetBattleLock(0);
  2284. 000015C3: kernel_unknown_0x30E();
  2285. 000015C3: PlaySoundEffect(144);
  2286. 000015C3: kernel_unknown_0x34A();
  2287. 000015C3: SetWaitFrames(6);
  2288. 000015C3: Wait();
  2289. 000015C3: kernel_unknown_0x34A();
  2290. 000015C3: SetWaitFrames(14);
  2291. 000015C3: Wait();
  2292. 000015C3: kernel_unknown_0x34A();
  2293. 000015C3: SetWaitFrames(6);
  2294. 000015C3: Wait();
  2295. 000015C3: SetWaitFrames(20);
  2296. 000015C3: Wait();
  2297. 000015C3: WaitForWindowReady();
  2298. 000015C3: SetWindowDimensions(137, 160, 46, 25);
  2299. 000015C3: SetWindowParameters(0, 0);
  2300. 000015C3: WaitForWindowReady();
  2301. 000015C3: SetWindowMessage(34);
  2302. 000015C3: WaitForMessageAcknowledge();
  2303. 000015C3: PlaySoundEffect(144);
  2304. 000015C3: SetWaitFrames(2);
  2305. 000015C3: Wait();
  2306. 000015C3: SetActiveEntityMovespeed(100);
  2307. 000015C3: SetWaitFrames(2);
  2308. 000015C3: Wait();
  2309. 000015C3: SetActiveEntityMovespeed(0);
  2310. 000015C3: kernel_unknown_0x34A();
  2311. 000015C3: SetWaitFrames(6);
  2312. 000015C3: Wait();
  2313. 000015C3: kernel_unknown_0x34A();
  2314. 000015C3: SetWaitFrames(14);
  2315. 000015C3: Wait();
  2316. 000015C3: kernel_unknown_0x34A();
  2317. 000015C3: SetWaitFrames(6);
  2318. 000015C3: Wait();
  2319. 000015C3: PlaySoundEffect(144);
  2320. 000015C3: SetWaitFrames(2);
  2321. 000015C3: Wait();
  2322. 000015C3: SetActiveEntityMovespeed(100);
  2323. 000015C3: SetWaitFrames(2);
  2324. 000015C3: Wait();
  2325. 000015C3: SetActiveEntityMovespeed(0);
  2326. 000015C3: kernel_unknown_0x34A();
  2327. 000015C3: SetWaitFrames(4);
  2328. 000015C3: Wait();
  2329. 000015C3: kernel_unknown_0x34A();
  2330. 000015C3: SetWaitFrames(4);
  2331. 000015C3: Wait();
  2332. 000015C3: kernel_unknown_0x34A();
  2333. 000015C3: SetWaitFrames(4);
  2334. 000015C3: Wait();
  2335. 000015C3: kernel_unknown_0x34A();
  2336. 000015C3: SetWaitFrames(60);
  2337. 000015C3: Wait();
  2338. 000015C3: kernel_unknown_0x34A();
  2339. 000015C3: kernel_unknown_0x30E();
  2340. 000015C3: PlaySoundEffect(250);
  2341. 000015C3: SetWaitFrames(10);
  2342. 000015C3: Wait();
  2343. 000015C3: kernel_unknown_0x30E();
  2344. 000015C3: SetWaitFrames(60);
  2345. 000015C3: Wait();
  2346. 000015C3: kernel_unknown_0x331();
  2347. 000015C3: SetControlLock(0);
  2348. 000015C3: SetWaitFrames(20);
  2349. 000015C3: Wait();
  2350. 000015C3: Write(Read(3705), 1);
  2351. 000015C3: kernel_unknown_0x30E();
  2352. 000015C3: kernel_unknown_0x330();
  2353. 000015C3: kernel_unknown_0x215();
  2354. 000015C3: return;
  2355.  
  2356. 00002AFE: kernel_unknown_0x308();
  2357. 00002AFE: kernel_unknown_0x309();
  2358. 00002AFE: SetActiveEntityDirectionAndFacing(192);
  2359. 00002AFE: return;
  2360.  
  2361. 000026CF: if (Read(5) != 0) {
  2362. 000026D7: if (Read(6) != 36) {
  2363. 000026DF: Write(Read(909), Read(7));
  2364. 000026DF: PlaySoundEffect(381);
  2365. 000026DF: kernel_unknown_0x319();
  2366. 000026DF: SetControlLock(0);
  2367. 000026DF: kernel_unknown_0x31C();
  2368. 000026DF: kernel_unknown_0x32F();
  2369. 000026DF: kernel_unknown_0x308();
  2370. 000026DF: kernel_unknown_0x309();
  2371. 000026DF: SetActiveEntityDirectionAndFacing(192);
  2372. 000026DF: kernel_unknown_0x31C();
  2373. 000026DF: kernel_unknown_0x31F();
  2374. 000026DF: kernel_unknown_0x329();
  2375. 000026DF: kernel_unknown_0x32A();
  2376. 000026DF: SetWaitFrames(130);
  2377. 000026DF: Wait();
  2378. 000026DF: kernel_unknown_0x31F();
  2379. 000026DF: kernel_unknown_0x329();
  2380. 000026DF: kernel_unknown_0x32A();
  2381. 000026DF: SetActiveEntityMovespeed(10);
  2382. 000026DF: SetWaitFrames(10);
  2383. 000026DF: Wait();
  2384. 000026DF: SetActiveEntityMovespeed(20);
  2385. 000026DF: SetWaitFrames(10);
  2386. 000026DF: Wait();
  2387. 000026DF: SetActiveEntityMovespeed(30);
  2388. 000026DF: SetWaitFrames(20);
  2389. 000026DF: Wait();
  2390. 000026DF: SetActiveEntityMovespeed(40);
  2391. 000026DF: SetWaitFrames(95);
  2392. 000026DF: Wait();
  2393. 00002751: kernel_unknown_0x31F();
  2394. 00002756: kernel_unknown_0x329();
  2395. 00002758: SetWaitFrames(110);
  2396. 00002758: Wait();
  2397. 00002758: kernel_unknown_0x31F();
  2398. 00002758: kernel_unknown_0x329();
  2399. 00002758: Write(Read(896), 13);
  2400. 0000276B: if (!Read(896)) {
  2401. 00002775: SetActiveEntityDirectionAndFacing(Read(4) - 3);
  2402. 00002777: SetWaitFrames(10);
  2403. 00002777: Wait();
  2404. 00002783: Write(Read(896), Read(896) - 1);
  2405. 00002784: goto 0x276A;
  2406. 00002786: }
  2407. 00002787: kernel_unknown_0x31F();
  2408. 00002787: SetWaitFrames(150);
  2409. 00002787: Wait();
  2410. 00002793: kernel_unknown_0x32A();
  2411. 00002795: SetWaitFrames(160);
  2412. 00002795: Wait();
  2413. 00002795: kernel_unknown_0x32A();
  2414. 00002795: Write(Read(3711), 0);
  2415. 00002795: EnterFieldScene(36, 0);
  2416. 000027AB: } else {
  2417. 000027AC: if (Read(6) != 37) {
  2418. 000027B4: PlaySoundEffect(381);
  2419. 000027B4: kernel_unknown_0x319();
  2420. 000027B4: SetControlLock(0);
  2421. 000027B4: kernel_unknown_0x31C();
  2422. 000027B4: kernel_unknown_0x32F();
  2423. 000027B4: kernel_unknown_0x31C();
  2424. 000027CF: kernel_unknown_0x329();
  2425. 000027D1: kernel_unknown_0x308();
  2426. 000027D1: kernel_unknown_0x309();
  2427. 000027D1: SetActiveEntityDirectionAndFacing(153);
  2428. 000027D1: SetActiveEntityMovespeed(40);
  2429. 000027D1: SetWaitFrames(70);
  2430. 000027D1: Wait();
  2431. 000027ED: kernel_unknown_0x31F();
  2432. 000027EF: kernel_unknown_0x329();
  2433. 000027EF: SetWaitFrames(30);
  2434. 000027EF: Wait();
  2435. 000027EF: SetWaitFrames(100);
  2436. 000027EF: Wait();
  2437. 000027EF: SetWaitFrames(100);
  2438. 000027EF: Wait();
  2439. 000027EF: SetWaitFrames(100);
  2440. 000027EF: Wait();
  2441. 000027EF: SetWaitFrames(67);
  2442. 000027EF: Wait();
  2443. 000027EF: kernel_unknown_0x31F();
  2444. 000027EF: SetActiveEntityMovespeed(30);
  2445. 000027EF: SetWaitFrames(30);
  2446. 000027EF: Wait();
  2447. 000027EF: SetActiveEntityMovespeed(20);
  2448. 000027EF: SetWaitFrames(65);
  2449. 000027EF: Wait();
  2450. 000027EF: SetActiveEntityMovespeed(0);
  2451. 000027EF: SetWaitFrames(30);
  2452. 000027EF: Wait();
  2453. 000027EF: Write(Read(896), 35);
  2454. 00002831: if (!Read(896)) {
  2455. 0000283B: SetActiveEntityDirectionAndFacing(Read(4) - 3);
  2456. 0000283D: SetWaitFrames(5);
  2457. 0000283D: Wait();
  2458. 00002849: Write(Read(896), Read(896) - 1);
  2459. 0000284A: goto 0x2830;
  2460. 0000284C: }
  2461. 0000284D: SetWaitFrames(20);
  2462. 0000284D: Wait();
  2463. 0000284D: SetActiveEntityDirectionAndFacing(48);
  2464. 0000284D: SetActiveEntityDirection(176);
  2465. 0000284D: SetActiveEntityMovespeed(20);
  2466. 0000284D: SetWaitFrames(115);
  2467. 0000284D: Wait();
  2468. 0000284D: SetActiveEntityMovespeed(0);
  2469. 0000284D: kernel_unknown_0x329();
  2470. 0000284D: SetWaitFrames(20);
  2471. 0000284D: Wait();
  2472. 0000284D: Write(Read(3711), 0);
  2473. 0000284D: EnterFieldScene(37, 0);
  2474. 0000284D: kernel_unknown_0x319();
  2475. 00002881: } else {
  2476. 00002882: if (Read(6) != 38) {
  2477. 0000288A: Write(Read(909), Read(7));
  2478. 0000288A: PlaySoundEffect(381);
  2479. 0000288A: kernel_unknown_0x319();
  2480. 0000288A: SetControlLock(0);
  2481. 0000288A: kernel_unknown_0x31C();
  2482. 0000288A: kernel_unknown_0x32F();
  2483. 0000288A: kernel_unknown_0x31C();
  2484. 000028AB: kernel_unknown_0x329();
  2485. 000028AD: kernel_unknown_0x308();
  2486. 000028AD: kernel_unknown_0x309();
  2487. 000028AD: SetActiveEntityDirectionAndFacing(192);
  2488. 000028AD: SetWaitFrames(10);
  2489. 000028AD: Wait();
  2490. 000028AD: kernel_unknown_0x329();
  2491. 000028C9: kernel_unknown_0x31F();
  2492. 000028CB: SetActiveEntityMovespeed(10);
  2493. 000028CB: SetWaitFrames(10);
  2494. 000028CB: Wait();
  2495. 000028CB: SetActiveEntityMovespeed(20);
  2496. 000028CB: SetWaitFrames(10);
  2497. 000028CB: Wait();
  2498. 000028CB: SetActiveEntityMovespeed(30);
  2499. 000028CB: SetWaitFrames(20);
  2500. 000028CB: Wait();
  2501. 000028CB: SetActiveEntityMovespeed(40);
  2502. 000028CB: SetWaitFrames(100);
  2503. 000028CB: Wait();
  2504. 000028CB: SetWaitFrames(50);
  2505. 000028CB: Wait();
  2506. 000028CB: Write(Read(896), 8);
  2507. 000028FA: if (!Read(896)) {
  2508. 00002904: SetActiveEntityDirectionAndFacing(Read(4) - 3);
  2509. 00002906: SetWaitFrames(10);
  2510. 00002906: Wait();
  2511. 00002912: Write(Read(896), Read(896) - 1);
  2512. 00002913: goto 0x28F9;
  2513. 00002915: }
  2514. 00002916: kernel_unknown_0x31F();
  2515. 00002916: Write(Read(896), 5);
  2516. 00002920: if (!Read(896)) {
  2517. 0000292A: SetActiveEntityDirectionAndFacing(Read(4) - 3);
  2518. 0000292C: SetWaitFrames(10);
  2519. 0000292C: Wait();
  2520. 00002938: Write(Read(896), Read(896) - 1);
  2521. 00002939: goto 0x291F;
  2522. 0000293B: }
  2523. 0000293C: SetWaitFrames(100);
  2524. 0000293C: Wait();
  2525. 0000293C: SetWaitFrames(100);
  2526. 0000293C: Wait();
  2527. 0000293C: SetWaitFrames(100);
  2528. 0000293C: Wait();
  2529. 0000293C: SetWaitFrames(100);
  2530. 0000293C: Wait();
  2531. 0000293C: SetWaitFrames(65);
  2532. 0000293C: Wait();
  2533. 0000293C: SetActiveEntityMovespeed(30);
  2534. 0000293C: SetWaitFrames(30);
  2535. 0000293C: Wait();
  2536. 0000293C: SetActiveEntityMovespeed(20);
  2537. 0000293C: SetWaitFrames(65);
  2538. 0000293C: Wait();
  2539. 0000293C: SetActiveEntityMovespeed(0);
  2540. 0000293C: SetWaitFrames(30);
  2541. 0000293C: Wait();
  2542. 0000293C: Write(Read(896), 35);
  2543. 00002976: if (!Read(896)) {
  2544. 00002980: SetActiveEntityDirectionAndFacing(Read(4) - 3);
  2545. 00002982: SetWaitFrames(5);
  2546. 00002982: Wait();
  2547. 0000298E: Write(Read(896), Read(896) - 1);
  2548. 0000298F: goto 0x2975;
  2549. 00002991: }
  2550. 00002992: SetWaitFrames(20);
  2551. 00002992: Wait();
  2552. 00002992: SetActiveEntityDirectionAndFacing(48);
  2553. 00002992: SetActiveEntityDirection(176);
  2554. 00002992: SetActiveEntityMovespeed(20);
  2555. 00002992: SetWaitFrames(115);
  2556. 00002992: Wait();
  2557. 00002992: SetActiveEntityMovespeed(0);
  2558. 00002992: kernel_unknown_0x329();
  2559. 00002992: SetWaitFrames(20);
  2560. 00002992: Wait();
  2561. 00002992: Write(Read(3711), 0);
  2562. 00002992: EnterFieldScene(38, 0);
  2563. 00002992: kernel_unknown_0x319();
  2564. 000029C6: } else {
  2565. 000029C7: if (Read(6) != 39) {
  2566. 000029CF: Write(Read(909), Read(7));
  2567. 000029CF: PlaySoundEffect(381);
  2568. 000029CF: kernel_unknown_0x319();
  2569. 000029CF: SetControlLock(0);
  2570. 000029CF: kernel_unknown_0x31C();
  2571. 000029CF: kernel_unknown_0x32F();
  2572. 000029CF: kernel_unknown_0x31C();
  2573. 000029F0: kernel_unknown_0x329();
  2574. 000029F2: kernel_unknown_0x308();
  2575. 000029F2: kernel_unknown_0x309();
  2576. 000029F2: SetActiveEntityDirectionAndFacing(52);
  2577. 000029F2: SetWaitFrames(10);
  2578. 000029F2: Wait();
  2579. 000029F2: kernel_unknown_0x329();
  2580. 000029F2: kernel_unknown_0x31F();
  2581. 000029F2: SetActiveEntityMovespeed(10);
  2582. 000029F2: SetWaitFrames(10);
  2583. 000029F2: Wait();
  2584. 000029F2: SetActiveEntityMovespeed(20);
  2585. 000029F2: SetWaitFrames(10);
  2586. 000029F2: Wait();
  2587. 000029F2: SetActiveEntityMovespeed(30);
  2588. 000029F2: SetWaitFrames(20);
  2589. 000029F2: Wait();
  2590. 000029F2: SetActiveEntityMovespeed(40);
  2591. 000029F2: SetWaitFrames(100);
  2592. 000029F2: Wait();
  2593. 000029F2: SetWaitFrames(100);
  2594. 000029F2: Wait();
  2595. 000029F2: SetWaitFrames(100);
  2596. 000029F2: Wait();
  2597. 000029F2: SetWaitFrames(100);
  2598. 000029F2: Wait();
  2599. 000029F2: SetWaitFrames(20);
  2600. 000029F2: Wait();
  2601. 000029F2: Write(Read(896), 13);
  2602. 00002A4D: if (!Read(896)) {
  2603. 00002A57: SetActiveEntityDirectionAndFacing(Read(4) - 3);
  2604. 00002A59: SetWaitFrames(10);
  2605. 00002A59: Wait();
  2606. 00002A65: Write(Read(896), Read(896) - 1);
  2607. 00002A66: goto 0x2A4C;
  2608. 00002A68: }
  2609. 00002A69: SetWaitFrames(100);
  2610. 00002A69: Wait();
  2611. 00002A69: kernel_unknown_0x31F();
  2612. 00002A69: SetWaitFrames(100);
  2613. 00002A69: Wait();
  2614. 00002A69: SetWaitFrames(74);
  2615. 00002A69: Wait();
  2616. 00002A69: SetActiveEntityMovespeed(30);
  2617. 00002A69: SetWaitFrames(30);
  2618. 00002A69: Wait();
  2619. 00002A69: SetActiveEntityMovespeed(20);
  2620. 00002A69: SetWaitFrames(65);
  2621. 00002A69: Wait();
  2622. 00002A69: SetActiveEntityMovespeed(0);
  2623. 00002A69: SetWaitFrames(30);
  2624. 00002A69: Wait();
  2625. 00002A69: Write(Read(896), 26);
  2626. 00002A9D: if (!Read(896)) {
  2627. 00002AA7: SetActiveEntityDirectionAndFacing(Read(4) - 3);
  2628. 00002AA9: SetWaitFrames(5);
  2629. 00002AA9: Wait();
  2630. 00002AB5: Write(Read(896), Read(896) - 1);
  2631. 00002AB6: goto 0x2A9C;
  2632. 00002AB8: }
  2633. 00002AB9: SetWaitFrames(20);
  2634. 00002AB9: Wait();
  2635. 00002AB9: SetActiveEntityDirectionAndFacing(191);
  2636. 00002AB9: SetActiveEntityDirection(63);
  2637. 00002AB9: SetActiveEntityMovespeed(20);
  2638. 00002AB9: SetWaitFrames(100);
  2639. 00002AB9: Wait();
  2640. 00002AB9: kernel_unknown_0x329();
  2641. 00002AB9: SetActiveEntityMovespeed(0);
  2642. 00002AB9: SetWaitFrames(20);
  2643. 00002AB9: Wait();
  2644. 00002AB9: Write(Read(3711), 0);
  2645. 00002AB9: EnterFieldScene(39, 0);
  2646. 00002AB9: kernel_unknown_0x319();
  2647. 00002AB9: }
  2648. 00002AB9: }
  2649. 00002AB9: }
  2650. 00002AEB: }
  2651. 00002AEB: }
  2652. 00002AEB: return;
  2653.  
  2654. 00001ED6: if (!Read(6803)) {
  2655. 00001EDB: if (Read(7205)) {
  2656. 00001EE1: kernel_unknown_0x308();
  2657. 00001EE1: kernel_unknown_0x309();
  2658. 00001EE1: SetActiveEntityDirectionAndFacing(23);
  2659. 00001EF4: kernel_unknown_0x30B();
  2660. 00001EF7: } else {
  2661. 00001EF8: if (Read(7206)) {
  2662. 00001EFE: kernel_unknown_0x308();
  2663. 00001EFE: kernel_unknown_0x309();
  2664. 00001F0D: kernel_unknown_0x30B();
  2665. 00001F0F: kernel_unknown_0x34D();
  2666. 00001F0F: kernel_unknown_0x30E();
  2667. 00001F0F: if (Read(7207)) {
  2668. 00001F23: PlaySoundEffect(432);
  2669. 00001F23: Write(Read(7207), 1);
  2670. 00001F2C: }
  2671. 00001F2D: Write(Read(7206), 1);
  2672. 00001F34: } else {
  2673. 00001F35: if (Read(7208)) {
  2674. 00001F3B: kernel_unknown_0x30E();
  2675. 00001F3B: if (!Read(912) < 3686) {
  2676. 00001F49: kernel_unknown_0x34D();
  2677. 00001F52: } else {
  2678. 00001F53: kernel_unknown_0x34E();
  2679. 00001F53: }
  2680. 00001F58: } else {
  2681. 00001F59: SetActiveEntityMovespeed(0);
  2682. 00001F59: }
  2683. 00001F59: }
  2684. 00001F59: }
  2685. 00001F5C: }
  2686. 00001F5C: return;
  2687.  
  2688. 00001DE7: if (Read(8) != 3) {
  2689. 00001DEF: if (!Read(7206)) {
  2690. 00001DF4: kernel_unknown_0x19();
  2691. 00001DF4: if (!Read(8) <= 120) {
  2692. 00001DFD: kernel_unknown_0x21A();
  2693. 00001E00: }
  2694. 00001E00: }
  2695. 00001E00: }
  2696. 00001E01: if (!Read(6803)) {
  2697. 00001E06: if (!Read(7205)) {
  2698. 00001E0B: if (!Read(912) < 2800) {
  2699. 00001E16: kernel_unknown_0x30B();
  2700. 00001E18: SetActiveEntityMovespeed(8);
  2701. 00001E18: SetActiveEntityDirectionAndFacing(32);
  2702. 00001E21: } else {
  2703. 00001E22: if (!Read(912) < 2885) {
  2704. 00001E2D: kernel_unknown_0x30B();
  2705. 00001E2F: SetActiveEntityMovespeed(1);
  2706. 00001E3B: SetActiveEntityDirectionAndFacing(2928 - Read(912) << 2);
  2707. 00001E3E: } else {
  2708. 00001E3F: if (!Read(912) < 3686) {
  2709. 00001E4F: kernel_unknown_0x30B();
  2710. 00001E51: SetActiveEntityMovespeed(8);
  2711. 00001E51: SetActiveEntityDirectionAndFacing(11);
  2712. 00001E5A: } else {
  2713. 00001E5B: if (!Read(912) < 4036) {
  2714. 00001E63: kernel_unknown_0x30B();
  2715. 00001E63: SetActiveEntityMovespeed(8);
  2716. 00001E63: if (!Read(912) unknown_operation 3686) {
  2717. 00001E73: kernel_unknown_0x34E();
  2718. 00001E76: }
  2719. 00001E77: SetActiveEntityDirectionAndFacing(11);
  2720. 00001E7C: } else {
  2721. 00001E7D: if (Read(912) != 4036) {
  2722. 00001E85: if (Read(7208)) {
  2723. 00001E8B: kernel_unknown_0x30B();
  2724. 00001E8B: kernel_unknown_0x30E();
  2725. 00001E8B: SetWaitFrames(20);
  2726. 00001E8B: Wait();
  2727. 00001E8B: PlaySoundEffect(432);
  2728. 00001E8B: SetActiveEntityMovespeed(0);
  2729. 00001E8B: Write(Read(7208), 1);
  2730. 00001E8B: SetWaitFrames(120);
  2731. 00001E8B: Wait();
  2732. 00001EAE: } else {
  2733. 00001EAF: kernel_unknown_0x30B();
  2734. 00001EAF: SetActiveEntityMovespeed(0);
  2735. 00001EAF: }
  2736. 00001EB8: } else {
  2737. 00001EB9: if (!Read(912) unknown_operation 4037) {
  2738. 00001EC1: Write(Read(912), 4037);
  2739. 00001EC1: }
  2740. 00001EC1: }
  2741. 00001EC1: }
  2742. 00001EC1: }
  2743. 00001EC1: }
  2744. 00001EC6: }
  2745. 00001EC6: }
  2746. 00001EC6: }
  2747. 00001ECE: Write(Read(912), Read(912) + 1);
  2748. 00001ED0: SetWaitFrames(1);
  2749. 00001ED0: Wait();
  2750. 00001ED0: return;
  2751.  
  2752. 00001F69: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  2753. 00001F72: SetWaitFrames(10);
  2754. 00001F72: Wait();
  2755. 00001F72: Write(Read(6803), 0);
  2756. 00001F72: Write(Read(7209), 1);
  2757. 00001F72: EnterFieldScene(53, 0);
  2758. 00001F88: }
  2759. 00001F88: return;
  2760.  
  2761. 00001D55: Write(Read(7205), 1);
  2762. 00001D55: SetWaitFrames(30);
  2763. 00001D55: Wait();
  2764. 00001D63: kernel_unknown_0x30A();
  2765. 00001D65: kernel_unknown_0x34D();
  2766. 00001D65: SetWaitFrames(30);
  2767. 00001D65: Wait();
  2768. 00001D65: kernel_unknown_0x34D();
  2769. 00001D65: PlaySoundEffect(306);
  2770. 00001D65: SetWaitFrames(130);
  2771. 00001D65: Wait();
  2772. 00001D65: kernel_unknown_0x30A();
  2773. 00001D65: kernel_unknown_0x34E();
  2774. 00001D65: SetWaitFrames(30);
  2775. 00001D65: Wait();
  2776. 00001D65: kernel_unknown_0x30E();
  2777. 00001D65: SetWaitFrames(30);
  2778. 00001D65: Wait();
  2779. 00001D65: PlaySoundEffect(432);
  2780. 00001D65: SetWaitFrames(120);
  2781. 00001D65: Wait();
  2782. 00001D65: kernel_unknown_0x30E();
  2783. 00001D65: SetActiveEntityMovespeed(4);
  2784. 00001D65: kernel_unknown_0x34E();
  2785. 00001D65: kernel_unknown_0x34D();
  2786. 00001D65: SetWaitFrames(100);
  2787. 00001D65: Wait();
  2788. 00001D65: SetWaitFrames(100);
  2789. 00001D65: Wait();
  2790. 00001D65: SetWaitFrames(100);
  2791. 00001D65: Wait();
  2792. 00001D65: FadeOut(16, 1);
  2793. 00001D65: SetWaitFrames(50);
  2794. 00001D65: Wait();
  2795. 00001D65: EnterFieldScene(51, 0);
  2796. 00001D65: kernel_unknown_0x319();
  2797. 00001D65: SetControlLock(1);
  2798. 00001D65: SetBattleLock(1);
  2799. 00001D65: return;
  2800.  
  2801. 00001C06: Write(Read(7227), 0);
  2802. 00001C06: if (Read(5) != 1) {
  2803. 00001C14: if (!Read(984)) {
  2804. 00001C19: if (Read(7220)) {
  2805. 00001C1F: if (!Read(7224)) {
  2806. 00001C24: kernel_unknown_0x308();
  2807. 00001C24: kernel_unknown_0x309();
  2808. 00001C24: SetActiveEntityDirectionAndFacing(0);
  2809. 00001C24: kernel_unknown_0x34F();
  2810. 00001C37: }
  2811. 00001C37: }
  2812. 00001C37: }
  2813. 00001C37: }
  2814. 00001C38: if (Read(984)) {
  2815. 00001C3E: if (!Read(7222)) {
  2816. 00001C43: if (Read(916) != 9) {
  2817. 00001C4B: kernel_unknown_0x308();
  2818. 00001C4B: kernel_unknown_0x309();
  2819. 00001C4B: kernel_unknown_0x34F();
  2820. 00001C5C: } else {
  2821. 00001C5D: if (Read(916) != 10) {
  2822. 00001C65: kernel_unknown_0x308();
  2823. 00001C65: kernel_unknown_0x309();
  2824. 00001C65: kernel_unknown_0x34F();
  2825. 00001C76: } else {
  2826. 00001C77: if (Read(916) != 11) {
  2827. 00001C7F: kernel_unknown_0x308();
  2828. 00001C7F: kernel_unknown_0x309();
  2829. 00001C7F: kernel_unknown_0x34F();
  2830. 00001C90: } else {
  2831. 00001C91: if (Read(916) != 12) {
  2832. 00001C99: kernel_unknown_0x308();
  2833. 00001C99: kernel_unknown_0x309();
  2834. 00001C99: kernel_unknown_0x34F();
  2835. 00001CAA: } else {
  2836. 00001CAB: if (Read(916) != 13) {
  2837. 00001CB3: kernel_unknown_0x308();
  2838. 00001CB3: kernel_unknown_0x309();
  2839. 00001CB3: kernel_unknown_0x34F();
  2840. 00001CC4: } else {
  2841. 00001CC5: if (Read(916) != 14) {
  2842. 00001CCD: kernel_unknown_0x308();
  2843. 00001CCD: kernel_unknown_0x309();
  2844. 00001CCD: kernel_unknown_0x34F();
  2845. 00001CDE: } else {
  2846. 00001CDF: if (Read(916) != 15) {
  2847. 00001CE7: kernel_unknown_0x308();
  2848. 00001CE7: kernel_unknown_0x309();
  2849. 00001CE7: kernel_unknown_0x34F();
  2850. 00001CE7: }
  2851. 00001CE7: }
  2852. 00001CE7: }
  2853. 00001CE7: }
  2854. 00001CE7: }
  2855. 00001CE7: }
  2856. 00001CF6: }
  2857. 00001CF8: } else {
  2858. 00001CF9: if (!Read(986)) {
  2859. 00001CFE: kernel_unknown_0x308();
  2860. 00001CFE: kernel_unknown_0x309();
  2861. 00001CFE: kernel_unknown_0x34F();
  2862. 00001CFE: Write(Read(7224), 1);
  2863. 00001D15: } else {
  2864. 00001D16: if (Read(7219)) {
  2865. 00001D1C: kernel_unknown_0x308();
  2866. 00001D1C: kernel_unknown_0x309();
  2867. 00001D1C: kernel_unknown_0x30B();
  2868. 00001D2D: } else {
  2869. 00001D2E: if (Read(7223)) {
  2870. 00001D34: kernel_unknown_0x308();
  2871. 00001D34: kernel_unknown_0x309();
  2872. 00001D34: kernel_unknown_0x34F();
  2873. 00001D34: SetActiveEntityDirectionAndFacing(Read(16));
  2874. 00001D34: Write(Read(7223), 1);
  2875. 00001D4F: } else {
  2876. 00001D50: kernel_unknown_0x34F();
  2877. 00001D50: }
  2878. 00001D50: }
  2879. 00001D50: }
  2880. 00001D50: }
  2881. 00001D53: }
  2882. 00001D53: return;
  2883.  
  2884. 000019A9: if (Read(8) != 3) {
  2885. 000019B1: if (Read(7219)) {
  2886. 000019B7: kernel_unknown_0x19();
  2887. 000019B7: if (!Read(8) <= 200) {
  2888. 000019C0: Write(Read(7219), 1);
  2889. 000019C0: SetControlLock(0);
  2890. 000019C0: kernel_unknown_0x30E();
  2891. 000019C0: PlaySoundEffect(433);
  2892. 000019C0: SetWaitFrames(35);
  2893. 000019C0: Wait();
  2894. 000019C0: TriggerBattle(281);
  2895. 000019DC: }
  2896. 000019DE: } else {
  2897. 000019DF: if (!Read(986)) {
  2898. 000019E4: kernel_unknown_0x19();
  2899. 000019E4: if (!Read(8) <= 120) {
  2900. 000019ED: Write(Read(7223), 0);
  2901. 000019ED: Write(Read(7222), 0);
  2902. 000019ED: Write(Read(916), 0);
  2903. 000019ED: SetControlLock(0);
  2904. 000019ED: kernel_unknown_0x30E();
  2905. 000019ED: PlaySoundEffect(433);
  2906. 000019ED: SetWaitFrames(35);
  2907. 000019ED: Wait();
  2908. 000019ED: TriggerBattle(287);
  2909. 00001A15: }
  2910. 00001A17: } else {
  2911. 00001A18: kernel_unknown_0x19();
  2912. 00001A18: if (!Read(8) <= 80) {
  2913. 00001A21: if (!Read(7221)) {
  2914. 00001A26: if (!Read(916) == 13 || Read(916) == 15) {
  2915. 00001A34: Write(Read(7221), 0);
  2916. 00001A34: Write(Read(7226), 0);
  2917. 00001A34: Write(Read(7223), 0);
  2918. 00001A34: Write(Read(7222), 0);
  2919. 00001A34: Write(Read(916), 0);
  2920. 00001A34: TriggerBattle(282);
  2921. 00001A57: } else {
  2922. 00001A58: if (Read(916) != 9) {
  2923. 00001A60: Write(Read(7221), 0);
  2924. 00001A60: Write(Read(7226), 0);
  2925. 00001A60: Write(Read(7223), 0);
  2926. 00001A60: Write(Read(7222), 0);
  2927. 00001A60: Write(Read(916), 0);
  2928. 00001A60: TriggerBattle(294);
  2929. 00001A83: } else {
  2930. 00001A84: if (Read(916) != 10) {
  2931. 00001A8C: Write(Read(7221), 0);
  2932. 00001A8C: Write(Read(7226), 0);
  2933. 00001A8C: Write(Read(7223), 0);
  2934. 00001A8C: Write(Read(7222), 0);
  2935. 00001A8C: Write(Read(916), 0);
  2936. 00001A8C: TriggerBattle(283);
  2937. 00001AAF: } else {
  2938. 00001AB0: if (Read(916) != 11) {
  2939. 00001AB8: Write(Read(7221), 0);
  2940. 00001AB8: Write(Read(7226), 0);
  2941. 00001AB8: Write(Read(7223), 0);
  2942. 00001AB8: Write(Read(7222), 0);
  2943. 00001AB8: Write(Read(916), 0);
  2944. 00001AB8: TriggerBattle(284);
  2945. 00001ADB: } else {
  2946. 00001ADC: if (Read(916) != 12) {
  2947. 00001AE4: Write(Read(7221), 0);
  2948. 00001AE4: Write(Read(7226), 0);
  2949. 00001AE4: Write(Read(7223), 0);
  2950. 00001AE4: Write(Read(7222), 0);
  2951. 00001AE4: Write(Read(916), 0);
  2952. 00001AE4: TriggerBattle(285);
  2953. 00001B07: } else {
  2954. 00001B08: if (Read(916) != 14) {
  2955. 00001B10: Write(Read(7221), 0);
  2956. 00001B10: Write(Read(7226), 0);
  2957. 00001B10: Write(Read(7223), 0);
  2958. 00001B10: Write(Read(7222), 0);
  2959. 00001B10: Write(Read(916), 0);
  2960. 00001B10: TriggerBattle(286);
  2961. 00001B10: }
  2962. 00001B10: }
  2963. 00001B10: }
  2964. 00001B10: }
  2965. 00001B10: }
  2966. 00001B31: }
  2967. 00001B33: } else {
  2968. 00001B34: kernel_unknown_0x21E();
  2969. 00001B34: }
  2970. 00001B34: }
  2971. 00001B34: }
  2972. 00001B37: }
  2973. 00001B37: }
  2974. 00001B38: if (!Read(7219)) {
  2975. 00001B3D: if (Read(986)) {
  2976. 00001B43: if (Read(7222)) {
  2977. 00001B49: if (Read(911) != 5) {
  2978. 00001B51: if (Read(7225)) {
  2979. 00001B57: Write(Read(7225), 1);
  2980. 00001B67: Write(Read(916), Read(16) * 7 << 8);
  2981. 00001B70: Write(Read(916), Read(916) + 9);
  2982. 00001B72: if (Read(916) != 0) {
  2983. 00001B7A: Write(Read(916), 15);
  2984. 00001B7F: }
  2985. 00001B7F: }
  2986. 00001B80: kernel_unknown_0x321();
  2987. 00001B80: SetActiveEntityMovespeed(200);
  2988. 00001B80: kernel_unknown_0x18();
  2989. 00001B80: if (!Read(916) <= 150) {
  2990. 00001B91: kernel_unknown_0x21D();
  2991. 00001B94: }
  2992. 00001B96: } else {
  2993. 00001B97: if (Read(914) != 255) {
  2994. 00001B9F: SetActiveEntityMovespeed(200);
  2995. 00001B9F: kernel_unknown_0x321();
  2996. 00001B9F: kernel_unknown_0x18();
  2997. 00001B9F: if (!4 <= 255) {
  2998. 00001BB0: Write(Read(914), 0);
  2999. 00001BB5: }
  3000. 00001BB7: } else {
  3001. 00001BB8: if (!Read(910) < 50) {
  3002. 00001BC0: SetActiveEntityMovespeed(200);
  3003. 00001BC5: } else {
  3004. 00001BC6: if (Read(910) != 70) {
  3005. 00001BCE: SetActiveEntityDirectionAndFacing(Read(16));
  3006. 00001BCE: Write(Read(910), 0);
  3007. 00001BDF: Write(Read(914), Read(914) + 1);
  3008. 00001BDF: }
  3009. 00001BE0: }
  3010. 00001BE8: Write(Read(910), Read(910) + 1);
  3011. 00001BE8: }
  3012. 00001BE8: }
  3013. 00001BEB: } else {
  3014. 00001BEC: kernel_unknown_0x21D();
  3015. 00001BEC: }
  3016. 00001BF1: } else {
  3017. 00001BF2: kernel_unknown_0x30E();
  3018. 00001BF2: }
  3019. 00001BF9: } else {
  3020. 00001BFA: kernel_unknown_0x30E();
  3021. 00001BFA: }
  3022. 00001C00: SetWaitFrames(1);
  3023. 00001C00: Wait();
  3024. 00001C00: return;
  3025.  
  3026. 000018CE: SetActiveEntityMovespeed(0);
  3027. 000018CE: if (Read(7226)) {
  3028. 000018D8: kernel_unknown_0x30E();
  3029. 000018D8: SetWaitFrames(28);
  3030. 000018D8: Wait();
  3031. 000018D8: Write(Read(7226), 1);
  3032. 000018E8: }
  3033. 000018E9: kernel_unknown_0x30E();
  3034. 000018E9: if (Read(7227)) {
  3035. 000018F5: kernel_unknown_0x34A();
  3036. 000018F5: SetWaitFrames(20);
  3037. 000018F5: Wait();
  3038. 000018F5: kernel_unknown_0x34A();
  3039. 000018F5: Write(Read(7227), 1);
  3040. 00001907: }
  3041. 00001908: Write(Read(911), 0);
  3042. 00001908: Write(Read(7222), 1);
  3043. 00001908: Write(Read(7221), 1);
  3044. 00001908: Write(Read(7225), 0);
  3045. 00001908: return;
  3046.  
  3047. 00001921: SetActiveEntityMovespeed(0);
  3048. 00001921: kernel_unknown_0x30E();
  3049. 00001921: PlaySoundEffect(433);
  3050. 00001921: FadeOut(250, 0);
  3051. 00001921: SetWaitFrames(3);
  3052. 00001921: Wait();
  3053. 00001921: FadeIn(250, 0);
  3054. 00001921: SetWaitFrames(1);
  3055. 00001921: Wait();
  3056. 00001921: kernel_unknown_0x219();
  3057. 00001921: SetWaitFrames(40);
  3058. 00001921: Wait();
  3059. 00001921: kernel_unknown_0x30E();
  3060. 00001921: SetWaitFrames(9);
  3061. 00001921: Wait();
  3062. 00001921: kernel_unknown_0x30E();
  3063. 00001921: if (!Read(911) < 5) {
  3064. 0000196E: Write(Read(911), Read(911) + 1);
  3065. 0000196F: }
  3066. 0000196F: return;
  3067.  
  3068. 00001971: kernel_unknown_0x30E();
  3069. 00001971: PlaySoundEffect(266);
  3070. 00001971: SetWaitFrames(80);
  3071. 00001971: Wait();
  3072. 00001971: kernel_unknown_0x30A();
  3073. 00001971: SetWaitFrames(100);
  3074. 00001971: Wait();
  3075. 00001971: FadeOut(8, 0);
  3076. 00001971: PlaySoundEffect(0);
  3077. 00001971: SetWaitFrames(100);
  3078. 00001971: Wait();
  3079. 00001971: FadeIn(8, 0);
  3080. 00001971: kernel_unknown_0x33D();
  3081. 00001971: Write(Read(7220), 1);
  3082. 00001971: return;
  3083.  
  3084. 00002B25: kernel_unknown_0x308();
  3085. 00002B25: kernel_unknown_0x309();
  3086. 00002B25: SetActiveEntityDirectionAndFacing(0);
  3087. 00002B25: return;
  3088.  
  3089. 000025D7: if (!Read(6787)) {
  3090. 000025DC: if (Read(978)) {
  3091. 000025E2: SetControlLock(0);
  3092. 000025E2: SetBattleLock(0);
  3093. 000025E2: SetWaitFrames(30);
  3094. 000025E2: Wait();
  3095. 000025E2: SetActiveEntityMovespeed(40);
  3096. 000025E2: SetActiveEntityDirectionAndFacing(64);
  3097. 000025E2: SetWaitFrames(75);
  3098. 000025E2: Wait();
  3099. 000025E2: SetActiveEntityMovespeed(0);
  3100. 000025E2: SetWaitFrames(10);
  3101. 000025E2: Wait();
  3102. 000025E2: kernel_unknown_0x331();
  3103. 000025E2: kernel_unknown_0x330();
  3104. 000025E2: SetControlLock(0);
  3105. 000025E2: SetWaitFrames(20);
  3106. 000025E2: Wait();
  3107. 000025E2: WaitForWindowReady();
  3108. 000025E2: SetWindowDimensions(40, 5, 240, 137);
  3109. 000025E2: SetWindowParameters(0, 0);
  3110. 000025E2: WaitForWindowReady();
  3111. 000025E2: SetWindowMessage(61);
  3112. 000025E2: WaitForMessageAcknowledge();
  3113. 000025E2: SetBattleLock(1);
  3114. 000025E2: SetControlLock(1);
  3115. 000025E2: Write(Read(978), 1);
  3116. 00002637: }
  3117. 00002639: } else {
  3118. 0000263A: if (!Read(6802)) {
  3119. 0000263F: if (Read(5) != 0) {
  3120. 00002647: if (Read(6) != 54) {
  3121. 0000264F: if (Read(7217)) {
  3122. 00002655: SetControlLock(0);
  3123. 00002655: SetBattleLock(0);
  3124. 00002655: SetWaitFrames(50);
  3125. 00002655: Wait();
  3126. 00002655: SetActiveEntityMovespeed(40);
  3127. 00002655: SetActiveEntityDirectionAndFacing(0);
  3128. 00002655: SetWaitFrames(105);
  3129. 00002655: Wait();
  3130. 00002655: SetActiveEntityMovespeed(40);
  3131. 00002655: SetActiveEntityDirectionAndFacing(64);
  3132. 00002655: SetWaitFrames(52);
  3133. 00002655: Wait();
  3134. 00002655: SetActiveEntityMovespeed(0);
  3135. 00002655: SetWaitFrames(10);
  3136. 00002655: Wait();
  3137. 00002655: kernel_unknown_0x331();
  3138. 00002655: kernel_unknown_0x330();
  3139. 00002655: SetControlLock(0);
  3140. 00002655: SetWaitFrames(20);
  3141. 00002655: Wait();
  3142. 00002655: WaitForWindowReady();
  3143. 00002655: SetWindowDimensions(40, 5, 240, 137);
  3144. 00002655: SetWindowParameters(0, 0);
  3145. 00002655: WaitForWindowReady();
  3146. 00002655: SetWindowMessage(61);
  3147. 00002655: WaitForMessageAcknowledge();
  3148. 00002655: SetBattleLock(1);
  3149. 00002655: SetControlLock(1);
  3150. 00002655: Write(Read(7217), 1);
  3151. 00002655: }
  3152. 000026B7: }
  3153. 000026B7: }
  3154. 000026B7: }
  3155. 000026B7: }
  3156. 000026B7: return;
  3157.  
  3158. 000026C4: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3159. 000026CC: kernel_unknown_0x30C();
  3160. 000026CD: }
  3161. 000026CD: return;
  3162.  
  3163. 00002B36: kernel_unknown_0x308();
  3164. 00002B36: kernel_unknown_0x309();
  3165. 00002B36: SetActiveEntityDirectionAndFacing(0);
  3166. 00002B36: return;
  3167.  
  3168. 00002B47: kernel_unknown_0x308();
  3169. 00002B47: kernel_unknown_0x309();
  3170. 00002B47: SetActiveEntityDirectionAndFacing(0);
  3171. 00002B47: return;
  3172.  
  3173. 00002B58: kernel_unknown_0x308();
  3174. 00002B58: kernel_unknown_0x309();
  3175. 00002B58: SetActiveEntityDirectionAndFacing(0);
  3176. 00002B58: return;
  3177.  
  3178. 0000214F: if (Read(0) != 1250) {
  3179. 00002157: if (!Read(0) == 26 && Read(1) == 24) {
  3180. 0000216F: if (!512 unknown_operation 5778 && 512 <= 7473) {
  3181. 0000217D: if (!768 unknown_operation 4200 && 768 <= 5820) {
  3182. 00002181: kernel_unknown_0x308();
  3183. 00002181: kernel_unknown_0x309();
  3184. 0000218C: }
  3185. 0000218C: }
  3186. 0000218C: }
  3187. 0000218C: }
  3188. 0000218C: return;
  3189.  
  3190. 00002199: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3191. 000021A2: kernel_unknown_0x217();
  3192. 000021A5: }
  3193. 000021A5: return;
  3194.  
  3195. 000021A7: SetWaitFrames(5);
  3196. 000021A7: Wait();
  3197. 000021A7: Write(Read(3), Read(4));
  3198. 000021A7: kernel_unknown_0x330();
  3199. 000021A7: kernel_unknown_0x20F();
  3200. 000021A7: kernel_unknown_0x334();
  3201. 000021A7: Write(Read(1009), 0);
  3202. 000021A7: SetControlLock(1);
  3203. 000021A7: return;
  3204.  
  3205. 000013E5: if (Read(1014)) {
  3206. 000013EB: SetControlLock(0);
  3207. 000013EB: SetBattleLock(0);
  3208. 000013EB: kernel_unknown_0x321();
  3209. 000013EB: if (Read(7202)) {
  3210. 000013FC: WaitForWindowReady();
  3211. 000013FE: SetWindowDimensions(118, 160, 84, 25);
  3212. 000013FE: SetWindowParameters(0, 1);
  3213. 000013FE: WaitForWindowReady();
  3214. 000013FE: SetWindowMessage(32);
  3215. 00001416: kernel_unknown_0x30E();
  3216. 00001416: SetActiveEntityMovespeed(20);
  3217. 00001416: SetWaitFrames(30);
  3218. 00001416: Wait();
  3219. 00001416: WaitForWindowReady();
  3220. 00001416: PlaySoundEffect(276);
  3221. 00001416: kernel_unknown_0x30E();
  3222. 00001416: SetActiveEntityMovespeed(20);
  3223. 00001437: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  3224. 00001439: if (!Read(13)) {
  3225. 0000143E: SetWaitFrames(1);
  3226. 0000143E: Wait();
  3227. 0000143E: goto 0x1438;
  3228. 00001444: }
  3229. 00001445: SetActiveEntityMovespeed(0);
  3230. 00001445: SetWaitFrames(30);
  3231. 00001445: Wait();
  3232. 00001453: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  3233. 00001454: WaitForWindowReady();
  3234. 00001456: SetWindowDimensions(88, 160, 144, 25);
  3235. 00001456: SetWindowParameters(0, 0);
  3236. 00001456: WaitForWindowReady();
  3237. 00001456: SetWindowMessage(33);
  3238. 00001456: WaitForMessageAcknowledge();
  3239. 00001456: Write(Read(7202), 1);
  3240. 00001473: } else {
  3241. 00001474: PlaySoundEffect(276);
  3242. 00001474: kernel_unknown_0x30E();
  3243. 00001474: SetActiveEntityMovespeed(40);
  3244. 00001487: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  3245. 00001489: if (!Read(13)) {
  3246. 0000148E: SetWaitFrames(1);
  3247. 0000148E: Wait();
  3248. 0000148E: goto 0x1488;
  3249. 00001494: }
  3250. 00001495: SetActiveEntityMovespeed(0);
  3251. 00001495: SetWaitFrames(10);
  3252. 00001495: Wait();
  3253. 000014A3: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  3254. 000014A5: if (Read(7203)) {
  3255. 000014AB: SetWaitFrames(30);
  3256. 000014AB: Wait();
  3257. 000014AB: WaitForWindowReady();
  3258. 000014AB: SetWindowDimensions(88, 160, 144, 25);
  3259. 000014AB: SetWindowParameters(0, 0);
  3260. 000014AB: WaitForWindowReady();
  3261. 000014AB: SetWindowMessage(33);
  3262. 000014AB: WaitForMessageAcknowledge();
  3263. 000014AB: Write(Read(7203), 1);
  3264. 000014AB: }
  3265. 000014CC: }
  3266. 000014CD: SetBattleLock(1);
  3267. 000014CD: SetControlLock(1);
  3268. 000014D4: }
  3269. 000014D4: return;
  3270.  
  3271. 0000185A: PlaySoundEffect(11);
  3272. 0000185A: SetControlLock(0);
  3273. 0000185A: SetActiveEntityMovespeed(20);
  3274. 0000185A: SetActiveEntityDirectionAndFacing(Read(4));
  3275. 0000186F: SetActiveEntityDirection(Read(4) + 128);
  3276. 00001871: FadeOut(250, 0);
  3277. 00001871: SetWaitFrames(3);
  3278. 00001871: Wait();
  3279. 00001871: FadeIn(250, 0);
  3280. 00001871: SetWaitFrames(2);
  3281. 00001871: Wait();
  3282. 00001871: SetActiveEntityMovespeed(0);
  3283. 00001871: return;
  3284.  
  3285. 000018AD: PlaySoundEffect(11);
  3286. 000018AD: SetControlLock(0);
  3287. 000018AD: SetActiveEntityMovespeed(20);
  3288. 000018AD: SetActiveEntityDirectionAndFacing(Read(4));
  3289. 000018C2: SetActiveEntityDirection(Read(4) + 128);
  3290. 000018C4: SetWaitFrames(5);
  3291. 000018C4: Wait();
  3292. 000018C4: SetActiveEntityMovespeed(0);
  3293. 000018C4: return;
  3294.  
  3295. 000024A5: kernel_unknown_0x351();
  3296. 000024A5: SetControlLock(0);
  3297. 000024A5: SetBattleLock(0);
  3298. 000024A5: SetWaitFrames(60);
  3299. 000024A5: Wait();
  3300. 000024BB: SetActiveEntityDirectionAndFacing(Read(4) + 128);
  3301. 000024BD: SetActiveEntityMovespeed(20);
  3302. 000024BD: SetWaitFrames(10);
  3303. 000024BD: Wait();
  3304. 000024BD: SetActiveEntityMovespeed(0);
  3305. 000024BD: WaitForWindowReady();
  3306. 000024BD: SetWindowDimensions(122, 160, 76, 41);
  3307. 000024BD: SetWindowParameters(0, 0);
  3308. 000024BD: WaitForWindowReady();
  3309. 000024BD: SetWindowMessage(55);
  3310. 000024BD: WaitForMessageAcknowledge();
  3311. 000024BD: SetWaitFrames(20);
  3312. 000024BD: Wait();
  3313. 000024BD: kernel_unknown_0x352();
  3314. 000024BD: PlaySoundEffect(383);
  3315. 000024BD: SetWaitFrames(20);
  3316. 000024BD: Wait();
  3317. 000024BD: kernel_unknown_0x351();
  3318. 000024BD: kernel_unknown_0x33E();
  3319. 000024BD: SetWaitFrames(40);
  3320. 000024BD: Wait();
  3321. 000024BD: WaitForWindowReady();
  3322. 000024BD: SetWindowDimensions(90, 160, 140, 41);
  3323. 000024BD: SetWindowParameters(0, 0);
  3324. 000024BD: WaitForWindowReady();
  3325. 000024BD: SetWindowMessage(56);
  3326. 000024BD: WaitForMessageAcknowledge();
  3327. 000024BD: SetWaitFrames(30);
  3328. 000024BD: Wait();
  3329. 000024BD: kernel_unknown_0x33D();
  3330. 000024BD: SetControlLock(1);
  3331. 000024BD: SetBattleLock(1);
  3332. 000024BD: return;
  3333.  
  3334. 00002B0F: kernel_unknown_0x308();
  3335. 00002B0F: kernel_unknown_0x309();
  3336. 00002B0F: SetActiveEntityDirectionAndFacing(251);
  3337. 00002B22: kernel_unknown_0x30B();
  3338. 00002B23: return;
  3339.  
  3340. 00002B69: kernel_unknown_0x308();
  3341. 00002B69: kernel_unknown_0x309();
  3342. 00002B69: kernel_unknown_0x30B();
  3343. 00002B69: return;
  3344.  
  3345. 00002B95: kernel_unknown_0x308();
  3346. 00002B95: kernel_unknown_0x309();
  3347. 00002B95: SetActiveEntityDirectionAndFacing(128);
  3348. 00002B95: return;
  3349.  
  3350. 00002B85: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3351. 00002B8E: EnterFieldScene(55, 0);
  3352. 00002B93: }
  3353. 00002B93: return;
  3354.  
  3355. 00003299: Write(Read(918), Read(16) * 3 << 8);
  3356. 0000329B: if (Read(918) != 0) {
  3357. 000032A3: kernel_unknown_0x308();
  3358. 000032A3: kernel_unknown_0x309();
  3359. 000032B0: } else {
  3360. 000032B1: if (Read(918) != 1) {
  3361. 000032B9: kernel_unknown_0x308();
  3362. 000032B9: kernel_unknown_0x309();
  3363. 000032C6: } else {
  3364. 000032C7: if (Read(918) != 2) {
  3365. 000032CF: kernel_unknown_0x308();
  3366. 000032CF: kernel_unknown_0x309();
  3367. 000032CF: }
  3368. 000032CF: }
  3369. 000032DA: }
  3370. 000032DB: if (!Read(7229)) {
  3371. 000032E0: kernel_unknown_0x30E();
  3372. 000032E7: } else {
  3373. 000032E8: kernel_unknown_0x30E();
  3374. 000032E8: }
  3375. 000032ED: return;
  3376.  
  3377. 000031FB: kernel_unknown_0x19();
  3378. 000031FB: if (!Read(8) unknown_operation 2000) {
  3379. 00003204: Write(Read(7229), 0);
  3380. 00003204: kernel_unknown_0x30E();
  3381. 0000320F: }
  3382. 00003210: if (!Read(8) == 3 || Read(8) == 19) {
  3383. 0000321E: if (!Read(7229)) {
  3384. 00003223: if (Read(8) != 3) {
  3385. 0000322B: kernel_unknown_0x19();
  3386. 0000322B: if (!Read(8) <= 100) {
  3387. 00003234: SetControlLock(0);
  3388. 00003234: Unknown333(Read(8), 0);
  3389. 00003234: kernel_unknown_0x34A();
  3390. 00003234: kernel_unknown_0x21C();
  3391. 00003234: kernel_unknown_0x334();
  3392. 00003234: SetWaitFrames(20);
  3393. 00003234: Wait();
  3394. 00003234: TriggerBattle(982);
  3395. 0000324F: }
  3396. 00003251: } else {
  3397. 00003252: if (Read(8) != 19) {
  3398. 0000325A: kernel_unknown_0x19();
  3399. 0000325A: if (!Read(8) <= 80) {
  3400. 00003263: SetControlLock(0);
  3401. 00003263: Unknown333(Read(8), 0);
  3402. 00003263: kernel_unknown_0x34A();
  3403. 00003263: kernel_unknown_0x21C();
  3404. 00003263: kernel_unknown_0x334();
  3405. 00003263: SetWaitFrames(20);
  3406. 00003263: Wait();
  3407. 00003263: TriggerBattle(982);
  3408. 00003263: }
  3409. 0000327E: }
  3410. 0000327E: }
  3411. 00003280: } else {
  3412. 00003281: kernel_unknown_0x19();
  3413. 00003281: if (!Read(8) <= 130) {
  3414. 0000328A: kernel_unknown_0x220();
  3415. 0000328A: }
  3416. 0000328D: }
  3417. 0000328D: }
  3418. 0000328D: return;
  3419.  
  3420. 00003163: SetControlLock(0);
  3421. 00003163: kernel_unknown_0x31C();
  3422. 00003163: kernel_unknown_0x21B();
  3423. 00003163: kernel_unknown_0x334();
  3424. 00003163: WaitForWindowReady();
  3425. 00003163: SetWindowDimensions(137, 160, 46, 25);
  3426. 00003163: SetWindowParameters(0, 0);
  3427. 00003163: WaitForWindowReady();
  3428. 00003163: SetWindowMessage(34);
  3429. 00003163: WaitForMessageAcknowledge();
  3430. 00003163: kernel_unknown_0x352();
  3431. 00003163: Unknown333(Read(8), 0);
  3432. 00003163: PlaySoundEffect(383);
  3433. 00003163: kernel_unknown_0x31F();
  3434. 00003163: if (Read(8) != 3) {
  3435. 000031A1: SetWaitFrames(25);
  3436. 000031A1: Wait();
  3437. 000031A7: } else {
  3438. 000031A8: if (Read(8) != 19) {
  3439. 000031B0: SetWaitFrames(15);
  3440. 000031B0: Wait();
  3441. 000031B0: }
  3442. 000031B4: }
  3443. 000031B5: kernel_unknown_0x31F();
  3444. 000031B5: SetWaitFrames(25);
  3445. 000031B5: Wait();
  3446. 000031B5: kernel_unknown_0x34D();
  3447. 000031B5: kernel_unknown_0x30E();
  3448. 000031B5: PlaySoundEffect(433);
  3449. 000031B5: SetWaitFrames(60);
  3450. 000031B5: Wait();
  3451. 000031B5: kernel_unknown_0x34E();
  3452. 000031B5: kernel_unknown_0x34A();
  3453. 000031B5: kernel_unknown_0x352();
  3454. 000031B5: kernel_unknown_0x30E();
  3455. 000031B5: SetWaitFrames(40);
  3456. 000031B5: Wait();
  3457. 000031B5: Write(Read(7229), 1);
  3458. 000031B5: TriggerBattle(982);
  3459. 000031B5: kernel_unknown_0x31C();
  3460. 000031B5: return;
  3461.  
  3462. 0000309A: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3463. 000030A3: EnterFieldScene(29, 0);
  3464. 000030A8: }
  3465. 000030A8: return;
  3466.  
  3467. 0000311E: if (Read(8) != 0) {
  3468. 00003126: EnterFieldScene(48, 0);
  3469. 0000312B: }
  3470. 0000312B: return;
  3471.  
  3472. 000030FB: if (Read(8) != 0) {
  3473. 00003103: EnterFieldScene(47, 0);
  3474. 0000310A: } else {
  3475. 0000310B: if (!Read(8) == 1 || Read(8) == 2) {
  3476. 00003119: kernel_unknown_0x223();
  3477. 00003119: }
  3478. 0000311C: }
  3479. 0000311C: return;
  3480.  
  3481. 00003064: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3482. 0000306D: EnterFieldScene(27, 0);
  3483. 00003072: }
  3484. 00003072: return;
  3485.  
  3486. 0000307F: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3487. 00003088: EnterFieldScene(28, 0);
  3488. 0000308D: }
  3489. 0000308D: return;
  3490.  
  3491. 00003049: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3492. 00003052: EnterFieldScene(26, 0);
  3493. 00003057: }
  3494. 00003057: return;
  3495.  
  3496. 00003153: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3497. 0000315C: EnterFieldScene(58, 0);
  3498. 00003161: }
  3499. 00003161: return;
  3500.  
  3501. 00002FBF: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3502. 00002FC8: if (!Read(0) < 1602) {
  3503. 00002FD0: if (!Read(3704)) {
  3504. 00002FD5: if (Read(3710)) {
  3505. 00002FDB: if (Read(3709)) {
  3506. 00002FE1: EnterFieldScene(23, 1);
  3507. 00002FE8: } else {
  3508. 00002FE9: EnterFieldScene(23, 0);
  3509. 00002FE9: }
  3510. 00002FF0: } else {
  3511. 00002FF1: EnterFieldScene(23, 0);
  3512. 00002FF1: }
  3513. 00002FF8: } else {
  3514. 00002FF9: EnterFieldScene(23, 0);
  3515. 00002FF9: }
  3516. 00003000: } else {
  3517. 00003001: EnterFieldScene(23, 0);
  3518. 00003001: }
  3519. 00003006: }
  3520. 00003006: return;
  3521.  
  3522. 00003138: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3523. 00003141: EnterFieldScene(57, 0);
  3524. 00003146: }
  3525. 00003146: return;
  3526.  
  3527. 0000302E: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3528. 00003037: EnterFieldScene(25, 0);
  3529. 0000303C: }
  3530. 0000303C: return;
  3531.  
  3532. 00002FA4: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3533. 00002FAD: EnterFieldScene(22, 0);
  3534. 00002FB2: }
  3535. 00002FB2: return;
  3536.  
  3537. 00002D01: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3538. 00002D0A: EnterFieldScene(2, 0);
  3539. 00002D0F: }
  3540. 00002D0F: return;
  3541.  
  3542. 00002F5E: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3543. 00002F67: if (!Read(0) unknown_operation 1308) {
  3544. 00002F6F: EnterFieldScene(20, 1);
  3545. 00002F76: } else {
  3546. 00002F77: EnterFieldScene(20, 0);
  3547. 00002F77: }
  3548. 00002F7C: }
  3549. 00002F7C: return;
  3550.  
  3551. 00002EBB: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3552. 00002EC4: EnterFieldScene(14, 0);
  3553. 00002EC9: }
  3554. 00002EC9: return;
  3555.  
  3556. 00002CE6: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3557. 00002CEF: EnterFieldScene(1, 0);
  3558. 00002CF4: }
  3559. 00002CF4: return;
  3560.  
  3561. 00003013: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3562. 0000301C: EnterFieldScene(24, 0);
  3563. 00003021: }
  3564. 00003021: return;
  3565.  
  3566. 000030D0: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3567. 000030D9: EnterFieldScene(44, 0);
  3568. 000030DE: }
  3569. 000030DE: return;
  3570.  
  3571. 00002ED6: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3572. 00002EDF: if (!Read(9354)) {
  3573. 00002EE4: EnterFieldScene(15, 1);
  3574. 00002EEB: } else {
  3575. 00002EEC: EnterFieldScene(15, 0);
  3576. 00002EEC: }
  3577. 00002EF1: }
  3578. 00002EF1: return;
  3579.  
  3580. 00002EA0: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2 || Read(8) == 6) {
  3581. 00002EA9: EnterFieldScene(13, 0);
  3582. 00002EAE: }
  3583. 00002EAE: return;
  3584.  
  3585. 000030EB: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3586. 000030F4: EnterFieldScene(46, 0);
  3587. 000030F9: }
  3588. 000030F9: return;
  3589.  
  3590. 000030B5: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3591. 000030BE: EnterFieldScene(43, 0);
  3592. 000030C3: }
  3593. 000030C3: return;
  3594.  
  3595. 00002F43: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3596. 00002F4C: EnterFieldScene(19, 0);
  3597. 00002F51: }
  3598. 00002F51: return;
  3599.  
  3600. 00002E1E: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3601. 00002E27: EnterFieldScene(9, 0);
  3602. 00002E2C: }
  3603. 00002E2C: return;
  3604.  
  3605. 00002D1C: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3606. 00002D25: if (!Read(1000)) {
  3607. 00002D2A: EnterFieldScene(3, 1);
  3608. 00002D31: } else {
  3609. 00002D32: EnterFieldScene(3, 0);
  3610. 00002D32: }
  3611. 00002D39: } else {
  3612. 00002D3A: if (Read(8) != 19) {
  3613. 00002D42: Write(Read(1008), 0);
  3614. 00002D42: Write(Read(1010), 0);
  3615. 00002D42: Write(Read(1011), 0);
  3616. 00002D42: Write(Read(1012), 0);
  3617. 00002D42: Write(Read(1013), 0);
  3618. 00002D42: Write(Read(1014), 0);
  3619. 00002D42: Write(Read(1009), 0);
  3620. 00002D42: Write(Read(124), 0);
  3621. 00002D42: if (!Read(1000)) {
  3622. 00002D77: EnterFieldScene(3, 1);
  3623. 00002D7E: } else {
  3624. 00002D7F: EnterFieldScene(3, 0);
  3625. 00002D7F: }
  3626. 00002D7F: }
  3627. 00002D84: }
  3628. 00002D84: return;
  3629.  
  3630. 00002F89: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3631. 00002F92: EnterFieldScene(21, 0);
  3632. 00002F97: }
  3633. 00002F97: return;
  3634.  
  3635. 00002BB0: kernel_unknown_0x213();
  3636. 00002BB0: return;
  3637.  
  3638. 00002BBF: kernel_unknown_0x213();
  3639. 00002BBF: return;
  3640.  
  3641. 00002DE8: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2 || Read(8) == 6) {
  3642. 00002DF1: EnterFieldScene(7, 0);
  3643. 00002DF6: }
  3644. 00002DF6: return;
  3645.  
  3646. 00002E7F: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3647. 00002E88: EnterFieldScene(12, 0);
  3648. 00002E8D: }
  3649. 00002E8D: return;
  3650.  
  3651. 00002BA6: kernel_unknown_0x213();
  3652. 00002BA6: return;
  3653.  
  3654. 00002BB5: kernel_unknown_0x213();
  3655. 00002BB5: return;
  3656.  
  3657. 00002EF3: if (Read(8) != 6) {
  3658. 00002EFB: EnterFieldScene(16, 0);
  3659. 00002F00: }
  3660. 00002F00: return;
  3661.  
  3662. 00002BC4: kernel_unknown_0x213();
  3663. 00002BC4: return;
  3664.  
  3665. 00002BCE: Write(Read(7204), 1);
  3666. 00002BCE: return;
  3667.  
  3668. 00002BD5: Write(Read(7204), 0);
  3669. 00002BD5: return;
  3670.  
  3671. 00002BDC: if (Read(3707)) {
  3672. 00002BF3: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2 || Read(8) == 4) {
  3673. 00002BFC: EnterFieldScene(32, 0);
  3674. 00002C01: }
  3675. 00002C01: }
  3676. 00002C01: return;
  3677.  
  3678. 00002D91: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3679. 00002D9A: EnterFieldScene(4, 0);
  3680. 00002D9F: }
  3681. 00002D9F: return;
  3682.  
  3683. 00002C03: if (!Read(0) < 1602) {
  3684. 00002C0B: if (!Read(3704)) {
  3685. 00002C10: if (Read(3710)) {
  3686. 00002C16: if (Read(3709)) {
  3687. 00002C2D: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2 || Read(8) == 4) {
  3688. 00002C36: EnterFieldScene(34, 0);
  3689. 00002C3B: }
  3690. 00002C3B: }
  3691. 00002C3B: }
  3692. 00002C3B: }
  3693. 00002C3B: }
  3694. 00002C3B: return;
  3695.  
  3696. 00002BAB: kernel_unknown_0x213();
  3697. 00002BAB: return;
  3698.  
  3699. 00002BBA: kernel_unknown_0x213();
  3700. 00002BBA: return;
  3701.  
  3702. 00002BC9: kernel_unknown_0x213();
  3703. 00002BC9: return;
  3704.  
  3705. 00002DAC: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3706. 00002DB5: EnterFieldScene(5, 0);
  3707. 00002DBA: }
  3708. 00002DBA: return;
  3709.  
  3710. 00002C3D: if (Read(8) != 6) {
  3711. 00002C45: if (Read(3705)) {
  3712. 00002C4B: SetControlLock(0);
  3713. 00002C4B: kernel_unknown_0x216();
  3714. 00002C54: } else {
  3715. 00002C55: if (Read(3706)) {
  3716. 00002C5B: SetControlLock(0);
  3717. 00002C5B: kernel_unknown_0x216();
  3718. 00002C5B: }
  3719. 00002C62: }
  3720. 00002C62: }
  3721. 00002C62: return;
  3722.  
  3723. 00002F28: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3724. 00002F31: EnterFieldScene(18, 0);
  3725. 00002F36: }
  3726. 00002F36: return;
  3727.  
  3728. 00002DC7: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3729. 00002DD0: EnterFieldScene(6, 0);
  3730. 00002DD5: }
  3731. 00002DD5: return;
  3732.  
  3733. 00002E39: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3734. 00002E42: EnterFieldScene(10, 0);
  3735. 00002E47: }
  3736. 00002E47: return;
  3737.  
  3738. 00002F0D: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3739. 00002F16: EnterFieldScene(17, 0);
  3740. 00002F1B: }
  3741. 00002F1B: return;
  3742.  
  3743. 00002E03: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3744. 00002E0C: EnterFieldScene(8, 0);
  3745. 00002E11: }
  3746. 00002E11: return;
  3747.  
  3748. 00002E54: if (!Read(8) == 0 || Read(8) == 1 || Read(8) == 2) {
  3749. 00002E5D: if (!Read(0) unknown_operation 1197) {
  3750. 00002E65: EnterFieldScene(11, 1);
  3751. 00002E6C: } else {
  3752. 00002E6D: EnterFieldScene(11, 0);
  3753. 00002E6D: }
  3754. 00002E72: }
  3755. 00002E72: return;
  3756.  
  3757. 00000200: return;
  3758.  
  3759. 00000200: return;
  3760.  
  3761. 00000200: return;
  3762.  
  3763. 00000200: return;
  3764.  
  3765. 00000200: return;
  3766.  
  3767. 00000200: return;
  3768.  
  3769. 00000200: return;
  3770.  
  3771. 00000200: return;
  3772.  
  3773. 00000200: return;
  3774.  
  3775. 00000200: return;
  3776.  
  3777. 00000200: return;
  3778.  
  3779. 00000200: return;
  3780.  
  3781. 00000200: return;
  3782.  
  3783. 00000200: return;
  3784.  
  3785. 00000200: return;
  3786.  
  3787. 00000200: return;
  3788.  
  3789. 00000200: return;
  3790.  
  3791. 00000200: return;
  3792.  
  3793. 00000200: return;
  3794.  
  3795. 00000200: return;
  3796.  
  3797. 00000200: return;
  3798.  
  3799. 00000200: return;
  3800.  
  3801. 00000200: return;
  3802.  
  3803. 00000200: return;
  3804.  
  3805. 00000200: return;
  3806.  
  3807. 00000200: return;
  3808.  
  3809. 00000200: return;
  3810.  
  3811. 00000200: return;
  3812.  
  3813. 00000200: return;
  3814.  
  3815. 00000200: return;
  3816.  
  3817. 00000200: return;
  3818.  
  3819. 00000200: return;
  3820.  
  3821. 00000200: return;
  3822.  
  3823. 00000200: return;
  3824.  
  3825. 00000200: return;
  3826.  
  3827. 00000200: return;
  3828.  
  3829. 00000200: return;
  3830.  
  3831. 00000200: return;
  3832.  
  3833. 00000200: return;
  3834.  
  3835. 00000200: return;
  3836.  
  3837. 00000200: return;
  3838.  
  3839. 00000200: return;
  3840.  
  3841. 00000200: return;
  3842.  
  3843. 00000200: return;
  3844.  
  3845. 00000200: return;
  3846.  
  3847. 00000200: return;
  3848.  
  3849. 00000200: return;
  3850.  
  3851. 00000200: return;
  3852.  
  3853. 00000200: return;
  3854.  
  3855. 00000200: return;
  3856.  
  3857. 00000200: return;
  3858.  
  3859. 00000200: return;
  3860.  
  3861. 00000200: return;
  3862.  
  3863. 00000200: return;
  3864.  
  3865. 00000200: return;
  3866.  
  3867. 00000200: return;
  3868.  
  3869. 00000200: return;
  3870.  
  3871. 00000200: return;
  3872.  
  3873. 00000200: return;
  3874.  
  3875. 00000200: return;
  3876.  
  3877. 00000200: return;
  3878.  
  3879. 00000200: return;
  3880.  
  3881. 00000200: return;
  3882.  
  3883. 00000200: return;
  3884.  
  3885. 00000200: return;
  3886.  
  3887. 00000200: return;
  3888.  
  3889. 00000200: return;
  3890.  
  3891. 00000200: return;
  3892.  
  3893. 00000200: return;
  3894.  
  3895. 00000200: return;
  3896.  
  3897. 00000200: return;
  3898.  
  3899. 00000200: return;
  3900.  
  3901. 00000200: return;
  3902.  
  3903. 00000200: return;
  3904.  
  3905. 00000200: return;
  3906.  
  3907. 00000200: return;
  3908.  
  3909. 00000200: return;
  3910.  
  3911. 00000200: return;
  3912.  
  3913. 00000200: return;
  3914.  
  3915. 00000200: return;
  3916.  
  3917. 00000200: return;
  3918.  
  3919. 00000200: return;
  3920.  
  3921. 00000200: return;
  3922.  
  3923. 00000200: return;
  3924.  
  3925. 00000200: return;
  3926.  
  3927. 00000200: return;
  3928.  
  3929. 00000200: return;
  3930.  
  3931. 00000200: return;
  3932.  
  3933. 00000200: return;
  3934.  
  3935. 00000200: return;
  3936.  
  3937. 00000200: return;
  3938.  
  3939. 00000200: return;
  3940.  
  3941. 00000200: return;
  3942.  
  3943. 00000200: return;
  3944.  
  3945. 00000200: return;
  3946.  
  3947. 00000200: return;
  3948.  
  3949. 00000200: return;
  3950.  
  3951. 00000200: return;
  3952.  
  3953. 00000200: return;
  3954.  
  3955. 00000200: return;
  3956.  
  3957. 00000200: return;
  3958.  
  3959. 00000200: return;
  3960.  
  3961. 00000200: return;
  3962.  
  3963. 00000200: return;
  3964.  
  3965. 00000200: return;
  3966.  
  3967. 00000200: return;
  3968.  
  3969. 00000200: return;
  3970.  
  3971. 00000200: return;
  3972.  
  3973. 00000200: return;
  3974.  
  3975. 00000200: return;
  3976.  
  3977. 00000200: return;
  3978.  
  3979. 00000200: return;
  3980.  
  3981. 00000200: return;
RAW Paste Data