Advertisement
DynamixDJ

WM Scripts

Oct 4th, 2018
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 121.42 KB | None | 0 0
  1. SEARCH TriggerBattle(SceneId=#
  2.  
  3.  
  4.  
  5. Show Assembly
  6.  
  7. World Map Script: WM0
  8.  
  9. User Friendly Variables
  10.  
  11. System Function ID Names
  12.  
  13. $OnWorldMapLoad = 0000
  14. $OnWorldMapUnload = 0001
  15. $OnFrameTick = 0002
  16. $OnEnterHighwind = 0006
  17. $OnTouchMidgarZolom = 0007
  18. Model Function ID Names
  19.  
  20. $OnModelLoad = 0000
  21. $OnModelUnload = 0001
  22. $OnFrameTick = 0002
  23. $OnMovement = 0003
  24. Model/Entity ID Names
  25.  
  26. $CloudModel = 0000
  27. $TifaModel = 0001
  28. $CidModel = 0002
  29. $UltimateWeaponModel = 0003
  30. $HighwindModel = 000b
  31. $SubmarineModel = 000d
  32. $ChocoboModel = 0013
  33. $SystemModelInActiveEntityContext = ffff
  34. Chocobo Types
  35.  
  36. $YellowChocobo = #0000
  37. $GreenChocobo = #0001
  38. $BlueChocobo = #0002
  39. $BlackChocobo = #0003
  40. $GoldChocobo = #0004
  41. Submarine Types
  42.  
  43. $RedSubmarine = #0000
  44. $BlueSubmarine = #0001
  45. Call Table
  46.  
  47. Addr Code
  48. 0002 System.Function($OnWorldMapLoad) { CALL 0x001a }
  49. 0004 System.Function($OnWorldMapUnload) { CALL 0x0001 }
  50. 0006 System.Function($OnFrameTick) { CALL 0x0002 }
  51. 0008 System.Function($UnknownFunc3) { CALL 0x0002 }
  52. 000a System.Function($UnknownFunc4) { CALL 0x0002 }
  53. 000c System.Function($UnknownFunc5) { CALL 0x0002 }
  54. 000e System.Function($OnEnterHighwind) { CALL 0x0bd2 }
  55. 0010 System.Function($OnTouchMidgarZolom) { CALL 0x28ec }
  56. 0012 System.Function($UnknownFunc8) { CALL 0x0002 }
  57. 0014 System.Function($UnknownFunc9) { CALL 0x2a8b }
  58. 0016 System.Function($UnknownFunc10) { CALL 0x0bf1 }
  59. 0018 System.Function($UnknownFunc11) { CALL 0x0c11 }
  60. 001a System.Function($UnknownFunc12) { CALL 0x0c3b }
  61. 001c System.Function($UnknownFunc13) { CALL 0x0cab }
  62. 001e System.Function($UnknownFunc14) { CALL 0x0d57 }
  63. 0020 System.Function($UnknownFunc15) { CALL 0x0e1d }
  64. 0022 System.Function($UnknownFunc16) { CALL 0x12d5 }
  65. 0024 System.Function($UnknownFunc17) { CALL 0x1349 }
  66. 0026 System.Function($UnknownFunc18) { CALL 0x13c2 }
  67. 0028 System.Function($UnknownFunc19) { CALL 0x14b3 }
  68. 002a System.Function($UnknownFunc20) { CALL 0x1557 }
  69. 002c System.Function($UnknownFunc21) { CALL 0x15a4 }
  70. 002e System.Function($UnknownFunc22) { CALL 0x15db }
  71. 0030 System.Function($UnknownFunc23) { CALL 0x1627 }
  72. 0032 System.Function($UnknownFunc24) { CALL 0x168b }
  73. 0034 System.Function($UnknownFunc25) { CALL 0x16cd }
  74. 0036 System.Function($UnknownFunc26) { CALL 0x1720 }
  75. 0038 System.Function($UnknownFunc27) { CALL 0x1770 }
  76. 003a System.Function($UnknownFunc28) { CALL 0x1b54 }
  77. 003c System.Function($UnknownFunc29) { CALL 0x221a }
  78. 003e System.Function($UnknownFunc30) { CALL 0x2a63 }
  79. 0040 System.Function($UnknownFunc31) { CALL 0x2a98 }
  80. 0042 Model($CloudModel).Function($OnModelLoad) { CALL 0x1d8a }
  81. 0044 Model($CloudModel).Function($OnFrameTick) { CALL 0x1d89 }
  82. 0046 Model($CloudModel).Function($UnknownFunc15) { CALL 0x0e1d }
  83. 0048 Model($CloudModel).Function($UnknownFunc29) { CALL 0x221a }
  84. 004a Model($TifaModel).Function($UnknownFunc15) { CALL 0x0f11 }
  85. 004c Model($TifaModel).Function($UnknownFunc31) { CALL 0x2a98 }
  86. 004e Model($CidModel).Function($UnknownFunc15) { CALL 0x1005 }
  87. 0050 Model($CidModel).Function($UnknownFunc31) { CALL 0x2ab9 }
  88. 0052 Model($UltimateWeaponModel).Function($OnModelLoad) { CALL 0x214b }
  89. 0054 Model($UltimateWeaponModel).Function($OnFrameTick) { CALL 0x20ef }
  90. 0056 Model($UltimateWeaponModel).Function($UnknownFunc4) { CALL 0x2328 }
  91. 0058 Model($UltimateWeaponModel).Function($UnknownFunc5) { CALL 0x23c3 }
  92. 005a Model($UltimateWeaponModel).Function($UnknownFunc20) { CALL 0x1557 }
  93. 005c Model($UltimateWeaponModel).Function($UnknownFunc21) { CALL 0x15a4 }
  94. 005e Model($UltimateWeaponModel).Function($UnknownFunc22) { CALL 0x15db }
  95. 0060 Model($UltimateWeaponModel).Function($UnknownFunc23) { CALL 0x1627 }
  96. 0062 Model($UltimateWeaponModel).Function($UnknownFunc24) { CALL 0x168b }
  97. 0064 Model($UltimateWeaponModel).Function($UnknownFunc30) { CALL 0x2a63 }
  98. 0066 Model($UnknownModel4).Function($OnModelLoad) { CALL 0x1dbb }
  99. 0068 Model($UnknownModel4).Function($UnknownFunc4) { CALL 0x1dec }
  100. 006a Model($UnknownModel4).Function($UnknownFunc5) { CALL 0x1e2f }
  101. 006c Model($UnknownModel4).Function($UnknownFunc15) { CALL 0x10f9 }
  102. 006e Model($UnknownModel5).Function($OnModelLoad) { CALL 0x2047 }
  103. 0070 Model($UnknownModel5).Function($UnknownFunc4) { CALL 0x20a5 }
  104. 0072 Model($UnknownModel5).Function($UnknownFunc5) { CALL 0x20e8 }
  105. 0074 Model($UnknownModel6).Function($OnModelLoad) { CALL 0x1fc6 }
  106. 0076 Model($UnknownModel6).Function($OnFrameTick) { CALL 0x1fc5 }
  107. 0078 Model($UnknownModel6).Function($UnknownFunc4) { CALL 0x1ff7 }
  108. 007a Model($UnknownModel6).Function($UnknownFunc5) { CALL 0x2040 }
  109. 007c Model($UnknownModel6).Function($UnknownFunc18) { CALL 0x13c2 }
  110. 007e Model($UnknownModel7).Function($OnModelLoad) { CALL 0x28fd }
  111. 0080 Model($UnknownModel8).Function($OnModelLoad) { CALL 0x24ce }
  112. 0082 Model($UnknownModel10).Function($OnModelLoad) { CALL 0x1cd5 }
  113. 0084 Model($UnknownModel10).Function($OnFrameTick) { CALL 0x1be6 }
  114. 0086 Model($UnknownModel10).Function($OnMovement) { CALL 0x1d5d }
  115. 0088 Model($UnknownModel10).Function($UnknownFunc28) { CALL 0x1b54 }
  116. 008a Model($HighwindModel).Function($OnModelLoad) { CALL 0x1a05 }
  117. 008c Model($HighwindModel).Function($OnFrameTick) { CALL 0x17a8 }
  118. 008e Model($HighwindModel).Function($UnknownFunc25) { CALL 0x16cd }
  119. 0090 Model($HighwindModel).Function($UnknownFunc26) { CALL 0x1720 }
  120. 0092 Model($HighwindModel).Function($UnknownFunc27) { CALL 0x1770 }
  121. 0094 Model($UnknownModel12).Function($OnModelLoad) { CALL 0x2924 }
  122. 0096 Model($SubmarineModel).Function($OnModelLoad) { CALL 0x23d6 }
  123. 0098 Model($SubmarineModel).Function($UnknownFunc4) { CALL 0x24b8 }
  124. 009a Model($UnknownModel14).Function($OnModelLoad) { CALL 0x2935 }
  125. 009c Model($UnknownModel15).Function($OnModelLoad) { CALL 0x2946 }
  126. 009e Model($UnknownModel16).Function($OnModelLoad) { CALL 0x2957 }
  127. 00a0 Model($ChocoboModel).Function($OnModelLoad) { CALL 0x1f4e }
  128. 00a2 Model($ChocoboModel).Function($UnknownFunc4) { CALL 0x1f8d }
  129. 00a4 Model($ChocoboModel).Function($UnknownFunc5) { CALL 0x1fa6 }
  130. 00a6 Model($ChocoboModel).Function($UnknownFunc15) { CALL 0x11e4 }
  131. 00a8 Model($ChocoboModel).Function($UnknownFunc23) { CALL 0x1659 }
  132. 00aa Model($ChocoboModel).Function($UnknownFunc24) { CALL 0x16ac }
  133. 00ac Model($ChocoboModel).Function($UnknownFunc29) { CALL 0x22a4 }
  134. 00ae Model($UnknownModel20).Function($OnModelLoad) { CALL 0x290e }
  135. 00b0 Model($UnknownModel24).Function($OnModelLoad) { CALL 0x2968 }
  136. 00b2 Model($UnknownModel25).Function($OnModelLoad) { CALL 0x2994 }
  137. 00b4 Model($UnknownModel25).Function($OnMovement) { CALL 0x2979 }
  138. 00b6 Model($UnknownModel29).Function($OnModelLoad) { CALL 0x308e }
  139. 00b8 Model($UnknownModel29).Function($OnFrameTick) { CALL 0x2ffa }
  140. 00ba Model($UnknownModel29).Function($UnknownFunc28) { CALL 0x2f62 }
  141. 00bc Walkmesh(1, 32).FunctionType(4) { CALL 0x2e8e }
  142. 00be Walkmesh(6, 16).FunctionType(4) { CALL 0x2f1d }
  143. 00c0 Walkmesh(8, 15).FunctionType(3) { CALL 0x2efa }
  144. 00c2 Walkmesh(8, 15).FunctionType(4) { CALL 0x2e58 }
  145. 00c4 Walkmesh(8, 17).FunctionType(4) { CALL 0x2e73 }
  146. 00c6 Walkmesh(8, 19).FunctionType(4) { CALL 0x2e3d }
  147. 00c8 Walkmesh(9, 19).FunctionType(4) { CALL 0x2f47 }
  148. 00ca Walkmesh(10, 4).FunctionType(4) { CALL 0x2db3 }
  149. 00cc Walkmesh(10, 19).FunctionType(3) { CALL 0x2f2c }
  150. 00ce Walkmesh(10, 19).FunctionType(4) { CALL 0x2e22 }
  151. 00d0 Walkmesh(13, 14).FunctionType(4) { CALL 0x2d98 }
  152. 00d2 Walkmesh(13, 24).FunctionType(4) { CALL 0x2af5 }
  153. 00d4 Walkmesh(14, 10).FunctionType(4) { CALL 0x2d52 }
  154. 00d6 Walkmesh(14, 13).FunctionType(4) { CALL 0x2caf }
  155. 00d8 Walkmesh(14, 22).FunctionType(4) { CALL 0x2ada }
  156. 00da Walkmesh(15, 6).FunctionType(4) { CALL 0x2e07 }
  157. 00dc Walkmesh(15, 11).FunctionType(4) { CALL 0x2ec4 }
  158. 00de Walkmesh(15, 13).FunctionType(4) { CALL 0x2cca }
  159. 00e0 Walkmesh(15, 17).FunctionType(4) { CALL 0x2c8e }
  160. 00e2 Walkmesh(16, 10).FunctionType(4) { CALL 0x2edf }
  161. 00e4 Walkmesh(16, 11).FunctionType(3) { CALL 0x2ea9 }
  162. 00e6 Walkmesh(16, 11).FunctionType(4) { CALL 0x2d37 }
  163. 00e8 Walkmesh(16, 24).FunctionType(4) { CALL 0x2c12 }
  164. 00ea Walkmesh(16, 29).FunctionType(4) { CALL 0x2b10 }
  165. 00ec Walkmesh(17, 12).FunctionType(4) { CALL 0x2d7d }
  166. 00ee Walkmesh(17, 14).FunctionType(0) { CALL 0x29af }
  167. 00f0 Walkmesh(17, 15).FunctionType(0) { CALL 0x29be }
  168. 00f2 Walkmesh(17, 20).FunctionType(4) { CALL 0x2bd6 }
  169. 00f4 Walkmesh(17, 33).FunctionType(4) { CALL 0x2c73 }
  170. 00f6 Walkmesh(18, 13).FunctionType(0) { CALL 0x29a5 }
  171. 00f8 Walkmesh(18, 14).FunctionType(0) { CALL 0x29b4 }
  172. 00fa Walkmesh(18, 14).FunctionType(4) { CALL 0x2cf2 }
  173. 00fc Walkmesh(18, 15).FunctionType(0) { CALL 0x29c3 }
  174. 00fe Walkmesh(18, 26).FunctionType(0) { CALL 0x29cd }
  175. 0100 Walkmesh(18, 26).FunctionType(1) { CALL 0x29d4 }
  176. 0102 Walkmesh(18, 26).FunctionType(3) { CALL 0x29db }
  177. 0104 Walkmesh(18, 26).FunctionType(4) { CALL 0x2b85 }
  178. 0106 Walkmesh(19, 6).FunctionType(3) { CALL 0x2a02 }
  179. 0108 Walkmesh(19, 13).FunctionType(0) { CALL 0x29aa }
  180. 010a Walkmesh(19, 14).FunctionType(0) { CALL 0x29b9 }
  181. 010c Walkmesh(19, 15).FunctionType(0) { CALL 0x29c8 }
  182. 010e Walkmesh(19, 25).FunctionType(4) { CALL 0x2ba0 }
  183. 0110 Walkmesh(20, 10).FunctionType(0) { CALL 0x2a3c }
  184. 0112 Walkmesh(20, 10).FunctionType(4) { CALL 0x2d1c }
  185. 0114 Walkmesh(20, 24).FunctionType(4) { CALL 0x2bbb }
  186. 0116 Walkmesh(21, 15).FunctionType(4) { CALL 0x2c2d }
  187. 0118 Walkmesh(22, 13).FunctionType(4) { CALL 0x2d01 }
  188. 011a Walkmesh(22, 20).FunctionType(4) { CALL 0x2bf7 }
  189. 011c Walkmesh(24, 26).FunctionType(4) { CALL 0x2c48 }
  190. Function 0000
  191.  
  192. Addr Code
  193. 0000 RETURN
  194. Function 0001
  195.  
  196. Called by:
  197. System.Function($OnWorldMapUnload)
  198. Addr Code
  199. 0001 RETURN
  200. Function 0002
  201.  
  202. Called by:
  203. System.Function($OnFrameTick)
  204. System.Function($UnknownFunc3)
  205. System.Function($UnknownFunc4)
  206. System.Function($UnknownFunc5)
  207. System.Function($UnknownFunc8)
  208. Addr Code
  209. 0005 IF (Bank0[0381]) {
  210. 000f WRITE Bank0[0381] = (Bank0[0381] - #0001)
  211. 0016 IF ((Bank0[0381] == #0000)) {
  212. 0018 Op320()
  213. }
  214. }
  215. 0019 RETURN
  216. Function 001a
  217.  
  218. Called by:
  219. System.Function($OnWorldMapLoad)
  220. Addr Code
  221. 0020 IF ((Bank0_16bit[0000] >= #03e8)) {
  222. 0025 SetMeteorTextureEnabled(#0001)
  223. }
  224. 0029 IF (Bank0[007e].Bit(2)) {
  225. 002e SetChocoboType($YellowChocobo)
  226. 002f GOTO 005b
  227. }
  228. 0034 IF (Bank0[007e].Bit(3)) {
  229. 0039 SetChocoboType($GreenChocobo)
  230. 003a GOTO 005b
  231. }
  232. 003f IF (Bank0[007e].Bit(4)) {
  233. 0044 SetChocoboType($BlueChocobo)
  234. 0045 GOTO 005b
  235. }
  236. 004a IF (Bank0[007e].Bit(5)) {
  237. 004f SetChocoboType($BlackChocobo)
  238. 0050 GOTO 005b
  239. }
  240. 0055 IF (Bank0[007e].Bit(6)) {
  241. 005a SetChocoboType($GoldChocobo)
  242. }
  243. 005e IF (Bank0[0350].Bit(3)) {
  244. 0063 SetSubmarineType($BlueSubmarine)
  245. 0064 GOTO 006f
  246. }
  247. 0069 IF (Bank0[0352].Bit(2)) {
  248. 006e SetSubmarineType($RedSubmarine)
  249. }
  250. 0075 IF ((Bank0_16bit[0000] >= #04af)) {
  251. 007a IF (Bank0[007b].Bit(0)) {
  252. 007f IF (Bank0[0387].Bit(0)) {
  253. 0084 IF (Bank0[0386].Bit(4)) {
  254. 0089 WorldProgress=#0004
  255. 008a GOTO 0090
  256. }
  257. 008f WorldProgress=#0003
  258. 0090 GOTO 0096
  259. }
  260. 0095 WorldProgress=#0003
  261. 0096 GOTO 009c
  262. }
  263. 009b WorldProgress=#0003
  264. 009c GOTO 00c6
  265. }
  266. 00a4 IF ((Bank0_16bit[0000] >= #04ad)) {
  267. 00a9 WorldProgress=#0003
  268. 00aa GOTO 00c6
  269. }
  270. 00b2 IF ((Bank0_16bit[0000] >= #03e8)) {
  271. 00b7 WorldProgress=#0002
  272. 00b8 GOTO 00c6
  273. }
  274. 00c0 IF ((Bank0_16bit[0000] >= #027e)) {
  275. 00c5 WorldProgress=#0001
  276. }
  277. 00cc IF ((GetSpecial(0005) == #0000)) {
  278. 00d2 IF ((!Bank0[007b].Bit(3))) {
  279. 00d7 IF (Bank0[0387].Bit(4)) {
  280. 00dc LoadAndInitModel(#001d)
  281. }
  282. }
  283. 00e1 IF ((!Bank0[007a].Bit(0))) {
  284. 00e6 LoadAndInitModel(#0007)
  285. }
  286. 00ea IF (Bank0[007a].Bit(3)) {
  287. 00ef LoadAndInitModel(#0014)
  288. }
  289. 00f4 IF ((!Bank0[007a].Bit(1))) {
  290. 00f9 LoadAndInitModel(#000f)
  291. }
  292. 00fe IF ((!Bank0[0351])) {
  293. 0103 LoadAndInitModel(#000c)
  294. }
  295. 010a IF ((Bank0_16bit[0000] < #062c)) {
  296. 010f LoadAndInitModel(#0018)
  297. }
  298. 0113 LoadAndInitModel(#000e)
  299. 0117 LoadAndInitModel(#0010)
  300. 011b LoadAndInitModel(#0019)
  301. 0120 IF ((!Bank0[007b].Bit(0))) {
  302. 0128 IF ((Bank0_16bit[0000] >= #062c)) {
  303. 012d LoadAndInitModel(#000b)
  304. }
  305. }
  306. 0131 IF (Bank0[0352].Bit(3)) {
  307. 0136 LoadAndInitModel(#000a)
  308. }
  309. 013a IF (Bank0[007e].Bit(0)) {
  310. 013f LoadAndInitModel(#0004)
  311. }
  312. 0143 IF (Bank0[007e].Bit(2)) {
  313. 0148 LoadAndInitModel(#0013)
  314. }
  315. 014c IF (Bank0[007e].Bit(3)) {
  316. 0151 LoadAndInitModel(#0013)
  317. }
  318. 0155 IF (Bank0[007e].Bit(4)) {
  319. 015a LoadAndInitModel(#0013)
  320. }
  321. 015e IF (Bank0[007e].Bit(5)) {
  322. 0163 LoadAndInitModel(#0013)
  323. }
  324. 0167 IF (Bank0[007e].Bit(6)) {
  325. 016c LoadAndInitModel(#0013)
  326. }
  327. 0171 IF ((!Bank0[01cf].Bit(7))) {
  328. 0176 IF (Bank0[007f].Bit(0)) {
  329. 017b LoadAndInitModel(#0006)
  330. }
  331. }
  332. 017f IF (Bank0[007f].Bit(2)) {
  333. 0184 LoadAndInitModel(#0005)
  334. }
  335. 0188 IF (Bank0[007f].Bit(4)) {
  336. 018d LoadAndInitModel(#0003)
  337. }
  338. 0191 IF (Bank0[0350].Bit(3)) {
  339. 0196 LoadAndInitModel(#000d)
  340. }
  341. 019a IF (Bank0[0352].Bit(2)) {
  342. 019f LoadAndInitModel(#000d)
  343. }
  344. 01a0 Op320()
  345. 01a5 IF ((!Bank0[01cf].Bit(7))) {
  346. 01aa LoadAndInitModel(GetSpecial(000e))
  347. }
  348. 01ab SetCurrentEntityAsPlayerEntity()
  349. 01b2 IF ((GetSpecial(0006) == #0000)) {
  350. 01b7 IF (Bank0[0350].Bit(3)) {
  351. 01bc LoadAndInitModel(#000d)
  352. 01bd EnterVehicle()
  353. 01be GOTO 01ca
  354. }
  355. 01c3 IF (Bank0[0352].Bit(2)) {
  356. 01c8 LoadAndInitModel(#000d)
  357. 01c9 EnterVehicle()
  358. }
  359. 01ca GOTO 083d
  360. }
  361. 01d2 IF ((GetSpecial(0006) == #0001)) {
  362. 01d9 ActiveEntity.SetMeshCoordsXZ(#0016, #000f)
  363. 01df ActiveEntity.SetCoordsInMeshXZ(#1524, #01bd)
  364. 01e3 ActiveEntity.SetDirectionAndFacing(#0000)
  365. 01e4 GOTO 083d
  366. }
  367. 01ec IF ((GetSpecial(0006) == #0002)) {
  368. 01f3 ActiveEntity.SetMeshCoordsXZ(#0018, #000d)
  369. 01f9 ActiveEntity.SetCoordsInMeshXZ(#13d6, #1920)
  370. 01fd ActiveEntity.SetDirectionAndFacing(#0000)
  371. 01fe GOTO 083d
  372. }
  373. 0206 IF ((GetSpecial(0006) == #0003)) {
  374. 020b IF (Bank0[007e].Bit(1)) {
  375. 0210 IF (Bank0[007e].Bit(0)) {
  376. 0215 LoadAndInitModel(#0004)
  377. 0216 EnterVehicle()
  378. }
  379. 021a IF (Bank0[007e].Bit(2)) {
  380. 021f LoadAndInitModel(#0013)
  381. 0220 EnterVehicle()
  382. }
  383. 0224 IF (Bank0[007e].Bit(3)) {
  384. 0229 LoadAndInitModel(#0013)
  385. 022a EnterVehicle()
  386. }
  387. 022e IF (Bank0[007e].Bit(4)) {
  388. 0233 LoadAndInitModel(#0013)
  389. 0234 EnterVehicle()
  390. }
  391. 0238 IF (Bank0[007e].Bit(5)) {
  392. 023d LoadAndInitModel(#0013)
  393. 023e EnterVehicle()
  394. }
  395. 0242 IF (Bank0[007e].Bit(6)) {
  396. 0247 LoadAndInitModel(#0013)
  397. 0248 EnterVehicle()
  398. }
  399. }
  400. 024e ActiveEntity.SetMeshCoordsXZ(#001d, #0010)
  401. 0254 ActiveEntity.SetCoordsInMeshXZ(#0712, #1d23)
  402. 0258 ActiveEntity.SetDirectionAndFacing(#0000)
  403. 0259 GOTO 083d
  404. }
  405. 0261 IF ((GetSpecial(0006) == #0004)) {
  406. 0268 ActiveEntity.SetMeshCoordsXZ(#001a, #0012)
  407. 026e ActiveEntity.SetCoordsInMeshXZ(#073d, #15ba)
  408. 0272 ActiveEntity.SetDirectionAndFacing(#0060)
  409. 0273 GOTO 083d
  410. }
  411. 027b IF ((GetSpecial(0006) == #0005)) {
  412. 0282 ActiveEntity.SetMeshCoordsXZ(#0019, #0013)
  413. 0288 ActiveEntity.SetCoordsInMeshXZ(#0fdd, #095c)
  414. 028c ActiveEntity.SetDirectionAndFacing(#00e4)
  415. 028d GOTO 083d
  416. }
  417. 0295 IF ((GetSpecial(0006) == #0006)) {
  418. 029c ActiveEntity.SetMeshCoordsXZ(#0018, #0014)
  419. 02a2 ActiveEntity.SetCoordsInMeshXZ(#1a1d, #19ff)
  420. 02a6 ActiveEntity.SetDirectionAndFacing(#0000)
  421. 02a7 GOTO 083d
  422. }
  423. 02af IF ((GetSpecial(0006) == #0007)) {
  424. 02b4 IF (Bank0[007f].Bit(0)) {
  425. 02b9 IF (Bank0[007f].Bit(1)) {
  426. 02be LoadAndInitModel(#0006)
  427. 02bf EnterVehicle()
  428. }
  429. }
  430. 02c5 ActiveEntity.SetMeshCoordsXZ(#0014, #0011)
  431. 02cb ActiveEntity.SetCoordsInMeshXZ(#175d, #1e0e)
  432. 02cf ActiveEntity.SetDirectionAndFacing(#0000)
  433. 02d0 GOTO 083d
  434. }
  435. 02d8 IF ((GetSpecial(0006) == #0008)) {
  436. 02df ActiveEntity.SetMeshCoordsXZ(#0014, #0016)
  437. 02e5 ActiveEntity.SetCoordsInMeshXZ(#1814, #0d4d)
  438. 02e9 ActiveEntity.SetDirectionAndFacing(#0000)
  439. 02ea GOTO 083d
  440. }
  441. 02f2 IF ((GetSpecial(0006) == #0009)) {
  442. 02f9 ActiveEntity.SetMeshCoordsXZ(#0018, #0010)
  443. 02ff ActiveEntity.SetCoordsInMeshXZ(#0a8b, #09d1)
  444. 0303 ActiveEntity.SetDirectionAndFacing(#0038)
  445. 0304 GOTO 083d
  446. }
  447. 030c IF ((GetSpecial(0006) == #000a)) {
  448. 0313 ActiveEntity.SetMeshCoordsXZ(#000f, #0015)
  449. 0319 ActiveEntity.SetCoordsInMeshXZ(#1908, #07f1)
  450. 031d ActiveEntity.SetDirectionAndFacing(#0000)
  451. 031e GOTO 083d
  452. }
  453. 0326 IF ((GetSpecial(0006) == #000b)) {
  454. 032d ActiveEntity.SetMeshCoordsXZ(#001a, #0018)
  455. 0334 IF ((Bank0_16bit[0000] >= #04ad)) {
  456. 033b ActiveEntity.SetCoordsInMeshXZ(#1a25, #18d8)
  457. 033c GOTO 0344
  458. }
  459. 0343 ActiveEntity.SetCoordsInMeshXZ(#1bd7, #153b)
  460. 0347 ActiveEntity.SetDirectionAndFacing(#0000)
  461. 0348 GOTO 083d
  462. }
  463. 0350 IF ((GetSpecial(0006) == #000c)) {
  464. 0357 ActiveEntity.SetMeshCoordsXZ(#0021, #0011)
  465. 035d ActiveEntity.SetCoordsInMeshXZ(#0f64, #05e8)
  466. 0361 ActiveEntity.SetDirectionAndFacing(#0000)
  467. 0362 GOTO 083d
  468. }
  469. 036a IF ((GetSpecial(0006) == #000d)) {
  470. 036f IF (Bank0[007f].Bit(0)) {
  471. 0374 IF (Bank0[007f].Bit(1)) {
  472. 0379 LoadAndInitModel(#0006)
  473. 037a EnterVehicle()
  474. }
  475. }
  476. 0380 ActiveEntity.SetMeshCoordsXZ(#0011, #000f)
  477. 0386 ActiveEntity.SetCoordsInMeshXZ(#0607, #0cb2)
  478. 038a ActiveEntity.SetDirectionAndFacing(#0000)
  479. 038b GOTO 083d
  480. }
  481. 0393 IF ((GetSpecial(0006) == #000e)) {
  482. 039a ActiveEntity.SetMeshCoordsXZ(#000d, #000e)
  483. 03a0 ActiveEntity.SetCoordsInMeshXZ(#1f1d, #1aa5)
  484. 03a4 ActiveEntity.SetDirectionAndFacing(#0044)
  485. 03a5 GOTO 083d
  486. }
  487. 03ad IF ((GetSpecial(0006) == #000f)) {
  488. 03b4 ActiveEntity.SetMeshCoordsXZ(#000d, #000f)
  489. 03ba ActiveEntity.SetCoordsInMeshXZ(#0a98, #0c93)
  490. 03be ActiveEntity.SetDirectionAndFacing(#00fa)
  491. 03bf GOTO 083d
  492. }
  493. 03c7 IF ((GetSpecial(0006) == #0010)) {
  494. 03cc IF (Bank0[007f].Bit(0)) {
  495. 03d1 IF (Bank0[007f].Bit(1)) {
  496. 03d6 LoadAndInitModel(#0006)
  497. 03d7 EnterVehicle()
  498. }
  499. }
  500. 03dd ActiveEntity.SetMeshCoordsXZ(#000e, #0012)
  501. 03e3 ActiveEntity.SetCoordsInMeshXZ(#1615, #1e6e)
  502. 03e7 ActiveEntity.SetDirectionAndFacing(#0000)
  503. 03e8 GOTO 083d
  504. }
  505. 03f0 IF ((GetSpecial(0006) == #0011)) {
  506. 03f7 ActiveEntity.SetMeshCoordsXZ(#000d, #0016)
  507. 03fd ActiveEntity.SetCoordsInMeshXZ(#18dc, #117a)
  508. 0401 ActiveEntity.SetDirectionAndFacing(#0000)
  509. 0402 GOTO 083d
  510. }
  511. 040a IF ((GetSpecial(0006) == #0012)) {
  512. 0411 ActiveEntity.SetMeshCoordsXZ(#000a, #0014)
  513. 0417 ActiveEntity.SetCoordsInMeshXZ(#14d9, #1c20)
  514. 041b ActiveEntity.SetDirectionAndFacing(#0000)
  515. 041c GOTO 083d
  516. }
  517. 0424 IF ((GetSpecial(0006) == #0013)) {
  518. 042b ActiveEntity.SetMeshCoordsXZ(#000b, #0010)
  519. 0431 ActiveEntity.SetCoordsInMeshXZ(#09f1, #17f0)
  520. 0435 ActiveEntity.SetDirectionAndFacing(#0000)
  521. 0436 GOTO 083d
  522. }
  523. 043e IF ((GetSpecial(0006) == #0014)) {
  524. 0445 ActiveEntity.SetMeshCoordsXZ(#000a, #000e)
  525. 044b ActiveEntity.SetCoordsInMeshXZ(#0741, #1a88)
  526. 044f ActiveEntity.SetDirectionAndFacing(#0000)
  527. 0450 GOTO 083d
  528. }
  529. 0458 IF ((GetSpecial(0006) == #0015)) {
  530. 045f ActiveEntity.SetMeshCoordsXZ(#000c, #0011)
  531. 0465 ActiveEntity.SetCoordsInMeshXZ(#0e5d, #094a)
  532. 0469 ActiveEntity.SetDirectionAndFacing(#0000)
  533. 046a GOTO 083d
  534. }
  535. 0472 IF ((GetSpecial(0006) == #0016)) {
  536. 0479 ActiveEntity.SetMeshCoordsXZ(#000e, #000d)
  537. 047f ActiveEntity.SetCoordsInMeshXZ(#061c, #0ce0)
  538. 0483 ActiveEntity.SetDirectionAndFacing(#0000)
  539. 0484 GOTO 083d
  540. }
  541. 048c IF ((GetSpecial(0006) == #0017)) {
  542. 0493 ActiveEntity.SetMeshCoordsXZ(#0004, #000a)
  543. 0499 ActiveEntity.SetCoordsInMeshXZ(#141b, #1c3f)
  544. 049d ActiveEntity.SetDirectionAndFacing(#0000)
  545. 049e GOTO 083d
  546. }
  547. 04a6 IF ((GetSpecial(0006) == #0018)) {
  548. 04ad ActiveEntity.SetMeshCoordsXZ(#0006, #000f)
  549. 04b3 ActiveEntity.SetCoordsInMeshXZ(#0f9f, #14e9)
  550. 04b7 ActiveEntity.SetDirectionAndFacing(#00bc)
  551. 04b8 GOTO 083d
  552. }
  553. 04c0 IF ((GetSpecial(0006) == #0019)) {
  554. 04c7 ActiveEntity.SetMeshCoordsXZ(#0013, #000a)
  555. 04cd ActiveEntity.SetCoordsInMeshXZ(#03c0, #1f72)
  556. 04d1 ActiveEntity.SetDirectionAndFacing(#0000)
  557. 04d2 GOTO 083d
  558. }
  559. 04da IF ((GetSpecial(0006) == #001a)) {
  560. 04e1 ActiveEntity.SetMeshCoordsXZ(#0013, #0008)
  561. 04e7 ActiveEntity.SetCoordsInMeshXZ(#0720, #171b)
  562. 04eb ActiveEntity.SetDirectionAndFacing(#00c0)
  563. 04ec GOTO 083d
  564. }
  565. 04f4 IF ((GetSpecial(0006) == #001b)) {
  566. 04fb ActiveEntity.SetMeshCoordsXZ(#000f, #0008)
  567. 0501 ActiveEntity.SetCoordsInMeshXZ(#1817, #1d0b)
  568. 0505 ActiveEntity.SetDirectionAndFacing(#0000)
  569. 0506 GOTO 083d
  570. }
  571. 050e IF ((GetSpecial(0006) == #001c)) {
  572. 0515 ActiveEntity.SetMeshCoordsXZ(#0011, #0008)
  573. 051b ActiveEntity.SetCoordsInMeshXZ(#1cf4, #10a9)
  574. 051f ActiveEntity.SetDirectionAndFacing(#0060)
  575. 0520 GOTO 083d
  576. }
  577. 0528 IF ((GetSpecial(0006) == #001d)) {
  578. 052f ActiveEntity.SetMeshCoordsXZ(#0020, #0001)
  579. 0535 ActiveEntity.SetCoordsInMeshXZ(#0477, #16ad)
  580. 0539 ActiveEntity.SetDirectionAndFacing(#00e7)
  581. 053a GOTO 083d
  582. }
  583. 0542 IF ((GetSpecial(0006) == #0020)) {
  584. 0547 IF (Bank0[007e].Bit(1)) {
  585. 054c IF (Bank0[007e].Bit(0)) {
  586. 0551 LoadAndInitModel(#0004)
  587. 0552 EnterVehicle()
  588. }
  589. 0556 IF (Bank0[007e].Bit(2)) {
  590. 055b LoadAndInitModel(#0013)
  591. 055c EnterVehicle()
  592. }
  593. 0560 IF (Bank0[007e].Bit(3)) {
  594. 0565 LoadAndInitModel(#0013)
  595. 0566 EnterVehicle()
  596. }
  597. 056a IF (Bank0[007e].Bit(4)) {
  598. 056f LoadAndInitModel(#0013)
  599. 0570 EnterVehicle()
  600. }
  601. 0574 IF (Bank0[007e].Bit(5)) {
  602. 0579 LoadAndInitModel(#0013)
  603. 057a EnterVehicle()
  604. }
  605. 057e IF (Bank0[007e].Bit(6)) {
  606. 0583 LoadAndInitModel(#0013)
  607. 0584 EnterVehicle()
  608. }
  609. }
  610. 058a ActiveEntity.SetMeshCoordsXZ(GetSpecial(0000), GetSpecial(0001))
  611. 0590 ActiveEntity.SetCoordsInMeshXZ(GetSpecial(0002), GetSpecial(0003))
  612. 0594 ActiveEntity.SetDirectionAndFacing(GetSpecial(0004))
  613. 0595 GOTO 083d
  614. }
  615. 059d IF ((GetSpecial(0006) == #0021)) {
  616. 05a2 IF (Bank0[007f].Bit(0)) {
  617. 05a7 IF (Bank0[007f].Bit(1)) {
  618. 05ac LoadAndInitModel(#0006)
  619. 05ad EnterVehicle()
  620. }
  621. }
  622. 05b3 ActiveEntity.SetMeshCoordsXZ(GetSpecial(0000), GetSpecial(0001))
  623. 05b9 ActiveEntity.SetCoordsInMeshXZ(GetSpecial(0002), GetSpecial(0003))
  624. 05bd ActiveEntity.SetDirectionAndFacing(GetSpecial(0004))
  625. 05be GOTO 083d
  626. }
  627. 05c6 IF ((GetSpecial(0006) == #0022)) {
  628. 05cb IF (Bank0[007e].Bit(1)) {
  629. 05d0 IF (Bank0[007e].Bit(0)) {
  630. 05d5 LoadAndInitModel(#0004)
  631. 05d6 EnterVehicle()
  632. }
  633. 05da IF (Bank0[007e].Bit(2)) {
  634. 05df LoadAndInitModel(#0013)
  635. 05e0 EnterVehicle()
  636. }
  637. 05e4 IF (Bank0[007e].Bit(3)) {
  638. 05e9 LoadAndInitModel(#0013)
  639. 05ea EnterVehicle()
  640. }
  641. 05ee IF (Bank0[007e].Bit(4)) {
  642. 05f3 LoadAndInitModel(#0013)
  643. 05f4 EnterVehicle()
  644. }
  645. 05f8 IF (Bank0[007e].Bit(5)) {
  646. 05fd LoadAndInitModel(#0013)
  647. 05fe EnterVehicle()
  648. }
  649. 0602 IF (Bank0[007e].Bit(6)) {
  650. 0607 LoadAndInitModel(#0013)
  651. 0608 EnterVehicle()
  652. }
  653. }
  654. 060e ActiveEntity.SetMeshCoordsXZ(GetSpecial(0000), GetSpecial(0001))
  655. 0614 ActiveEntity.SetCoordsInMeshXZ(GetSpecial(0002), GetSpecial(0003))
  656. 0618 ActiveEntity.SetDirectionAndFacing(GetSpecial(0004))
  657. 0619 GOTO 083d
  658. }
  659. 0621 IF ((GetSpecial(0006) == #0024)) {
  660. 0626 LoadAndInitModel(#0008)
  661. 0627 SetCurrentEntityAsPlayerEntity()
  662. 0628 GOTO 083d
  663. }
  664. 0630 IF ((GetSpecial(0006) == #0025)) {
  665. 0635 LoadAndInitModel(#0008)
  666. 0636 SetCurrentEntityAsPlayerEntity()
  667. 0637 GOTO 083d
  668. }
  669. 063f IF ((GetSpecial(0006) == #0026)) {
  670. 0644 LoadAndInitModel(#0008)
  671. 0645 SetCurrentEntityAsPlayerEntity()
  672. 0646 GOTO 083d
  673. }
  674. 064e IF ((GetSpecial(0006) == #0027)) {
  675. 0653 LoadAndInitModel(#0008)
  676. 0654 SetCurrentEntityAsPlayerEntity()
  677. 0655 GOTO 083d
  678. }
  679. 065d IF ((GetSpecial(0006) == #0028)) {
  680. 0662 IF (Bank0[007f].Bit(2)) {
  681. 0667 LoadAndInitModel(#0005)
  682. 0668 EnterVehicle()
  683. }
  684. 066e ActiveEntity.SetMeshCoordsXZ(#0006, #0013)
  685. 0674 ActiveEntity.SetCoordsInMeshXZ(#1c3b, #0268)
  686. 0678 ActiveEntity.SetDirectionAndFacing(#0000)
  687. 0679 GOTO 083d
  688. }
  689. 0681 IF ((GetSpecial(0006) == #0029)) {
  690. 0686 IF (Bank0[007f].Bit(4)) {
  691. 068b LoadAndInitModel(#0003)
  692. 068c EnterVehicle()
  693. }
  694. 0692 ActiveEntity.SetMeshCoordsXZ(#0014, #0011)
  695. 0698 ActiveEntity.SetCoordsInMeshXZ(#11d1, #18c9)
  696. 0699 GOTO 083d
  697. }
  698. 06a1 IF ((GetSpecial(0006) == #002b)) {
  699. 06a8 ActiveEntity.SetMeshCoordsXZ(#000b, #0010)
  700. 06ae ActiveEntity.SetCoordsInMeshXZ(#095a, #1074)
  701. 06b2 ActiveEntity.SetDirectionAndFacing(#0080)
  702. 06b3 GOTO 083d
  703. }
  704. 06bb IF ((GetSpecial(0006) == #002c)) {
  705. 06c2 ActiveEntity.SetMeshCoordsXZ(#000b, #000f)
  706. 06c8 ActiveEntity.SetCoordsInMeshXZ(#0f70, #0e98)
  707. 06cc ActiveEntity.SetDirectionAndFacing(#0000)
  708. 06cd GOTO 083d
  709. }
  710. 06d5 IF ((GetSpecial(0006) == #002d)) {
  711. 06da IF (Bank0[007f].Bit(4)) {
  712. 06df IF (Bank0[007f].Bit(5)) {
  713. 06e4 IF (Bank0[0385].Bit(7)) {
  714. 06e9 LoadAndInitModel(#0013)
  715. 06ea EnterVehicle()
  716. }
  717. 06ee LoadAndInitModel(#0003)
  718. 06ef EnterVehicle()
  719. 06f3 IF (Bank0[0385].Bit(6)) {
  720. 06fa ActiveEntity.SetMeshCoordsXZ(#0010, #0004)
  721. 0700 ActiveEntity.SetCoordsInMeshXZ(#0033, #0f8b)
  722. 0706 WRITE Bank0[0385].Bit(6) = #0000
  723. }
  724. }
  725. }
  726. 0707 GOTO 083d
  727. }
  728. 070f IF ((GetSpecial(0006) == #002e)) {
  729. 0716 ActiveEntity.SetMeshCoordsXZ(#000a, #0010)
  730. 071c ActiveEntity.SetCoordsInMeshXZ(#1707, #07e3)
  731. 0720 ActiveEntity.SetDirectionAndFacing(#00e8)
  732. 0721 GOTO 083d
  733. }
  734. 0729 IF ((GetSpecial(0006) == #002f)) {
  735. 0730 ActiveEntity.SetMeshCoordsXZ(#000f, #0008)
  736. 0736 ActiveEntity.SetCoordsInMeshXZ(#182b, #161f)
  737. 073a ActiveEntity.SetDirectionAndFacing(#0080)
  738. 073b GOTO 083d
  739. }
  740. 0743 IF ((GetSpecial(0006) == #0030)) {
  741. 074a ActiveEntity.SetMeshCoordsXZ(#0010, #0006)
  742. 0750 ActiveEntity.SetCoordsInMeshXZ(#13d9, #1420)
  743. 0754 ActiveEntity.SetDirectionAndFacing(#00e3)
  744. 0755 GOTO 083d
  745. }
  746. 075d IF ((GetSpecial(0006) == #0031)) {
  747. 0768 Op319(((GetSpecial(0007) & #00fc) | #0002))
  748. 076e ActiveEntity.SetMeshCoordsXZ(#000a, #000e)
  749. 0774 ActiveEntity.SetCoordsInMeshXZ(#0a37, #0fc1)
  750. 0778 ActiveEntity.SetDirectionAndFacing(#0080)
  751. 0779 GOTO 083d
  752. }
  753. 0781 IF ((GetSpecial(0006) == #0033)) {
  754. 0786 IF (Bank0[007f].Bit(4)) {
  755. 078b LoadAndInitModel(#0003)
  756. 078c EnterVehicle()
  757. 0790 LoadAndInitModel(#000a)
  758. }
  759. 0791 GOTO 083d
  760. }
  761. 0799 IF ((GetSpecial(0006) == #0035)) {
  762. 07a0 ActiveEntity.SetMeshCoordsXZ(GetSpecial(0000), GetSpecial(0001))
  763. 07a6 ActiveEntity.SetCoordsInMeshXZ(GetSpecial(0002), GetSpecial(0003))
  764. 07aa ActiveEntity.SetDirectionAndFacing(GetSpecial(0004))
  765. 07ab GOTO 083d
  766. }
  767. 07b3 IF ((GetSpecial(0006) == #0036)) {
  768. 07b8 IF (Bank0[0352].Bit(2)) {
  769. 07bd LoadAndInitModel(#000d)
  770. 07be EnterVehicle()
  771. }
  772. 07c4 ActiveEntity.SetMeshCoordsXZ(#0014, #0011)
  773. 07ca ActiveEntity.SetCoordsInMeshXZ(#0fe1, #1880)
  774. 07ce ActiveEntity.SetDirectionAndFacing(#00c0)
  775. 07cf GOTO 083d
  776. }
  777. 07d7 IF ((GetSpecial(0006) == #0037)) {
  778. 07de ActiveEntity.SetMeshCoordsXZ(#000b, #0016)
  779. 07e4 ActiveEntity.SetCoordsInMeshXZ(#0b50, #0247)
  780. 07e8 ActiveEntity.SetDirectionAndFacing(#0000)
  781. 07e9 GOTO 083d
  782. }
  783. 07f1 IF ((GetSpecial(0006) == #0039)) {
  784. 07f8 ActiveEntity.SetMeshCoordsXZ(#0013, #000a)
  785. 07fe ActiveEntity.SetCoordsInMeshXZ(#1d13, #0f0c)
  786. 0802 ActiveEntity.SetDirectionAndFacing(#0080)
  787. 0803 GOTO 083d
  788. }
  789. 080b IF ((GetSpecial(0006) == #003a)) {
  790. 0812 ActiveEntity.SetMeshCoordsXZ(#0013, #000a)
  791. 0818 ActiveEntity.SetCoordsInMeshXZ(#19f2, #00f9)
  792. 081c ActiveEntity.SetDirectionAndFacing(#0019)
  793. 081d GOTO 083d
  794. }
  795. 0825 IF ((GetSpecial(0006) == #003b)) {
  796. 082a IF (Bank0[007f].Bit(4)) {
  797. 082f LoadAndInitModel(#0003)
  798. 0830 EnterVehicle()
  799. 0836 ActiveEntity.SetMeshCoordsXZ(#0010, #0004)
  800. 083c ActiveEntity.SetCoordsInMeshXZ(#0033, #0f8b)
  801. }
  802. }
  803. 083d GOTO 0a6b
  804. }
  805. 0843 IF ((!Bank0[007b].Bit(3))) {
  806. 0848 IF (Bank0[0386].Bit(4)) {
  807. 084d LoadAndInitModel(#001d)
  808. 0853 WRITE Bank0[0387].Bit(4) = #0001
  809. }
  810. }
  811. 0857 IF (Bank0[007b].Bit(0)) {
  812. 085d IF ((!Bank0[0386].Bit(4))) {
  813. 0862 IF (Bank0[0387].Bit(0)) {
  814. 0867 LoadAndInitModel(#0003)
  815. 0868 EnterVehicle()
  816. 086c LoadAndInitModel(#000b)
  817. }
  818. }
  819. }
  820. 0871 IF ((!Bank0[007a].Bit(0))) {
  821. 0876 LoadAndInitModel(#0007)
  822. }
  823. 087a IF (Bank0[007a].Bit(3)) {
  824. 087f LoadAndInitModel(#0014)
  825. }
  826. 0884 IF ((!Bank0[007a].Bit(1))) {
  827. 0889 LoadAndInitModel(#000f)
  828. }
  829. 088e IF ((!Bank0[0351])) {
  830. 0893 LoadAndInitModel(#000c)
  831. }
  832. 089a IF ((Bank0_16bit[0000] < #062c)) {
  833. 089f LoadAndInitModel(#0018)
  834. }
  835. 08a3 LoadAndInitModel(#000e)
  836. 08a7 LoadAndInitModel(#0010)
  837. 08ab LoadAndInitModel(#0019)
  838. 08b0 IF ((!Bank0[007b].Bit(0))) {
  839. 08b8 IF ((Bank0_16bit[0000] >= #062c)) {
  840. 08bd LoadAndInitModel(#000b)
  841. }
  842. }
  843. 08c1 IF (Bank0[0352].Bit(3)) {
  844. 08c6 LoadAndInitModel(#000a)
  845. }
  846. 08ca IF (Bank0[007f].Bit(0)) {
  847. 08cf LoadAndInitModel(#0006)
  848. }
  849. 08d3 IF (Bank0[007f].Bit(2)) {
  850. 08d8 LoadAndInitModel(#0005)
  851. }
  852. 08dc IF (Bank0[007f].Bit(4)) {
  853. 08e1 LoadAndInitModel(#0003)
  854. }
  855. 08e5 IF (Bank0[0350].Bit(3)) {
  856. 08ea LoadAndInitModel(#000d)
  857. }
  858. 08ee IF (Bank0[0352].Bit(2)) {
  859. 08f3 LoadAndInitModel(#000d)
  860. }
  861. 08f7 IF (Bank0[0384].Bit(0)) {
  862. 08fc IF (Bank0[007e].Bit(0)) {
  863. 0901 LoadAndInitModel(#0004)
  864. }
  865. 0905 IF (Bank0[007e].Bit(2)) {
  866. 090a LoadAndInitModel(#0013)
  867. }
  868. 090e IF (Bank0[007e].Bit(3)) {
  869. 0913 LoadAndInitModel(#0013)
  870. }
  871. 0917 IF (Bank0[007e].Bit(4)) {
  872. 091c LoadAndInitModel(#0013)
  873. }
  874. 0920 IF (Bank0[007e].Bit(5)) {
  875. 0925 LoadAndInitModel(#0013)
  876. }
  877. 0929 IF (Bank0[007e].Bit(6)) {
  878. 092e LoadAndInitModel(#0013)
  879. }
  880. }
  881. 0932 LoadAndInitModel(GetSpecial(000e))
  882. 0933 SetCurrentEntityAsPlayerEntity()
  883. 0937 IF (Bank0[0384].Bit(0)) {
  884. 093c IF (Bank0[007e].Bit(1)) {
  885. 0941 IF (Bank0[007e].Bit(2)) {
  886. 0946 LoadAndInitModel(#0013)
  887. }
  888. 094a IF (Bank0[007e].Bit(3)) {
  889. 094f LoadAndInitModel(#0013)
  890. }
  891. 0953 IF (Bank0[007e].Bit(4)) {
  892. 0958 LoadAndInitModel(#0013)
  893. }
  894. 095c IF (Bank0[007e].Bit(5)) {
  895. 0961 LoadAndInitModel(#0013)
  896. }
  897. 0965 IF (Bank0[007e].Bit(6)) {
  898. 096a LoadAndInitModel(#0013)
  899. }
  900. 096e IF (Bank0[007e].Bit(0)) {
  901. 0973 LoadAndInitModel(#0004)
  902. }
  903. 0974 EnterVehicle()
  904. }
  905. 0978 IF (GetSpecial(000a)) {
  906. 097a Op320()
  907. 0980 WRITE Bank0[0384].Bit(0) = #0000
  908. 0984 IF (Bank0[0384].Bit(1)) {
  909. 098b ActiveEntity.SetMeshCoordsXZ(#001b, #0011)
  910. 0991 ActiveEntity.SetCoordsInMeshXZ(#1b42, #0737)
  911. 0995 ActiveEntity.SetDirectionAndFacing(#00e0)
  912. 0996 GOTO 09a8
  913. }
  914. 099d ActiveEntity.SetMeshCoordsXZ(#001a, #0012)
  915. 09a3 ActiveEntity.SetCoordsInMeshXZ(#0cbd, #0fe6)
  916. 09a7 ActiveEntity.SetDirectionAndFacing(#0060)
  917. 09a8 GOTO 09b6
  918. }
  919. 09af WRITE Bank0[0381] = #005a
  920. 09b5 WRITE Bank0[0384].Bit(0) = #0000
  921. 09b6 GOTO 0a64
  922. }
  923. 09b8 Op320()
  924. 09be WRITE Bank0[0384].Bit(0) = #0000
  925. 09c2 IF (Bank0[0054]) {
  926. 09c9 WRITE Bank0[0054] = #0000
  927. 09cf WRITE Bank0[007e].Bit(1) = #0001
  928. 09d5 WRITE Bank0[007e].Bit(0) = #0001
  929. 09db WRITE Bank0[0382] = GetSpecial(0000)
  930. 09e1 WRITE Bank0[0383] = GetSpecial(0001)
  931. 09e7 WRITE Bank0_16bit[0388] = GetSpecial(0002)
  932. 09ed WRITE Bank0_16bit[038a] = GetSpecial(0003)
  933. 09f1 LoadAndInitModel(#0004)
  934. 09f7 ActiveEntity.SetMeshCoordsXZ(Bank0[0382], Bank0[0383])
  935. 09fd ActiveEntity.SetCoordsInMeshXZ(Bank0_16bit[0388], Bank0_16bit[038a])
  936. 09fe EnterVehicle()
  937. 0a02 IF (Bank0[007e].Bit(2)) {
  938. 0a07 LoadAndInitModel(#0013)
  939. }
  940. 0a0b IF (Bank0[007e].Bit(3)) {
  941. 0a10 LoadAndInitModel(#0013)
  942. }
  943. 0a14 IF (Bank0[007e].Bit(4)) {
  944. 0a19 LoadAndInitModel(#0013)
  945. }
  946. 0a1d IF (Bank0[007e].Bit(5)) {
  947. 0a22 LoadAndInitModel(#0013)
  948. }
  949. 0a26 IF (Bank0[007e].Bit(6)) {
  950. 0a2b LoadAndInitModel(#0013)
  951. }
  952. 0a2c GOTO 0a64
  953. }
  954. 0a31 IF (Bank0[007e].Bit(0)) {
  955. 0a36 LoadAndInitModel(#0004)
  956. }
  957. 0a3a IF (Bank0[007e].Bit(2)) {
  958. 0a3f LoadAndInitModel(#0013)
  959. }
  960. 0a43 IF (Bank0[007e].Bit(3)) {
  961. 0a48 LoadAndInitModel(#0013)
  962. }
  963. 0a4c IF (Bank0[007e].Bit(4)) {
  964. 0a51 LoadAndInitModel(#0013)
  965. }
  966. 0a55 IF (Bank0[007e].Bit(5)) {
  967. 0a5a LoadAndInitModel(#0013)
  968. }
  969. 0a5e IF (Bank0[007e].Bit(6)) {
  970. 0a63 LoadAndInitModel(#0013)
  971. }
  972. 0a64 Op320()
  973. 0a6a WRITE Bank0[0384].Bit(0) = #0000
  974. 0a70 SetActivePoint(#0000, #0001)
  975. 0a76 SetPointMeshCoordsXZ(#0016, #000e)
  976. 0a7c SetPointCoordsInMeshXZ(#1505, #14e1)
  977. 0a84 SetPointTerrainBGR(#003c, #005a, #0064)
  978. 0a8a SetPointDropoffParams(#000a, #000a)
  979. 0a92 SetPointSkyBGR(#0000, #0000, #0041)
  980. 0a9a SetPointOtherBGR(#0091, #00ff, #00be)
  981. 0aa0 SetActivePoint(#0001, #0001)
  982. 0aa6 SetPointMeshCoordsXZ(#0010, #0004)
  983. 0aac SetPointCoordsInMeshXZ(#0001, #0f9f)
  984. 0ab4 SetPointTerrainBGR(#003c, #0078, #008c)
  985. 0aba SetPointDropoffParams(#000a, #000a)
  986. 0ac2 SetPointSkyBGR(#0000, #0005, #0037)
  987. 0aca SetPointOtherBGR(#00c3, #00ff, #00eb)
  988. 0ad0 SetActivePoint(#0002, #0001)
  989. 0ad6 SetPointMeshCoordsXZ(#000a, #0014)
  990. 0adc SetPointCoordsInMeshXZ(#15e0, #17f2)
  991. 0ae4 SetPointTerrainBGR(#00ff, #0082, #0028)
  992. 0aea SetPointDropoffParams(#000a, #000a)
  993. 0af2 SetPointSkyBGR(#0082, #0078, #00b4)
  994. 0afa SetPointOtherBGR(#00f0, #0064, #0032)
  995. 0b00 SetActivePoint(#0003, #0000)
  996. 0b06 SetPointMeshCoordsXZ(#000e, #0012)
  997. 0b0c SetPointCoordsInMeshXZ(#14ad, #1deb)
  998. 0b12 SetActivePoint(#0004, #0000)
  999. 0b18 SetPointMeshCoordsXZ(#0016, #0012)
  1000. 0b1e SetPointCoordsInMeshXZ(#1b5d, #0042)
  1001. 0b24 SetActivePoint(#0005, #0000)
  1002. 0b2a SetPointMeshCoordsXZ(#000f, #0008)
  1003. 0b30 SetPointCoordsInMeshXZ(#18ad, #1270)
  1004. 0b36 SetActivePoint(#0009, #0000)
  1005. 0b3c SetPointMeshCoordsXZ(#0016, #000e)
  1006. 0b42 SetPointCoordsInMeshXZ(#1505, #14e1)
  1007. 0b48 SetActivePoint(#000a, #0000)
  1008. 0b4e SetPointMeshCoordsXZ(#0018, #0014)
  1009. 0b54 SetPointCoordsInMeshXZ(#1a36, #15dc)
  1010. 0b5a SetActivePoint(#000b, #0000)
  1011. 0b60 SetPointMeshCoordsXZ(#000d, #000e)
  1012. 0b66 SetPointCoordsInMeshXZ(#0cb9, #1763)
  1013. 0b6c SetActivePoint(#000c, #0000)
  1014. 0b72 SetPointMeshCoordsXZ(#000d, #0016)
  1015. 0b78 SetPointCoordsInMeshXZ(#18d9, #086d)
  1016. 0b7e SetActivePoint(#000d, #0000)
  1017. 0b84 SetPointMeshCoordsXZ(#000b, #000f)
  1018. 0b8a SetPointCoordsInMeshXZ(#0b45, #1896)
  1019. 0b90 SetActivePoint(#000e, #0000)
  1020. 0b96 SetPointMeshCoordsXZ(#0010, #0004)
  1021. 0b9c SetPointCoordsInMeshXZ(#0001, #0f9f)
  1022. 0ba2 SetActivePoint(#000f, #0000)
  1023. 0ba8 SetPointMeshCoordsXZ(#001a, #0018)
  1024. 0bae SetPointCoordsInMeshXZ(#1b7e, #13ab)
  1025. 0bb5 IF ((Bank0_16bit[0000] == #063c)) {
  1026. 0bba SendSoundCommand(#0007)
  1027. 0bbb GOTO 0bd1
  1028. }
  1029. 0bc0 IF (Bank0[0352].Bit(3)) {
  1030. 0bc5 IF (Bank0[0385].Bit(4)) {
  1031. 0bcb IF ((!Bank0[0385].Bit(1))) {
  1032. 0bd0 SendSoundCommand(#0006)
  1033. }
  1034. }
  1035. }
  1036. 0bd1 RETURN
  1037. Function 0bd2
  1038.  
  1039. Called by:
  1040. System.Function($OnEnterHighwind)
  1041. Addr Code
  1042. 0bd8 IF ((Bank0_16bit[0000] < #04af)) {
  1043. 0bdf EnterFieldScene(#0032, #0000)
  1044. 0be0 GOTO 0bf0
  1045. }
  1046. 0be8 IF ((Bank0_16bit[0000] > #04af)) {
  1047. 0bef EnterFieldScene(#0032, #0001)
  1048. }
  1049. 0bf0 RETURN
  1050. Function 0bf1
  1051.  
  1052. Called by:
  1053. System.Function($UnknownFunc10)
  1054. Addr Code
  1055. 0bf6 Op333(Bank1[0002], #0040)
  1056. 0bfa ActiveEntity.MoveToModel(Bank1[0002])
  1057. 0c00 ActiveEntity.PlayAnimation(#0004, #0000)
  1058. 0c04 SetNumWaitFrames(#000f)
  1059. 0c05 Wait()
  1060. 0c0b ActiveEntity.PlayAnimation(#0002, #0001)
  1061. 0c0f SetControlsEnabled(#0001)
  1062. 0c10 RETURN
  1063. Function 0c11
  1064.  
  1065. Called by:
  1066. System.Function($UnknownFunc11)
  1067. Addr Code
  1068. 0c16 ActiveEntity.PlayAnimation(#0005, #0000)
  1069. 0c1a SetNumWaitFrames(#000f)
  1070. 0c1b Wait()
  1071. 0c21 ActiveEntity.PlayAnimation(#0000, #0001)
  1072. 0c2a Op353()
  1073. 0c31 ActiveEntity.SetDirectionAndFacing((Bank1[0003] + #00c0))
  1074. 0c35 SetControlsEnabled(#0001)
  1075. 0c39 SetControlsEnabled(#0000)
  1076. 0c3a RETURN
  1077. Function 0c3b
  1078.  
  1079. Called by:
  1080. System.Function($UnknownFunc12)
  1081. Addr Code
  1082. 0c41 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1083. 0c45 ActiveEntity.SetMoveSpeed(#0014)
  1084. 0c49 SetNumWaitFrames(#0005)
  1085. 0c4a Wait()
  1086. 0c4e ActiveEntity.SetMoveSpeed(#0000)
  1087. 0c54 SetWindowParams(#0000, #0000)
  1088. 0c5b IF ((GetSpecial(0008) == #0000)) {
  1089. 0c5d WaitForWindowReady()
  1090. 0c67 SetWindowDimensions(#0034, #00a0, #00d9, #0029)
  1091. 0c68 WaitForWindowReady()
  1092. 0c6c SetWindowMessage(#0031)
  1093. 0c6d GOTO 0ca1
  1094. }
  1095. 0c75 IF ((GetSpecial(0008) == #0001)) {
  1096. 0c77 WaitForWindowReady()
  1097. 0c81 SetWindowDimensions(#004c, #00a0, #00a7, #0039)
  1098. 0c82 WaitForWindowReady()
  1099. 0c86 SetWindowMessage(#0032)
  1100. 0c87 GOTO 0ca1
  1101. }
  1102. 0c8f IF ((GetSpecial(0008) == #0002)) {
  1103. 0c91 WaitForWindowReady()
  1104. 0c9b SetWindowDimensions(#0039, #00a0, #00cc, #0039)
  1105. 0c9c WaitForWindowReady()
  1106. 0ca0 SetWindowMessage(#0033)
  1107. }
  1108. 0ca1 WaitForMessageAcknowledge()
  1109. 0ca5 SetControlsEnabled(#0001)
  1110. 0ca9 SetRandomEncountersEnabled(#0001)
  1111. 0caa RETURN
  1112. Function 0cab
  1113.  
  1114. Called by:
  1115. System.Function($UnknownFunc13)
  1116. Addr Code
  1117. 0cb0 Op333(#0004, #0000)
  1118. 0cb7 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1119. 0cbb ActiveEntity.SetMoveSpeed(#0014)
  1120. 0cbf SetNumWaitFrames(#0005)
  1121. 0cc0 Wait()
  1122. 0cc4 ActiveEntity.SetMoveSpeed(#0000)
  1123. 0cc8 SetNumWaitFrames(#001e)
  1124. 0cc9 Wait()
  1125. 0ccf SetWindowParams(#0000, #0000)
  1126. 0cd6 IF ((GetSpecial(0008) == #0000)) {
  1127. 0cd8 WaitForWindowReady()
  1128. 0ce2 SetWindowDimensions(#002d, #00a0, #00e6, #0029)
  1129. 0ce3 WaitForWindowReady()
  1130. 0ce7 SetWindowMessage(#0026)
  1131. 0ce8 GOTO 0d02
  1132. }
  1133. 0cf0 IF ((GetSpecial(0008) == #0001)) {
  1134. 0cf2 WaitForWindowReady()
  1135. 0cfc SetWindowDimensions(#003d, #00a0, #00c5, #0029)
  1136. 0cfd WaitForWindowReady()
  1137. 0d01 SetWindowMessage(#0028)
  1138. }
  1139. 0d02 WaitForMessageAcknowledge()
  1140. 0d06 SetNumWaitFrames(#001e)
  1141. 0d07 Wait()
  1142. 0d0e ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1143. 0d14 SetWindowParams(#0000, #0000)
  1144. 0d1b IF ((GetSpecial(0008) == #0000)) {
  1145. 0d1d WaitForWindowReady()
  1146. 0d27 SetWindowDimensions(#0050, #00a0, #00a0, #0039)
  1147. 0d28 WaitForWindowReady()
  1148. 0d2c SetWindowMessage(#0027)
  1149. 0d2d GOTO 0d47
  1150. }
  1151. 0d35 IF ((GetSpecial(0008) == #0001)) {
  1152. 0d37 WaitForWindowReady()
  1153. 0d41 SetWindowDimensions(#003d, #00a0, #00c5, #0039)
  1154. 0d42 WaitForWindowReady()
  1155. 0d46 SetWindowMessage(#0029)
  1156. }
  1157. 0d47 WaitForMessageAcknowledge()
  1158. 0d4d WRITE Bank0[007e].Bit(1) = #0000
  1159. 0d51 SetRandomEncountersEnabled(#0001)
  1160. 0d55 SetControlsEnabled(#0001)
  1161. 0d56 RETURN
  1162. Function 0d57
  1163.  
  1164. Called by:
  1165. System.Function($UnknownFunc14)
  1166. Addr Code
  1167. 0d5c Op333(#0004, #0000)
  1168. 0d62 SetWindowParams(#0000, #0000)
  1169. 0d69 IF ((GetSpecial(0008) == #0000)) {
  1170. 0d6b WaitForWindowReady()
  1171. 0d75 SetWindowDimensions(#005b, #00a0, #0089, #0049)
  1172. 0d7d WaitForWindowReady()
  1173. 0d7e SetWindowPrompt(#002b, #0002, #0003)
  1174. 0d7f WaitForPromptAcknowledge()
  1175. 0d80 GOTO 0dbe
  1176. }
  1177. 0d88 IF ((GetSpecial(0008) == #0001)) {
  1178. 0d8a WaitForWindowReady()
  1179. 0d94 SetWindowDimensions(#0056, #00a0, #0093, #0049)
  1180. 0d9c WaitForWindowReady()
  1181. 0d9d SetWindowPrompt(#002d, #0002, #0003)
  1182. 0d9e WaitForPromptAcknowledge()
  1183. 0d9f GOTO 0dbe
  1184. }
  1185. 0da7 IF ((GetSpecial(0008) == #0002)) {
  1186. 0da9 WaitForWindowReady()
  1187. 0db3 SetWindowDimensions(#0053, #00a0, #0099, #0049)
  1188. 0dbb WaitForWindowReady()
  1189. 0dbc SetWindowPrompt(#002f, #0002, #0003)
  1190. 0dbd WaitForPromptAcknowledge()
  1191. }
  1192. 0dc4 IF ((GetSpecial(000c) == #0002)) {
  1193. 0dcb WRITE Bank0[038c] = GetSpecial(0009)
  1194. 0dd0 IF ((!Bank0[0055])) {
  1195. 0dd7 WRITE Bank0[0055] = Bank0[038c]
  1196. 0dd8 GOTO 0e1c
  1197. }
  1198. 0dde IF ((!Bank0[0056])) {
  1199. 0de5 WRITE Bank0[0056] = Bank0[038c]
  1200. 0de6 GOTO 0e1c
  1201. }
  1202. 0dec IF ((!Bank0[0057])) {
  1203. 0df3 WRITE Bank0[0057] = Bank0[038c]
  1204. 0df4 GOTO 0e1c
  1205. }
  1206. 0dfa IF ((!Bank0[0058])) {
  1207. 0e01 WRITE Bank0[0058] = Bank0[038c]
  1208. 0e02 GOTO 0e1c
  1209. }
  1210. 0e09 WRITE Bank0[0055] = Bank0[0056]
  1211. 0e0f WRITE Bank0[0056] = Bank0[0057]
  1212. 0e15 WRITE Bank0[0057] = Bank0[0058]
  1213. 0e1b WRITE Bank0[0058] = Bank0[038c]
  1214. }
  1215. 0e1c RETURN
  1216. Function 0e1d
  1217.  
  1218. Called by:
  1219. System.Function($UnknownFunc15)
  1220. Model($CloudModel).Function($UnknownFunc15)
  1221. Addr Code
  1222. 0e20 SetControlsEnabled(#0000)
  1223. 0e24 SetRandomEncountersEnabled(#0000)
  1224. 0e28 Op321(#0003)
  1225. 0e2d IF ((!Bank0[0384].Bit(2))) {
  1226. 0e2f WaitForWindowReady()
  1227. 0e39 SetWindowDimensions(#0060, #00a0, #007f, #0029)
  1228. 0e3f SetWindowParams(#0000, #0001)
  1229. 0e40 WaitForWindowReady()
  1230. 0e44 SetWindowMessage(#0014)
  1231. 0e4a ActiveEntity.PlayAnimation(#0006, #0000)
  1232. 0e4e ActiveEntity.SetMoveSpeed(#0014)
  1233. 0e52 SetNumWaitFrames(#0028)
  1234. 0e53 Wait()
  1235. 0e54 WaitForWindowReady()
  1236. 0e55 WaitForWindowReady()
  1237. 0e5f SetWindowDimensions(#0076, #00a0, #0054, #0029)
  1238. 0e65 SetWindowParams(#0000, #0001)
  1239. 0e66 WaitForWindowReady()
  1240. 0e6a SetWindowMessage(#0015)
  1241. 0e70 ActiveEntity.PlayAnimation(#0000, #0001)
  1242. 0e74 ActiveEntity.SetMoveSpeed(#0014)
  1243. 0e7b ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1244. 0e7f IF (GetSpecial(000d)) {
  1245. 0e84 SetNumWaitFrames(#0001)
  1246. 0e85 Wait()
  1247. 0e86 GOTO 0e7c
  1248. }
  1249. 0e88 WaitForWindowReady()
  1250. 0e8c ActiveEntity.SetMoveSpeed(#0000)
  1251. 0e90 SetNumWaitFrames(#000a)
  1252. 0e91 Wait()
  1253. 0e98 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1254. 0e9e ActiveEntity.PlayAnimation(#0007, #0000)
  1255. 0e9f WaitForWindowReady()
  1256. 0ea9 SetWindowDimensions(#0032, #00a0, #00dc, #0029)
  1257. 0eaf SetWindowParams(#0000, #0000)
  1258. 0eb0 WaitForWindowReady()
  1259. 0eb4 SetWindowMessage(#0016)
  1260. 0eb5 WaitForMessageAcknowledge()
  1261. 0ebb WRITE Bank0[0384].Bit(2) = #0001
  1262. 0ebc GOTO 0f02
  1263. }
  1264. 0ec1 ActiveEntity.SetMoveSpeed(#0028)
  1265. 0ec8 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1266. 0ecc IF (GetSpecial(000d)) {
  1267. 0ed1 SetNumWaitFrames(#0001)
  1268. 0ed2 Wait()
  1269. 0ed3 GOTO 0ec9
  1270. }
  1271. 0ed8 ActiveEntity.SetMoveSpeed(#0000)
  1272. 0edc SetNumWaitFrames(#000a)
  1273. 0edd Wait()
  1274. 0ee4 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1275. 0eea ActiveEntity.PlayAnimation(#0007, #0000)
  1276. 0eeb WaitForWindowReady()
  1277. 0ef5 SetWindowDimensions(#003c, #00a0, #00d2, #0039)
  1278. 0efb SetWindowParams(#0000, #0000)
  1279. 0efc WaitForWindowReady()
  1280. 0f00 SetWindowMessage(#0017)
  1281. 0f01 WaitForMessageAcknowledge()
  1282. 0f07 ActiveEntity.PlayAnimation(#0000, #0001)
  1283. 0f0b SetControlsEnabled(#0001)
  1284. 0f0f SetRandomEncountersEnabled(#0001)
  1285. 0f10 RETURN
  1286. Function 0f11
  1287.  
  1288. Called by:
  1289. Model($TifaModel).Function($UnknownFunc15)
  1290. Addr Code
  1291. 0f14 SetControlsEnabled(#0000)
  1292. 0f18 SetRandomEncountersEnabled(#0000)
  1293. 0f1c Op321(#0003)
  1294. 0f21 IF ((!Bank0[0384].Bit(2))) {
  1295. 0f23 WaitForWindowReady()
  1296. 0f2d SetWindowDimensions(#006c, #00a0, #0068, #0029)
  1297. 0f33 SetWindowParams(#0000, #0001)
  1298. 0f34 WaitForWindowReady()
  1299. 0f38 SetWindowMessage(#0018)
  1300. 0f3e ActiveEntity.PlayAnimation(#0006, #0000)
  1301. 0f42 ActiveEntity.SetMoveSpeed(#0014)
  1302. 0f46 SetNumWaitFrames(#0028)
  1303. 0f47 Wait()
  1304. 0f48 WaitForWindowReady()
  1305. 0f49 WaitForWindowReady()
  1306. 0f53 SetWindowDimensions(#004c, #00a0, #00a7, #0029)
  1307. 0f59 SetWindowParams(#0000, #0001)
  1308. 0f5a WaitForWindowReady()
  1309. 0f5e SetWindowMessage(#0019)
  1310. 0f64 ActiveEntity.PlayAnimation(#0000, #0001)
  1311. 0f68 ActiveEntity.SetMoveSpeed(#0014)
  1312. 0f6f ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1313. 0f73 IF (GetSpecial(000d)) {
  1314. 0f78 SetNumWaitFrames(#0001)
  1315. 0f79 Wait()
  1316. 0f7a GOTO 0f70
  1317. }
  1318. 0f7c WaitForWindowReady()
  1319. 0f80 ActiveEntity.SetMoveSpeed(#0000)
  1320. 0f84 SetNumWaitFrames(#000a)
  1321. 0f85 Wait()
  1322. 0f8c ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1323. 0f92 ActiveEntity.PlayAnimation(#0007, #0000)
  1324. 0f93 WaitForWindowReady()
  1325. 0f9d SetWindowDimensions(#0038, #00a0, #00cf, #0039)
  1326. 0fa3 SetWindowParams(#0000, #0000)
  1327. 0fa4 WaitForWindowReady()
  1328. 0fa8 SetWindowMessage(#001a)
  1329. 0fa9 WaitForMessageAcknowledge()
  1330. 0faf WRITE Bank0[0384].Bit(2) = #0001
  1331. 0fb0 GOTO 0ff6
  1332. }
  1333. 0fb5 ActiveEntity.SetMoveSpeed(#0028)
  1334. 0fbc ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1335. 0fc0 IF (GetSpecial(000d)) {
  1336. 0fc5 SetNumWaitFrames(#0001)
  1337. 0fc6 Wait()
  1338. 0fc7 GOTO 0fbd
  1339. }
  1340. 0fcc ActiveEntity.SetMoveSpeed(#0000)
  1341. 0fd0 SetNumWaitFrames(#000a)
  1342. 0fd1 Wait()
  1343. 0fd8 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1344. 0fde ActiveEntity.PlayAnimation(#0007, #0000)
  1345. 0fdf WaitForWindowReady()
  1346. 0fe9 SetWindowDimensions(#0033, #00a0, #00d9, #0039)
  1347. 0fef SetWindowParams(#0000, #0000)
  1348. 0ff0 WaitForWindowReady()
  1349. 0ff4 SetWindowMessage(#001b)
  1350. 0ff5 WaitForMessageAcknowledge()
  1351. 0ffb ActiveEntity.PlayAnimation(#0000, #0001)
  1352. 0fff SetControlsEnabled(#0001)
  1353. 1003 SetRandomEncountersEnabled(#0001)
  1354. 1004 RETURN
  1355. Function 1005
  1356.  
  1357. Called by:
  1358. Model($CidModel).Function($UnknownFunc15)
  1359. Addr Code
  1360. 1008 SetControlsEnabled(#0000)
  1361. 100c SetRandomEncountersEnabled(#0000)
  1362. 1010 Op321(#0003)
  1363. 1015 IF ((!Bank0[0384].Bit(2))) {
  1364. 1017 WaitForWindowReady()
  1365. 1021 SetWindowDimensions(#005d, #00a0, #0086, #0029)
  1366. 1027 SetWindowParams(#0000, #0001)
  1367. 1028 WaitForWindowReady()
  1368. 102c SetWindowMessage(#001c)
  1369. 1032 ActiveEntity.PlayAnimation(#0006, #0000)
  1370. 1036 ActiveEntity.SetMoveSpeed(#0014)
  1371. 103a SetNumWaitFrames(#0028)
  1372. 103b Wait()
  1373. 103c WaitForWindowReady()
  1374. 103d WaitForWindowReady()
  1375. 1047 SetWindowDimensions(#0049, #00a0, #00ae, #0029)
  1376. 104d SetWindowParams(#0000, #0001)
  1377. 104e WaitForWindowReady()
  1378. 1052 SetWindowMessage(#001d)
  1379. 1058 ActiveEntity.PlayAnimation(#0000, #0001)
  1380. 105c ActiveEntity.SetMoveSpeed(#0014)
  1381. 1063 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1382. 1067 IF (GetSpecial(000d)) {
  1383. 106c SetNumWaitFrames(#0001)
  1384. 106d Wait()
  1385. 106e GOTO 1064
  1386. }
  1387. 1070 WaitForWindowReady()
  1388. 1074 ActiveEntity.SetMoveSpeed(#0000)
  1389. 1078 SetNumWaitFrames(#000a)
  1390. 1079 Wait()
  1391. 1080 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1392. 1086 ActiveEntity.PlayAnimation(#0007, #0000)
  1393. 1087 WaitForWindowReady()
  1394. 1091 SetWindowDimensions(#0035, #00a0, #00d6, #0029)
  1395. 1097 SetWindowParams(#0000, #0000)
  1396. 1098 WaitForWindowReady()
  1397. 109c SetWindowMessage(#001e)
  1398. 109d WaitForMessageAcknowledge()
  1399. 10a3 WRITE Bank0[0384].Bit(2) = #0001
  1400. 10a4 GOTO 10ea
  1401. }
  1402. 10a9 ActiveEntity.SetMoveSpeed(#0028)
  1403. 10b0 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1404. 10b4 IF (GetSpecial(000d)) {
  1405. 10b9 SetNumWaitFrames(#0001)
  1406. 10ba Wait()
  1407. 10bb GOTO 10b1
  1408. }
  1409. 10c0 ActiveEntity.SetMoveSpeed(#0000)
  1410. 10c4 SetNumWaitFrames(#000a)
  1411. 10c5 Wait()
  1412. 10cc ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1413. 10d2 ActiveEntity.PlayAnimation(#0007, #0000)
  1414. 10d3 WaitForWindowReady()
  1415. 10dd SetWindowDimensions(#0033, #00a0, #00d9, #0029)
  1416. 10e3 SetWindowParams(#0000, #0000)
  1417. 10e4 WaitForWindowReady()
  1418. 10e8 SetWindowMessage(#001f)
  1419. 10e9 WaitForMessageAcknowledge()
  1420. 10ef ActiveEntity.PlayAnimation(#0000, #0001)
  1421. 10f3 SetControlsEnabled(#0001)
  1422. 10f7 SetRandomEncountersEnabled(#0001)
  1423. 10f8 RETURN
  1424. Function 10f9
  1425.  
  1426. Called by:
  1427. Model($UnknownModel4).Function($UnknownFunc15)
  1428. Addr Code
  1429. 10fc SetControlsEnabled(#0000)
  1430. 1100 SetRandomEncountersEnabled(#0000)
  1431. 1104 Op321(#0003)
  1432. 1109 IF ((!Bank0[0384].Bit(2))) {
  1433. 110b WaitForWindowReady()
  1434. 1115 SetWindowDimensions(#0076, #00a0, #0054, #0019)
  1435. 111b SetWindowParams(#0000, #0001)
  1436. 111c WaitForWindowReady()
  1437. 1120 SetWindowMessage(#0020)
  1438. 1127 ActiveEntity.PlayAnimation((-#0001), #0000)
  1439. 112b ActiveEntity.SetMoveSpeed(#0014)
  1440. 112f SetNumWaitFrames(#001e)
  1441. 1130 Wait()
  1442. 1131 WaitForWindowReady()
  1443. 1135 PlaySoundEffect(#0114)
  1444. 113b ActiveEntity.PlayAnimation(#0000, #0001)
  1445. 113f ActiveEntity.SetMoveSpeed(#0014)
  1446. 1146 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1447. 114a IF (GetSpecial(000d)) {
  1448. 114f SetNumWaitFrames(#0001)
  1449. 1150 Wait()
  1450. 1151 GOTO 1147
  1451. }
  1452. 1156 ActiveEntity.SetMoveSpeed(#0000)
  1453. 115a SetNumWaitFrames(#001e)
  1454. 115b Wait()
  1455. 1162 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1456. 1163 WaitForWindowReady()
  1457. 116d SetWindowDimensions(#0058, #00a0, #0090, #0019)
  1458. 1173 SetWindowParams(#0000, #0000)
  1459. 1174 WaitForWindowReady()
  1460. 1178 SetWindowMessage(#0021)
  1461. 1179 WaitForMessageAcknowledge()
  1462. 117f WRITE Bank0[0384].Bit(2) = #0001
  1463. 1180 GOTO 11db
  1464. }
  1465. 1185 PlaySoundEffect(#0114)
  1466. 118b ActiveEntity.PlayAnimation(#0000, #0001)
  1467. 118f ActiveEntity.SetMoveSpeed(#0028)
  1468. 1196 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1469. 119a IF (GetSpecial(000d)) {
  1470. 119f SetNumWaitFrames(#0001)
  1471. 11a0 Wait()
  1472. 11a1 GOTO 1197
  1473. }
  1474. 11a6 ActiveEntity.SetMoveSpeed(#0000)
  1475. 11aa SetNumWaitFrames(#000a)
  1476. 11ab Wait()
  1477. 11b2 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1478. 11b7 IF ((!Bank0[0384].Bit(3))) {
  1479. 11bc SetNumWaitFrames(#001e)
  1480. 11bd Wait()
  1481. 11be WaitForWindowReady()
  1482. 11c8 SetWindowDimensions(#0058, #00a0, #0090, #0019)
  1483. 11ce SetWindowParams(#0000, #0000)
  1484. 11cf WaitForWindowReady()
  1485. 11d3 SetWindowMessage(#0021)
  1486. 11d4 WaitForMessageAcknowledge()
  1487. 11da WRITE Bank0[0384].Bit(3) = #0001
  1488. }
  1489. 11de SetRandomEncountersEnabled(#0001)
  1490. 11e2 SetControlsEnabled(#0001)
  1491. 11e3 RETURN
  1492. Function 11e4
  1493.  
  1494. Called by:
  1495. Model($ChocoboModel).Function($UnknownFunc15)
  1496. Addr Code
  1497. 11e8 IF ((!Bank0[007e].Bit(6))) {
  1498. 11ed SetControlsEnabled(#0000)
  1499. 11f1 SetRandomEncountersEnabled(#0000)
  1500. 11f5 Op321(#0003)
  1501. 11fa IF ((!Bank0[0384].Bit(2))) {
  1502. 11fc WaitForWindowReady()
  1503. 1206 SetWindowDimensions(#0076, #00a0, #0054, #0019)
  1504. 120c SetWindowParams(#0000, #0001)
  1505. 120d WaitForWindowReady()
  1506. 1211 SetWindowMessage(#0020)
  1507. 1218 ActiveEntity.PlayAnimation((-#0001), #0000)
  1508. 121c ActiveEntity.SetMoveSpeed(#0014)
  1509. 1220 SetNumWaitFrames(#001e)
  1510. 1221 Wait()
  1511. 1222 WaitForWindowReady()
  1512. 1226 PlaySoundEffect(#0114)
  1513. 122c ActiveEntity.PlayAnimation(#0000, #0001)
  1514. 1230 ActiveEntity.SetMoveSpeed(#0014)
  1515. 1237 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1516. 123b IF (GetSpecial(000d)) {
  1517. 1240 SetNumWaitFrames(#0001)
  1518. 1241 Wait()
  1519. 1242 GOTO 1238
  1520. }
  1521. 1247 ActiveEntity.SetMoveSpeed(#0000)
  1522. 124b SetNumWaitFrames(#001e)
  1523. 124c Wait()
  1524. 1253 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1525. 1254 WaitForWindowReady()
  1526. 125e SetWindowDimensions(#0058, #00a0, #0090, #0019)
  1527. 1264 SetWindowParams(#0000, #0000)
  1528. 1265 WaitForWindowReady()
  1529. 1269 SetWindowMessage(#0021)
  1530. 126a WaitForMessageAcknowledge()
  1531. 1270 WRITE Bank0[0384].Bit(2) = #0001
  1532. 1271 GOTO 12cc
  1533. }
  1534. 1276 PlaySoundEffect(#0114)
  1535. 127c ActiveEntity.PlayAnimation(#0000, #0001)
  1536. 1280 ActiveEntity.SetMoveSpeed(#0028)
  1537. 1287 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1538. 128b IF (GetSpecial(000d)) {
  1539. 1290 SetNumWaitFrames(#0001)
  1540. 1291 Wait()
  1541. 1292 GOTO 1288
  1542. }
  1543. 1297 ActiveEntity.SetMoveSpeed(#0000)
  1544. 129b SetNumWaitFrames(#000a)
  1545. 129c Wait()
  1546. 12a3 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1547. 12a8 IF ((!Bank0[0384].Bit(3))) {
  1548. 12ad SetNumWaitFrames(#001e)
  1549. 12ae Wait()
  1550. 12af WaitForWindowReady()
  1551. 12b9 SetWindowDimensions(#0058, #00a0, #0090, #0019)
  1552. 12bf SetWindowParams(#0000, #0000)
  1553. 12c0 WaitForWindowReady()
  1554. 12c4 SetWindowMessage(#0021)
  1555. 12c5 WaitForMessageAcknowledge()
  1556. 12cb WRITE Bank0[0384].Bit(3) = #0001
  1557. }
  1558. 12cf SetRandomEncountersEnabled(#0001)
  1559. 12d3 SetControlsEnabled(#0001)
  1560. }
  1561. 12d4 RETURN
  1562. Function 12d5
  1563.  
  1564. Called by:
  1565. System.Function($UnknownFunc16)
  1566. Addr Code
  1567. 12d8 SetControlsEnabled(#0000)
  1568. 12de Op333(#0006, #0000)
  1569. 12e5 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1570. 12e9 ActiveEntity.SetMoveSpeed(#0014)
  1571. 12ed SetNumWaitFrames(#0005)
  1572. 12ee Wait()
  1573. 12f2 ActiveEntity.SetMoveSpeed(#0000)
  1574. 12f9 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1575. 12ff ActiveEntity.PlayAnimation(#0007, #0000)
  1576. 1303 SetNumWaitFrames(#001e)
  1577. 1304 Wait()
  1578. 130a SetWindowParams(#0000, #0000)
  1579. 1311 IF ((GetSpecial(0008) == #0000)) {
  1580. 1313 WaitForWindowReady()
  1581. 131d SetWindowDimensions(#003f, #00a0, #00c1, #0029)
  1582. 131e WaitForWindowReady()
  1583. 1322 SetWindowMessage(#0023)
  1584. 1323 GOTO 133d
  1585. }
  1586. 132b IF ((GetSpecial(0008) == #0001)) {
  1587. 132d WaitForWindowReady()
  1588. 1337 SetWindowDimensions(#0038, #00a0, #00cf, #0029)
  1589. 1338 WaitForWindowReady()
  1590. 133c SetWindowMessage(#0024)
  1591. }
  1592. 133d WaitForMessageAcknowledge()
  1593. 1343 ActiveEntity.PlayAnimation(#0000, #0001)
  1594. 1347 SetControlsEnabled(#0001)
  1595. 1348 RETURN
  1596. Function 1349
  1597.  
  1598. Called by:
  1599. System.Function($UnknownFunc17)
  1600. Addr Code
  1601. 134e Op333(#0006, #0000)
  1602. 1355 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1603. 1359 ActiveEntity.SetMoveSpeed(#0014)
  1604. 135d SetNumWaitFrames(#0014)
  1605. 135e Wait()
  1606. 1362 ActiveEntity.SetMoveSpeed(#0000)
  1607. 1369 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  1608. 136d SetNumWaitFrames(#0014)
  1609. 136e Wait()
  1610. 1374 ActiveEntity.PlayAnimation(#0007, #0000)
  1611. 1378 SetNumWaitFrames(#0028)
  1612. 1379 Wait()
  1613. 137f SetWindowParams(#0000, #0000)
  1614. 1386 IF ((GetSpecial(0008) == #0000)) {
  1615. 1388 WaitForWindowReady()
  1616. 1392 SetWindowDimensions(#003f, #00a0, #00c1, #0029)
  1617. 1393 WaitForWindowReady()
  1618. 1397 SetWindowMessage(#0023)
  1619. 1398 GOTO 13b2
  1620. }
  1621. 13a0 IF ((GetSpecial(0008) == #0001)) {
  1622. 13a2 WaitForWindowReady()
  1623. 13ac SetWindowDimensions(#0038, #00a0, #00cf, #0029)
  1624. 13ad WaitForWindowReady()
  1625. 13b1 SetWindowMessage(#0024)
  1626. }
  1627. 13b2 WaitForMessageAcknowledge()
  1628. 13b8 ActiveEntity.PlayAnimation(#0000, #0001)
  1629. 13bc SetRandomEncountersEnabled(#0001)
  1630. 13c0 SetControlsEnabled(#0001)
  1631. 13c1 RETURN
  1632. Function 13c2
  1633.  
  1634. Called by:
  1635. System.Function($UnknownFunc18)
  1636. Model($UnknownModel6).Function($UnknownFunc18)
  1637. Addr Code
  1638. 13c5 SetControlsEnabled(#0000)
  1639. 13c9 SetRandomEncountersEnabled(#0000)
  1640. 13cf ActiveEntity.PlayAnimation(#0000, #0000)
  1641. 13d3 PlaySoundEffect(#0090)
  1642. 13d7 Op34a(#0014)
  1643. 13db SetNumWaitFrames(#0006)
  1644. 13dc Wait()
  1645. 13e0 Op34a(#0014)
  1646. 13e4 SetNumWaitFrames(#000e)
  1647. 13e5 Wait()
  1648. 13e9 Op34a(#0014)
  1649. 13ed SetNumWaitFrames(#0006)
  1650. 13ee Wait()
  1651. 13f2 SetNumWaitFrames(#0014)
  1652. 13f3 Wait()
  1653. 13f4 WaitForWindowReady()
  1654. 13fe SetWindowDimensions(#0080, #00a0, #0040, #0019)
  1655. 1404 SetWindowParams(#0000, #0000)
  1656. 1405 WaitForWindowReady()
  1657. 1409 SetWindowMessage(#0022)
  1658. 140a WaitForMessageAcknowledge()
  1659. 140e PlaySoundEffect(#0090)
  1660. 1412 SetNumWaitFrames(#0002)
  1661. 1413 Wait()
  1662. 1417 ActiveEntity.SetMoveSpeed(#0064)
  1663. 141b SetNumWaitFrames(#0002)
  1664. 141c Wait()
  1665. 1420 ActiveEntity.SetMoveSpeed(#0000)
  1666. 1424 Op34a(#0014)
  1667. 1428 SetNumWaitFrames(#0006)
  1668. 1429 Wait()
  1669. 142d Op34a(#0014)
  1670. 1431 SetNumWaitFrames(#000e)
  1671. 1432 Wait()
  1672. 1436 Op34a(#0014)
  1673. 143a SetNumWaitFrames(#0006)
  1674. 143b Wait()
  1675. 143f PlaySoundEffect(#0090)
  1676. 1443 SetNumWaitFrames(#0002)
  1677. 1444 Wait()
  1678. 1448 ActiveEntity.SetMoveSpeed(#0064)
  1679. 144c SetNumWaitFrames(#0002)
  1680. 144d Wait()
  1681. 1451 ActiveEntity.SetMoveSpeed(#0000)
  1682. 1455 Op34a(#0015)
  1683. 1459 SetNumWaitFrames(#0004)
  1684. 145a Wait()
  1685. 145e Op34a(#0015)
  1686. 1462 SetNumWaitFrames(#0004)
  1687. 1463 Wait()
  1688. 1467 Op34a(#0015)
  1689. 146b SetNumWaitFrames(#0004)
  1690. 146c Wait()
  1691. 1470 Op34a(#0016)
  1692. 1474 SetNumWaitFrames(#003c)
  1693. 1475 Wait()
  1694. 1479 Op34a(#0017)
  1695. 147f ActiveEntity.PlayAnimation(#0005, #0000)
  1696. 1483 PlaySoundEffect(#00fa)
  1697. 1487 SetNumWaitFrames(#000a)
  1698. 1488 Wait()
  1699. 148e ActiveEntity.PlayAnimation(#0005, #0000)
  1700. 1492 SetNumWaitFrames(#003c)
  1701. 1493 Wait()
  1702. 1494 Op331()
  1703. 1498 SetControlsEnabled(#0000)
  1704. 149c SetNumWaitFrames(#0014)
  1705. 149d Wait()
  1706. 14a3 WRITE Bank0[01cf].Bit(1) = #0001
  1707. 14a9 ActiveEntity.PlayAnimation(#0000, #0001)
  1708. 14ad SetActiveEntity(GetSpecial(0008))
  1709. 14b1 CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  1710. 14b2 RETURN
  1711. Function 14b3
  1712.  
  1713. Called by:
  1714. System.Function($UnknownFunc19)
  1715. Addr Code
  1716. 14b6 IF (Bank0[01cf].Bit(0)) {
  1717. 14bc IF ((!Bank0[01cf].Bit(6))) {
  1718. 14c1 IF (Bank0[01cf].Bit(5)) {
  1719. 14c6 SetRandomEncountersEnabled(#0000)
  1720. 14ca SetControlsEnabled(#0000)
  1721. 14ce SetNumWaitFrames(#0014)
  1722. 14cf Wait()
  1723. 14d3 SetActiveEntity(GetSpecial(0008))
  1724. 14d7 CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  1725. 14d8 GOTO 1502
  1726. }
  1727. 14dd SetControlsEnabled(#0000)
  1728. 14e3 Op333(GetSpecial(0008), #00c0)
  1729. 14e9 WRITE Bank1[0002] = GetSpecial(000f)
  1730. 14ed SetActiveEntity(GetSpecial(0008))
  1731. 14f1 CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  1732. 14f2 Op334()
  1733. 14f3 EnterVehicle()
  1734. 14fa IF ((GetSpecial(0008) == #0013)) {
  1735. 1501 WRITE Bank0[007e].Bit(1) = #0001
  1736. }
  1737. 1502 GOTO 152c
  1738. }
  1739. 1507 SetControlsEnabled(#0000)
  1740. 150d Op333(GetSpecial(0008), #00c0)
  1741. 1513 WRITE Bank1[0002] = GetSpecial(000f)
  1742. 1517 SetActiveEntity(GetSpecial(0008))
  1743. 151b CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  1744. 151c Op334()
  1745. 151d EnterVehicle()
  1746. 1524 IF ((GetSpecial(0008) == #0013)) {
  1747. 152b WRITE Bank0[007e].Bit(1) = #0001
  1748. }
  1749. 152c GOTO 1556
  1750. }
  1751. 1531 SetControlsEnabled(#0000)
  1752. 1537 Op333(GetSpecial(0008), #00c0)
  1753. 153d WRITE Bank1[0002] = GetSpecial(000f)
  1754. 1541 SetActiveEntity(GetSpecial(0008))
  1755. 1545 CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  1756. 1546 Op334()
  1757. 1547 EnterVehicle()
  1758. 154e IF ((GetSpecial(0008) == #0013)) {
  1759. 1555 WRITE Bank0[007e].Bit(1) = #0001
  1760. }
  1761. 1556 RETURN
  1762. Function 1557
  1763.  
  1764. Called by:
  1765. System.Function($UnknownFunc20)
  1766. Model($UltimateWeaponModel).Function($UnknownFunc20)
  1767. Addr Code
  1768. 155a PlaySoundEffect(#000b)
  1769. 155e SetControlsEnabled(#0000)
  1770. 1562 ActiveEntity.SetMoveSpeedHonoringWalkmesh(Speed=#0023)
  1771. 1566 ActiveEntity.SetDirectionAndFacing(GetSpecial(0004))
  1772. 156d SetActiveEntityDirection((GetSpecial(0004) + #0080))
  1773. 1573 FadeOut(#00fa, #0000)
  1774. 1577 SetNumWaitFrames(#0003)
  1775. 1578 Wait()
  1776. 157e FadeIn(#00fa, #0000)
  1777. 1582 SetNumWaitFrames(#0007)
  1778. 1583 Wait()
  1779. 1587 ActiveEntity.SetMoveSpeed(#0000)
  1780. 1588 WaitForWindowReady()
  1781. 1592 SetWindowDimensions(#0047, #00a0, #00b1, #0039)
  1782. 1598 SetWindowParams(#0000, #0000)
  1783. 1599 WaitForWindowReady()
  1784. 159d SetWindowMessage(#0036)
  1785. 159e WaitForMessageAcknowledge()
  1786. 15a2 SetControlsEnabled(#0001)
  1787. 15a3 RETURN
  1788. Function 15a4
  1789.  
  1790. Called by:
  1791. System.Function($UnknownFunc21)
  1792. Model($UltimateWeaponModel).Function($UnknownFunc21)
  1793. Addr Code
  1794. 15a7 SetControlsEnabled(#0000)
  1795. 15ab ActiveEntity.SetMoveSpeedHonoringWalkmesh(Speed=#0028)
  1796. 15af ActiveEntity.SetDirectionAndFacing(GetSpecial(0004))
  1797. 15b6 SetActiveEntityDirection((GetSpecial(0004) + #0080))
  1798. 15ba SetNumWaitFrames(#001e)
  1799. 15bb Wait()
  1800. 15bf ActiveEntity.SetMoveSpeed(#0000)
  1801. 15c0 WaitForWindowReady()
  1802. 15ca SetWindowDimensions(#003a, #00a0, #00e0, #0039)
  1803. 15d0 SetWindowParams(#0000, #0000)
  1804. 15d1 WaitForWindowReady()
  1805. 15d5 SetWindowMessage(#0025)
  1806. 15d9 SetControlsEnabled(#0001)
  1807. 15da RETURN
  1808. Function 15db
  1809.  
  1810. Called by:
  1811. System.Function($UnknownFunc22)
  1812. Model($UltimateWeaponModel).Function($UnknownFunc22)
  1813. Addr Code
  1814. 15de PlaySoundEffect(#000b)
  1815. 15e2 SetControlsEnabled(#0000)
  1816. 15e6 ActiveEntity.SetMoveSpeedHonoringWalkmesh(Speed=#0023)
  1817. 15ea ActiveEntity.SetDirectionAndFacing(GetSpecial(0004))
  1818. 15f1 SetActiveEntityDirection((GetSpecial(0004) + #0080))
  1819. 15f7 FadeOut(#00fa, #0000)
  1820. 15fb SetNumWaitFrames(#0003)
  1821. 15fc Wait()
  1822. 1602 FadeIn(#00fa, #0000)
  1823. 1606 SetNumWaitFrames(#0007)
  1824. 1607 Wait()
  1825. 160b ActiveEntity.SetMoveSpeed(#0000)
  1826. 160c WaitForWindowReady()
  1827. 1616 SetWindowDimensions(#0030, #00a0, #00d2, #0039)
  1828. 161c SetWindowParams(#0000, #0000)
  1829. 161d WaitForWindowReady()
  1830. 1621 SetWindowMessage(#003c)
  1831. 1625 SetControlsEnabled(#0001)
  1832. 1626 RETURN
  1833. Function 1627
  1834.  
  1835. Called by:
  1836. System.Function($UnknownFunc23)
  1837. Model($UltimateWeaponModel).Function($UnknownFunc23)
  1838. Addr Code
  1839. 162a PlaySoundEffect(#000b)
  1840. 162e SetControlsEnabled(#0000)
  1841. 1632 ActiveEntity.SetMoveSpeedHonoringWalkmesh(Speed=#0014)
  1842. 1636 ActiveEntity.SetDirectionAndFacing(GetSpecial(0004))
  1843. 163d SetActiveEntityDirection((GetSpecial(0004) + #0080))
  1844. 1643 FadeOut(#00fa, #0000)
  1845. 1647 SetNumWaitFrames(#0003)
  1846. 1648 Wait()
  1847. 164e FadeIn(#00fa, #0000)
  1848. 1652 SetNumWaitFrames(#0003)
  1849. 1653 Wait()
  1850. 1657 ActiveEntity.SetMoveSpeed(#0000)
  1851. 1658 RETURN
  1852. Function 1659
  1853.  
  1854. Called by:
  1855. Model($ChocoboModel).Function($UnknownFunc23)
  1856. Addr Code
  1857. 165c PlaySoundEffect(#000b)
  1858. 1660 SetControlsEnabled(#0000)
  1859. 1664 ActiveEntity.SetMoveSpeedHonoringWalkmesh(Speed=#0014)
  1860. 1668 ActiveEntity.SetDirectionAndFacing(GetSpecial(0004))
  1861. 166f SetActiveEntityDirection((GetSpecial(0004) + #0080))
  1862. 1675 FadeOut(#00fa, #0000)
  1863. 1679 SetNumWaitFrames(#0003)
  1864. 167a Wait()
  1865. 1680 FadeIn(#00fa, #0000)
  1866. 1684 SetNumWaitFrames(#0002)
  1867. 1685 Wait()
  1868. 1689 ActiveEntity.SetMoveSpeed(#0000)
  1869. 168a RETURN
  1870. Function 168b
  1871.  
  1872. Called by:
  1873. System.Function($UnknownFunc24)
  1874. Model($UltimateWeaponModel).Function($UnknownFunc24)
  1875. Addr Code
  1876. 168e PlaySoundEffect(#000b)
  1877. 1692 SetControlsEnabled(#0000)
  1878. 1696 ActiveEntity.SetMoveSpeedHonoringWalkmesh(Speed=#0014)
  1879. 169a ActiveEntity.SetDirectionAndFacing(GetSpecial(0004))
  1880. 16a1 SetActiveEntityDirection((GetSpecial(0004) + #0080))
  1881. 16a5 SetNumWaitFrames(#0007)
  1882. 16a6 Wait()
  1883. 16aa ActiveEntity.SetMoveSpeed(#0000)
  1884. 16ab RETURN
  1885. Function 16ac
  1886.  
  1887. Called by:
  1888. Model($ChocoboModel).Function($UnknownFunc24)
  1889. Addr Code
  1890. 16af PlaySoundEffect(#000b)
  1891. 16b3 SetControlsEnabled(#0000)
  1892. 16b7 ActiveEntity.SetMoveSpeedHonoringWalkmesh(Speed=#0014)
  1893. 16bb ActiveEntity.SetDirectionAndFacing(GetSpecial(0004))
  1894. 16c2 SetActiveEntityDirection((GetSpecial(0004) + #0080))
  1895. 16c6 SetNumWaitFrames(#0005)
  1896. 16c7 Wait()
  1897. 16cb ActiveEntity.SetMoveSpeed(#0000)
  1898. 16cc RETURN
  1899. Function 16cd
  1900.  
  1901. Called by:
  1902. System.Function($UnknownFunc25)
  1903. Model($HighwindModel).Function($UnknownFunc25)
  1904. Addr Code
  1905. 16d0 ActiveEntity.SetMoveSpeed(#0000)
  1906. 16d5 IF ((!Bank0[0387].Bit(2))) {
  1907. 16dc ActiveEntity.PlayAnimation(#0002, #0000)
  1908. 16e0 SetNumWaitFrames(#001c)
  1909. 16e1 Wait()
  1910. 16e7 WRITE Bank0[0387].Bit(2) = #0001
  1911. }
  1912. 16ed ActiveEntity.PlayAnimation(#0003, #0000)
  1913. 16f2 IF ((!Bank0[0387].Bit(3))) {
  1914. 16f7 Op34a(#0004)
  1915. 16fb SetNumWaitFrames(#0014)
  1916. 16fc Wait()
  1917. 1700 Op34a(#0005)
  1918. 1706 WRITE Bank0[0387].Bit(3) = #0001
  1919. }
  1920. 170c WRITE Bank0[038f] = #0000
  1921. 1712 WRITE Bank0[0386].Bit(6) = #0001
  1922. 1718 WRITE Bank0[0386].Bit(5) = #0001
  1923. 171e WRITE Bank0[0387].Bit(1) = #0000
  1924. 171f RETURN
  1925. Function 1720
  1926.  
  1927. Called by:
  1928. System.Function($UnknownFunc26)
  1929. Model($HighwindModel).Function($UnknownFunc26)
  1930. Addr Code
  1931. 1723 ActiveEntity.SetMoveSpeed(#0000)
  1932. 1729 ActiveEntity.PlayAnimation(#0005, #0000)
  1933. 172d PlaySoundEffect(#01b1)
  1934. 1733 FadeOut(#00fa, #0000)
  1935. 1737 SetNumWaitFrames(#0003)
  1936. 1738 Wait()
  1937. 173e FadeIn(#00fa, #0000)
  1938. 1742 SetNumWaitFrames(#0001)
  1939. 1743 Wait()
  1940. 1747 CALL Model($UltimateWeaponModel).Function($UnknownFunc28)
  1941. 174b SetNumWaitFrames(#0028)
  1942. 174c Wait()
  1943. 1752 ActiveEntity.PlayAnimation(#0006, #0000)
  1944. 1756 SetNumWaitFrames(#0009)
  1945. 1757 Wait()
  1946. 175d ActiveEntity.PlayAnimation(#0000, #0001)
  1947. 1764 IF ((Bank0[038f] < #0005)) {
  1948. 176e WRITE Bank0[038f] = (Bank0[038f] + #0001)
  1949. }
  1950. 176f RETURN
  1951. Function 1770
  1952.  
  1953. Called by:
  1954. System.Function($UnknownFunc27)
  1955. Model($HighwindModel).Function($UnknownFunc27)
  1956. Addr Code
  1957. 1775 ActiveEntity.PlayAnimation(#0004, #0000)
  1958. 1779 PlaySoundEffect(#010a)
  1959. 177d SetNumWaitFrames(#0050)
  1960. 177e Wait()
  1961. 1782 Op30a(#000a)
  1962. 1786 SetNumWaitFrames(#0064)
  1963. 1787 Wait()
  1964. 178d FadeOut(#0008, #0000)
  1965. 1791 PlaySoundEffect(#0000)
  1966. 1795 SetNumWaitFrames(#0064)
  1967. 1796 Wait()
  1968. 179c FadeIn(#0008, #0000)
  1969. 17a0 SetFieldEntryPointFromFieldTblId(#002d)
  1970. 17a6 WRITE Bank0[0386].Bit(4) = #0001
  1971. 17a7 RETURN
  1972. Function 17a8
  1973.  
  1974. Called by:
  1975. Model($HighwindModel).Function($OnFrameTick)
  1976. Addr Code
  1977. 17ae IF ((GetSpecial(0008) == #0003)) {
  1978. 17b4 IF ((!Bank0[0386].Bit(3))) {
  1979. 17bd IF ((ActiveEntity.GetDistanceToModel(GetSpecial(0008)) <= #00c8)) {
  1980. 17c4 WRITE Bank0[0386].Bit(3) = #0001
  1981. 17c8 SetControlsEnabled(#0000)
  1982. 17ce ActiveEntity.PlayAnimation(#0005, #0000)
  1983. 17d2 PlaySoundEffect(#01b1)
  1984. 17d6 SetNumWaitFrames(#0023)
  1985. 17d7 Wait()
  1986. 17db TriggerBattle(SceneId=#0119)
  1987. }
  1988. 17dc GOTO 1937
  1989. }
  1990. 17e1 IF (Bank0[007b].Bit(2)) {
  1991. 17ea IF ((ActiveEntity.GetDistanceToModel(GetSpecial(0008)) <= #0078)) {
  1992. 17f1 WRITE Bank0[0386].Bit(7) = #0000
  1993. 17f7 WRITE Bank0[0386].Bit(6) = #0000
  1994. 17fd WRITE Bank0[0394] = #0000
  1995. 1801 SetControlsEnabled(#0000)
  1996. 1807 ActiveEntity.PlayAnimation(#0005, #0000)
  1997. 180b PlaySoundEffect(#01b1)
  1998. 180f SetNumWaitFrames(#0023)
  1999. 1810 Wait()
  2000. 1814 TriggerBattle(SceneId=#011f)
  2001. }
  2002. 1815 GOTO 1937
  2003. }
  2004. 181e IF ((ActiveEntity.GetDistanceToModel(GetSpecial(0008)) <= #0050)) {
  2005. 1823 IF (Bank0[0386].Bit(5)) {
  2006. 1831 IF (((Bank0[0394] == #000d) || (Bank0[0394] == #000f))) {
  2007. 1838 WRITE Bank0[0386].Bit(5) = #0000
  2008. 183e WRITE Bank0[0387].Bit(2) = #0000
  2009. 1844 WRITE Bank0[0386].Bit(7) = #0000
  2010. 184a WRITE Bank0[0386].Bit(6) = #0000
  2011. 1850 WRITE Bank0[0394] = #0000
  2012. 1854 TriggerBattle(SceneId=#011a)
  2013. 1855 GOTO 1931
  2014. }
  2015. 185d IF ((Bank0[0394] == #0009)) {
  2016. 1864 WRITE Bank0[0386].Bit(5) = #0000
  2017. 186a WRITE Bank0[0387].Bit(2) = #0000
  2018. 1870 WRITE Bank0[0386].Bit(7) = #0000
  2019. 1876 WRITE Bank0[0386].Bit(6) = #0000
  2020. 187c WRITE Bank0[0394] = #0000
  2021. 1880 TriggerBattle(SceneId=#0126)
  2022. 1881 GOTO 1931
  2023. }
  2024. 1889 IF ((Bank0[0394] == #000a)) {
  2025. 1890 WRITE Bank0[0386].Bit(5) = #0000
  2026. 1896 WRITE Bank0[0387].Bit(2) = #0000
  2027. 189c WRITE Bank0[0386].Bit(7) = #0000
  2028. 18a2 WRITE Bank0[0386].Bit(6) = #0000
  2029. 18a8 WRITE Bank0[0394] = #0000
  2030. 18ac TriggerBattle(SceneId=#011b)
  2031. 18ad GOTO 1931
  2032. }
  2033. 18b5 IF ((Bank0[0394] == #000b)) {
  2034. 18bc WRITE Bank0[0386].Bit(5) = #0000
  2035. 18c2 WRITE Bank0[0387].Bit(2) = #0000
  2036. 18c8 WRITE Bank0[0386].Bit(7) = #0000
  2037. 18ce WRITE Bank0[0386].Bit(6) = #0000
  2038. 18d4 WRITE Bank0[0394] = #0000
  2039. 18d8 TriggerBattle(SceneId=#011c)
  2040. 18d9 GOTO 1931
  2041. }
  2042. 18e1 IF ((Bank0[0394] == #000c)) {
  2043. 18e8 WRITE Bank0[0386].Bit(5) = #0000
  2044. 18ee WRITE Bank0[0387].Bit(2) = #0000
  2045. 18f4 WRITE Bank0[0386].Bit(7) = #0000
  2046. 18fa WRITE Bank0[0386].Bit(6) = #0000
  2047. 1900 WRITE Bank0[0394] = #0000
  2048. 1904 TriggerBattle(SceneId=#011d)
  2049. 1905 GOTO 1931
  2050. }
  2051. 190d IF ((Bank0[0394] == #000e)) {
  2052. 1914 WRITE Bank0[0386].Bit(5) = #0000
  2053. 191a WRITE Bank0[0387].Bit(2) = #0000
  2054. 1920 WRITE Bank0[0386].Bit(7) = #0000
  2055. 1926 WRITE Bank0[0386].Bit(6) = #0000
  2056. 192c WRITE Bank0[0394] = #0000
  2057. 1930 TriggerBattle(SceneId=#011e)
  2058. }
  2059. 1931 GOTO 1937
  2060. }
  2061. 1936 CALL Model($HighwindModel).Function($UnknownFunc28)
  2062. }
  2063. }
  2064. 193a IF (Bank0[0386].Bit(3)) {
  2065. 1940 IF ((!Bank0[007b].Bit(2))) {
  2066. 1946 IF ((!Bank0[0386].Bit(6))) {
  2067. 194e IF ((Bank0[038f] == #0005)) {
  2068. 1954 IF ((!Bank0[0387].Bit(1))) {
  2069. 195b WRITE Bank0[0387].Bit(1) = #0001
  2070. 1967 WRITE Bank0[0394] = ((GetSpecial(0010) * #0007) >> #0008)
  2071. 1970 WRITE Bank0[0394] = (Bank0[0394] + #0009)
  2072. 1977 IF ((Bank0[0394] == #0000)) {
  2073. 197e WRITE Bank0[0394] = #000f
  2074. }
  2075. }
  2076. 1982 Op321(Bank0[0394])
  2077. 1986 ActiveEntity.SetMoveSpeed(#00c8)
  2078. 198e IF ((ActiveEntity.GetDistanceToPoint(Bank0[0394]) <= #0096)) {
  2079. 1993 CALL Model($HighwindModel).Function($UnknownFunc28)
  2080. }
  2081. 1994 GOTO 19e9
  2082. }
  2083. 199c IF ((Bank0_16bit[0392] == #00ff)) {
  2084. 19a1 ActiveEntity.SetMoveSpeed(#00c8)
  2085. 19a5 Op321(#0004)
  2086. 19ad IF ((ActiveEntity.GetDistanceToPoint(#0004) <= #00ff)) {
  2087. 19b4 WRITE Bank0_16bit[0392] = #0000
  2088. }
  2089. 19b5 GOTO 19e9
  2090. }
  2091. 19bd IF ((Bank0[038e] < #0032)) {
  2092. 19c2 ActiveEntity.SetMoveSpeed(#00c8)
  2093. 19c3 GOTO 19e0
  2094. }
  2095. 19cb IF ((Bank0[038e] == #0046)) {
  2096. 19d0 ActiveEntity.SetDirectionAndFacing(GetSpecial(0010))
  2097. 19d6 WRITE Bank0[038e] = #0000
  2098. 19df WRITE Bank0_16bit[0392] = (Bank0_16bit[0392] + #0001)
  2099. }
  2100. 19e8 WRITE Bank0[038e] = (Bank0[038e] + #0001)
  2101. 19e9 GOTO 19ef
  2102. }
  2103. 19ee CALL Model($HighwindModel).Function($UnknownFunc28)
  2104. 19ef GOTO 19f7
  2105. }
  2106. 19f6 ActiveEntity.PlayAnimation(#0004, #0000)
  2107. 19f7 GOTO 19ff
  2108. }
  2109. 19fe ActiveEntity.PlayAnimation(#0004, #0000)
  2110. 1a02 SetNumWaitFrames(#0001)
  2111. 1a03 Wait()
  2112. 1a04 RETURN
  2113. Function 1a05
  2114.  
  2115. Called by:
  2116. Model($HighwindModel).Function($OnModelLoad)
  2117. Addr Code
  2118. 1a0a WRITE Bank0[0387].Bit(3) = #0000
  2119. 1a11 IF ((GetSpecial(0005) == #0001)) {
  2120. 1a16 IF (Bank0[007b].Bit(0)) {
  2121. 1a1c IF ((!Bank0[0386].Bit(4))) {
  2122. 1a21 IF (Bank0[0387].Bit(0)) {
  2123. 1a28 ActiveEntity.SetMeshCoordsXZ(#000b, #0015)
  2124. 1a2e ActiveEntity.SetCoordsInMeshXZ(#159d, #00a0)
  2125. 1a32 ActiveEntity.SetDirectionAndFacing(#0000)
  2126. 1a36 SetActiveEntityYPos(#0e10)
  2127. }
  2128. }
  2129. }
  2130. }
  2131. 1a3b IF ((!Bank0[007b].Bit(0))) {
  2132. 1a40 IF (Bank0[0386].Bit(6)) {
  2133. 1a48 IF ((Bank0[0394] == #0009)) {
  2134. 1a4f ActiveEntity.SetMeshCoordsXZ(#0016, #000e)
  2135. 1a55 ActiveEntity.SetCoordsInMeshXZ(#1505, #14e1)
  2136. 1a59 SetActiveEntityYPos(#0fa0)
  2137. 1a5a GOTO 1af6
  2138. }
  2139. 1a62 IF ((Bank0[0394] == #000a)) {
  2140. 1a69 ActiveEntity.SetMeshCoordsXZ(#0018, #0014)
  2141. 1a6f ActiveEntity.SetCoordsInMeshXZ(#1a36, #15dc)
  2142. 1a73 SetActiveEntityYPos(#0fa0)
  2143. 1a74 GOTO 1af6
  2144. }
  2145. 1a7c IF ((Bank0[0394] == #000b)) {
  2146. 1a83 ActiveEntity.SetMeshCoordsXZ(#000d, #000e)
  2147. 1a89 ActiveEntity.SetCoordsInMeshXZ(#0cb9, #1763)
  2148. 1a8d SetActiveEntityYPos(#0fa0)
  2149. 1a8e GOTO 1af6
  2150. }
  2151. 1a96 IF ((Bank0[0394] == #000c)) {
  2152. 1a9d ActiveEntity.SetMeshCoordsXZ(#000d, #0016)
  2153. 1aa3 ActiveEntity.SetCoordsInMeshXZ(#18d9, #086d)
  2154. 1aa7 SetActiveEntityYPos(#0fa0)
  2155. 1aa8 GOTO 1af6
  2156. }
  2157. 1ab0 IF ((Bank0[0394] == #000d)) {
  2158. 1ab7 ActiveEntity.SetMeshCoordsXZ(#000b, #000f)
  2159. 1abd ActiveEntity.SetCoordsInMeshXZ(#0b45, #1896)
  2160. 1ac1 SetActiveEntityYPos(#0fa0)
  2161. 1ac2 GOTO 1af6
  2162. }
  2163. 1aca IF ((Bank0[0394] == #000e)) {
  2164. 1ad1 ActiveEntity.SetMeshCoordsXZ(#0010, #0004)
  2165. 1ad7 ActiveEntity.SetCoordsInMeshXZ(#0001, #0f9f)
  2166. 1adb SetActiveEntityYPos(#0fa0)
  2167. 1adc GOTO 1af6
  2168. }
  2169. 1ae4 IF ((Bank0[0394] == #000f)) {
  2170. 1aeb ActiveEntity.SetMeshCoordsXZ(#001a, #0018)
  2171. 1af1 ActiveEntity.SetCoordsInMeshXZ(#1b7e, #13ab)
  2172. 1af5 SetActiveEntityYPos(#0fa0)
  2173. }
  2174. 1af6 GOTO 1b53
  2175. }
  2176. 1afb IF (Bank0[007b].Bit(2)) {
  2177. 1b02 ActiveEntity.SetMeshCoordsXZ(#000b, #0015)
  2178. 1b08 ActiveEntity.SetCoordsInMeshXZ(#159d, #00a0)
  2179. 1b0c SetActiveEntityYPos(#0bb8)
  2180. 1b12 WRITE Bank0[0387].Bit(0) = #0001
  2181. 1b13 GOTO 1b53
  2182. }
  2183. 1b19 IF ((!Bank0[0386].Bit(3))) {
  2184. 1b20 ActiveEntity.SetMeshCoordsXZ(#0016, #0012)
  2185. 1b26 ActiveEntity.SetCoordsInMeshXZ(#19dc, #04ac)
  2186. 1b2a ActiveEntity.SetYOffset(#03e8)
  2187. 1b2b GOTO 1b53
  2188. }
  2189. 1b31 IF ((!Bank0[0386].Bit(7))) {
  2190. 1b38 ActiveEntity.SetMeshCoordsXZ(#0016, #0012)
  2191. 1b3e ActiveEntity.SetCoordsInMeshXZ(#19dc, #04ac)
  2192. 1b42 SetActiveEntityYPos(#0fa0)
  2193. 1b46 ActiveEntity.SetDirectionAndFacing(GetSpecial(0010))
  2194. 1b4c WRITE Bank0[0386].Bit(7) = #0001
  2195. 1b4d GOTO 1b53
  2196. }
  2197. 1b52 SetActiveEntityYPos(#0fa0)
  2198. }
  2199. 1b53 RETURN
  2200. Function 1b54
  2201.  
  2202. Called by:
  2203. System.Function($UnknownFunc28)
  2204. Model($UnknownModel10).Function($UnknownFunc28)
  2205. Addr Code
  2206. 1b59 WRITE Bank0[0384].Bit(5) = #0001
  2207. 1b5d SetNumWaitFrames(#001e)
  2208. 1b5e Wait()
  2209. 1b63 Op30a((-#000a))
  2210. 1b6b Op3fd(#0000, #0001, #000f)
  2211. 1b6f SetNumWaitFrames(#001e)
  2212. 1b70 Wait()
  2213. 1b78 Op3fd(#0001, #0002, #0005)
  2214. 1b7c PlaySoundEffect(#0132)
  2215. 1b80 SetNumWaitFrames(#0082)
  2216. 1b81 Wait()
  2217. 1b85 Op30a(#0000)
  2218. 1b89 Op3fe(#0001)
  2219. 1b8d SetNumWaitFrames(#001e)
  2220. 1b8e Wait()
  2221. 1b94 ActiveEntity.PlayAnimation(#0004, #0000)
  2222. 1b98 SetNumWaitFrames(#001e)
  2223. 1b99 Wait()
  2224. 1b9d PlaySoundEffect(#01b0)
  2225. 1ba1 SetNumWaitFrames(#0078)
  2226. 1ba2 Wait()
  2227. 1ba8 ActiveEntity.PlayAnimation(#0001, #0001)
  2228. 1bac ActiveEntity.SetMoveSpeed(#0004)
  2229. 1bb0 Op3fe(#0000)
  2230. 1bb8 Op3fd(#0000, #0003, #000a)
  2231. 1bbc SetNumWaitFrames(#0064)
  2232. 1bbd Wait()
  2233. 1bc1 SetNumWaitFrames(#0064)
  2234. 1bc2 Wait()
  2235. 1bc6 SetNumWaitFrames(#0064)
  2236. 1bc7 Wait()
  2237. 1bcd FadeOut(#0010, #0001)
  2238. 1bd1 SetNumWaitFrames(#0032)
  2239. 1bd2 Wait()
  2240. 1bd8 EnterFieldScene(#0033, #0000)
  2241. 1bdc Op319(Bank0[038d])
  2242. 1be0 SetControlsEnabled(#0001)
  2243. 1be4 SetRandomEncountersEnabled(#0001)
  2244. 1be5 RETURN
  2245. Function 1be6
  2246.  
  2247. Called by:
  2248. Model($UnknownModel10).Function($OnFrameTick)
  2249. Addr Code
  2250. 1bec IF ((GetSpecial(0008) == #0003)) {
  2251. 1bf1 IF (Bank0[0384].Bit(6)) {
  2252. 1bfa IF ((ActiveEntity.GetDistanceToModel(GetSpecial(0008)) <= #0078)) {
  2253. 1bff CALL Model($UltimateWeaponModel).Function($UnknownFunc28)
  2254. }
  2255. }
  2256. }
  2257. 1c03 IF (Bank0[0352].Bit(3)) {
  2258. 1c08 IF (Bank0[0384].Bit(5)) {
  2259. 1c10 IF ((Bank0_16bit[0390] < #0af0)) {
  2260. 1c16 ActiveEntity.SetYOffset((-#0190))
  2261. 1c1a ActiveEntity.SetMoveSpeed(#0008)
  2262. 1c1e ActiveEntity.SetDirectionAndFacing(#0020)
  2263. 1c1f GOTO 1cc6
  2264. }
  2265. 1c27 IF ((Bank0_16bit[0390] < #0b45)) {
  2266. 1c2d ActiveEntity.SetYOffset((-#0190))
  2267. 1c31 ActiveEntity.SetMoveSpeed(#0001)
  2268. 1c3b ActiveEntity.SetDirectionAndFacing(((#0b70 - Bank0_16bit[0390]) >> #0002))
  2269. 1c3c GOTO 1cc6
  2270. }
  2271. 1c44 IF ((Bank0_16bit[0390] < #0e66)) {
  2272. 1c4f ActiveEntity.SetYOffset(((Bank0_16bit[0390] - #0e65) >> #0001))
  2273. 1c53 ActiveEntity.SetMoveSpeed(#0008)
  2274. 1c57 ActiveEntity.SetDirectionAndFacing(#000b)
  2275. 1c58 GOTO 1cc6
  2276. }
  2277. 1c60 IF ((Bank0_16bit[0390] < #0fc4)) {
  2278. 1c65 ActiveEntity.SetYOffset(#0000)
  2279. 1c69 ActiveEntity.SetMoveSpeed(#0008)
  2280. 1c70 IF ((Bank0_16bit[0390] >= #0e66)) {
  2281. 1c75 Op3fe(#0000)
  2282. }
  2283. 1c79 ActiveEntity.SetDirectionAndFacing(#000b)
  2284. 1c7a GOTO 1cc6
  2285. }
  2286. 1c82 IF ((Bank0_16bit[0390] == #0fc4)) {
  2287. 1c88 IF ((!Bank0[0385].Bit(0))) {
  2288. 1c8d ActiveEntity.SetYOffset(#0000)
  2289. 1c93 ActiveEntity.PlayAnimation(#0004, #0000)
  2290. 1c97 SetNumWaitFrames(#0014)
  2291. 1c98 Wait()
  2292. 1c9c PlaySoundEffect(#01b0)
  2293. 1ca0 ActiveEntity.SetMoveSpeed(#0000)
  2294. 1ca6 WRITE Bank0[0385].Bit(0) = #0001
  2295. 1caa SetNumWaitFrames(#0078)
  2296. 1cab Wait()
  2297. 1cac GOTO 1cb6
  2298. }
  2299. 1cb1 ActiveEntity.SetYOffset(#0000)
  2300. 1cb5 ActiveEntity.SetMoveSpeed(#0000)
  2301. 1cb6 GOTO 1cc6
  2302. }
  2303. 1cbe IF ((Bank0_16bit[0390] >= #0fc5)) {
  2304. 1cc5 WRITE Bank0_16bit[0390] = #0fc5
  2305. }
  2306. }
  2307. }
  2308. 1cce WRITE Bank0_16bit[0390] = (Bank0_16bit[0390] + #0001)
  2309. 1cd2 SetNumWaitFrames(#0001)
  2310. 1cd3 Wait()
  2311. 1cd4 RETURN
  2312. Function 1cd5
  2313.  
  2314. Called by:
  2315. Model($UnknownModel10).Function($OnModelLoad)
  2316. Addr Code
  2317. 1cd8 IF (Bank0[0352].Bit(3)) {
  2318. 1cde IF ((!Bank0[0384].Bit(5))) {
  2319. 1ce5 ActiveEntity.SetMeshCoordsXZ(#0014, #000b)
  2320. 1ceb ActiveEntity.SetCoordsInMeshXZ(#1099, #0945)
  2321. 1cef ActiveEntity.SetDirectionAndFacing(#0017)
  2322. 1cf4 ActiveEntity.SetYOffset((-#07d0))
  2323. 1cf5 GOTO 1d5c
  2324. }
  2325. 1cfb IF ((!Bank0[0384].Bit(6))) {
  2326. 1d02 ActiveEntity.SetMeshCoordsXZ(#0014, #000b)
  2327. 1d08 ActiveEntity.SetCoordsInMeshXZ(#1099, #0945)
  2328. 1d0d ActiveEntity.SetYOffset((-#0190))
  2329. 1d15 Op3fd(#0000, #0003, #000a)
  2330. 1d1b ActiveEntity.PlayAnimation(#0001, #0001)
  2331. 1d20 IF ((!Bank0[0384].Bit(7))) {
  2332. 1d25 PlaySoundEffect(#01b0)
  2333. 1d2b WRITE Bank0[0384].Bit(7) = #0001
  2334. }
  2335. 1d31 WRITE Bank0[0384].Bit(6) = #0001
  2336. 1d32 GOTO 1d5c
  2337. }
  2338. 1d38 IF ((!Bank0[0385].Bit(0))) {
  2339. 1d3f ActiveEntity.PlayAnimation(#0001, #0001)
  2340. 1d46 IF ((Bank0_16bit[0390] < #0e66)) {
  2341. 1d4f Op3fd(#0000, #0003, #000a)
  2342. 1d50 GOTO 1d56
  2343. }
  2344. 1d55 Op3fe(#0000)
  2345. 1d56 GOTO 1d5c
  2346. }
  2347. 1d5b ActiveEntity.SetMoveSpeed(#0000)
  2348. }
  2349. 1d5c RETURN
  2350. Function 1d5d
  2351.  
  2352. Called by:
  2353. Model($UnknownModel10).Function($OnMovement)
  2354. Addr Code
  2355. 1d6f IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  2356. 1d74 SetNumWaitFrames(#000a)
  2357. 1d75 Wait()
  2358. 1d7b WRITE Bank0[0352].Bit(3) = #0000
  2359. 1d81 WRITE Bank0[0385].Bit(1) = #0001
  2360. 1d87 EnterFieldScene(#0035, #0000)
  2361. }
  2362. 1d88 RETURN
  2363. Function 1d89
  2364.  
  2365. Called by:
  2366. Model($CloudModel).Function($OnFrameTick)
  2367. Addr Code
  2368. 1d89 RETURN
  2369. Function 1d8a
  2370.  
  2371. Called by:
  2372. Model($CloudModel).Function($OnModelLoad)
  2373. Addr Code
  2374. 1d8e IF ((!Bank0[0385].Bit(3))) {
  2375. 1d93 SetControlsEnabled(#0000)
  2376. 1d99 WRITE Bank0[0385].Bit(3) = #0001
  2377. 1d9d SetNumWaitFrames(#001e)
  2378. 1d9e Wait()
  2379. 1d9f WaitForWindowReady()
  2380. 1da9 SetWindowDimensions(#003c, #0005, #00c8, #0049)
  2381. 1daf SetWindowParams(#0000, #0000)
  2382. 1db0 WaitForWindowReady()
  2383. 1db4 SetWindowMessage(#0035)
  2384. 1db5 WaitForMessageAcknowledge()
  2385. 1db9 SetControlsEnabled(#0001)
  2386. }
  2387. 1dba RETURN
  2388. Function 1dbb
  2389.  
  2390. Called by:
  2391. Model($UnknownModel4).Function($OnModelLoad)
  2392. Addr Code
  2393. 1dbf IF ((!Bank0[0386].Bit(2))) {
  2394. 1dc4 SetControlsEnabled(#0000)
  2395. 1dca WRITE Bank0[0386].Bit(2) = #0001
  2396. 1dce SetNumWaitFrames(#001e)
  2397. 1dcf Wait()
  2398. 1dd0 WaitForWindowReady()
  2399. 1dda SetWindowDimensions(#0012, #0005, #011b, #0049)
  2400. 1de0 SetWindowParams(#0000, #0000)
  2401. 1de1 WaitForWindowReady()
  2402. 1de5 SetWindowMessage(#003b)
  2403. 1de6 WaitForMessageAcknowledge()
  2404. 1dea SetControlsEnabled(#0001)
  2405. }
  2406. 1deb RETURN
  2407. Function 1dec
  2408.  
  2409. Called by:
  2410. Model($UnknownModel4).Function($UnknownFunc4)
  2411. Addr Code
  2412. 1dfe IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  2413. 1e03 SetControlsEnabled(#0000)
  2414. 1e09 WRITE Bank0[007e].Bit(0) = #0001
  2415. 1e0f Op333(GetSpecial(0008), #00c0)
  2416. 1e15 WRITE Bank1[0002] = GetSpecial(000f)
  2417. 1e19 SetActiveEntity(GetSpecial(0008))
  2418. 1e1d CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2419. 1e1e Op334()
  2420. 1e1f EnterVehicle()
  2421. 1e26 IF ((GetSpecial(0008) == #0004)) {
  2422. 1e2d WRITE Bank0[007e].Bit(1) = #0001
  2423. }
  2424. }
  2425. 1e2e RETURN
  2426. Function 1e2f
  2427.  
  2428. Called by:
  2429. Model($UnknownModel4).Function($UnknownFunc5)
  2430. Addr Code
  2431. 1e35 IF ((Bank0_16bit[0000] < #0181)) {
  2432. 1e3a IF (Bank0[0384].Bit(4)) {
  2433. 1e3f SetControlsEnabled(#0000)
  2434. 1e43 SetRandomEncountersEnabled(#0000)
  2435. 1e47 SetNumWaitFrames(#0005)
  2436. 1e48 Wait()
  2437. 1e4e WRITE Bank1[0003] = GetSpecial(0004)
  2438. 1e52 SetActiveEntity(GetSpecial(0008))
  2439. 1e56 CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2440. 1e57 Op334()
  2441. 1e5b SetNumWaitFrames(#0014)
  2442. 1e5c Wait()
  2443. 1e60 SetActiveEntity(GetSpecial(0008))
  2444. 1e64 CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2445. 1e65 Op334()
  2446. 1e69 Op354(#0001)
  2447. 1e6a GOTO 1eae
  2448. }
  2449. 1e6f SetControlsEnabled(#0000)
  2450. 1e73 SetNumWaitFrames(#0005)
  2451. 1e74 Wait()
  2452. 1e7a WRITE Bank1[0003] = GetSpecial(0004)
  2453. 1e7e SetActiveEntity(GetSpecial(0008))
  2454. 1e82 CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2455. 1e83 Op334()
  2456. 1e89 WRITE Bank0[007e].Bit(0) = #0000
  2457. 1e8f WRITE Bank0[007e].Bit(1) = #0000
  2458. 1e95 ActiveEntity.PlayAnimation(#0002, #0000)
  2459. 1e99 PlaySoundEffect(#0114)
  2460. 1e9d SetNumWaitFrames(#0012)
  2461. 1e9e Wait()
  2462. 1ea2 SetRandomEncountersEnabled(#0001)
  2463. 1ea8 ActiveEntity.PlayAnimation(#0000, #0001)
  2464. 1ea9 Op332()
  2465. 1ead SetControlsEnabled(#0001)
  2466. 1eae GOTO 1f4d
  2467. }
  2468. 1eb3 IF (Bank0[007d].Bit(0)) {
  2469. 1eb8 SetControlsEnabled(#0000)
  2470. 1ebc SetRandomEncountersEnabled(#0000)
  2471. 1ec0 SetNumWaitFrames(#0005)
  2472. 1ec1 Wait()
  2473. 1ec7 WRITE Bank1[0003] = GetSpecial(0004)
  2474. 1ecb SetActiveEntity(GetSpecial(0008))
  2475. 1ecf CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2476. 1ed0 Op334()
  2477. 1ed4 SetNumWaitFrames(#0014)
  2478. 1ed5 Wait()
  2479. 1ed9 SetActiveEntity(GetSpecial(0008))
  2480. 1edd CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2481. 1ede Op334()
  2482. 1ee4 WRITE Bank0[007e].Bit(0) = #0000
  2483. 1eea WRITE Bank0[007e].Bit(1) = #0000
  2484. 1ef0 ActiveEntity.PlayAnimation(#0002, #0000)
  2485. 1ef4 PlaySoundEffect(#0114)
  2486. 1ef8 SetNumWaitFrames(#0012)
  2487. 1ef9 Wait()
  2488. 1eff ActiveEntity.PlayAnimation(#0000, #0001)
  2489. 1f03 SetRandomEncountersEnabled(#0001)
  2490. 1f04 Op332()
  2491. 1f08 SetControlsEnabled(#0001)
  2492. 1f09 GOTO 1f4d
  2493. }
  2494. 1f0e SetControlsEnabled(#0000)
  2495. 1f12 SetNumWaitFrames(#0005)
  2496. 1f13 Wait()
  2497. 1f19 WRITE Bank1[0003] = GetSpecial(0004)
  2498. 1f1d SetActiveEntity(GetSpecial(0008))
  2499. 1f21 CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2500. 1f22 Op334()
  2501. 1f28 WRITE Bank0[007e].Bit(0) = #0000
  2502. 1f2e WRITE Bank0[007e].Bit(1) = #0000
  2503. 1f34 ActiveEntity.PlayAnimation(#0002, #0000)
  2504. 1f38 PlaySoundEffect(#0114)
  2505. 1f3c SetNumWaitFrames(#0012)
  2506. 1f3d Wait()
  2507. 1f41 SetRandomEncountersEnabled(#0001)
  2508. 1f47 ActiveEntity.PlayAnimation(#0000, #0001)
  2509. 1f48 Op332()
  2510. 1f4c SetControlsEnabled(#0001)
  2511. 1f4d RETURN
  2512. Function 1f4e
  2513.  
  2514. Called by:
  2515. Model($ChocoboModel).Function($OnModelLoad)
  2516. Addr Code
  2517. 1f54 IF ((Bank0_16bit[0000] == #04e2)) {
  2518. 1f62 IF (((GetSpecial(0000) == #001a) && (GetSpecial(0001) == #0018))) {
  2519. 1f70 IF (((GetSpecial(0002) >= #1692) && (GetSpecial(0002) <= #1d31))) {
  2520. 1f7e IF (((GetSpecial(0003) >= #1068) && (GetSpecial(0003) <= #16bc))) {
  2521. 1f85 ActiveEntity.SetMeshCoordsXZ(#001a, #0018)
  2522. 1f8b ActiveEntity.SetCoordsInMeshXZ(#15b1, #16f8)
  2523. }
  2524. }
  2525. }
  2526. }
  2527. 1f8c RETURN
  2528. Function 1f8d
  2529.  
  2530. Called by:
  2531. Model($ChocoboModel).Function($UnknownFunc4)
  2532. Addr Code
  2533. 1f9f IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  2534. 1fa4 CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2535. }
  2536. 1fa5 RETURN
  2537. Function 1fa6
  2538.  
  2539. Called by:
  2540. Model($ChocoboModel).Function($UnknownFunc5)
  2541. Addr Code
  2542. 1fa9 SetNumWaitFrames(#0005)
  2543. 1faa Wait()
  2544. 1fb0 WRITE Bank1[0003] = GetSpecial(0004)
  2545. 1fb4 SetActiveEntity(GetSpecial(0008))
  2546. 1fb8 CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2547. 1fb9 Op334()
  2548. 1fbf WRITE Bank0[007e].Bit(1) = #0000
  2549. 1fc3 SetControlsEnabled(#0001)
  2550. 1fc4 RETURN
  2551. Function 1fc5
  2552.  
  2553. Called by:
  2554. Model($UnknownModel6).Function($OnFrameTick)
  2555. Addr Code
  2556. 1fc5 RETURN
  2557. Function 1fc6
  2558.  
  2559. Called by:
  2560. Model($UnknownModel6).Function($OnModelLoad)
  2561. Addr Code
  2562. 1fca IF ((!Bank0[0385].Bit(5))) {
  2563. 1fcf SetControlsEnabled(#0000)
  2564. 1fd5 WRITE Bank0[0385].Bit(5) = #0001
  2565. 1fd9 SetNumWaitFrames(#001e)
  2566. 1fda Wait()
  2567. 1fdb WaitForWindowReady()
  2568. 1fe5 SetWindowDimensions(#0038, #0005, #00d0, #0099)
  2569. 1feb SetWindowParams(#0000, #0000)
  2570. 1fec WaitForWindowReady()
  2571. 1ff0 SetWindowMessage(#0039)
  2572. 1ff1 WaitForMessageAcknowledge()
  2573. 1ff5 SetControlsEnabled(#0001)
  2574. }
  2575. 1ff6 RETURN
  2576. Function 1ff7
  2577.  
  2578. Called by:
  2579. Model($UnknownModel6).Function($UnknownFunc4)
  2580. Addr Code
  2581. 2009 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  2582. 200e IF (Bank0[01cf].Bit(1)) {
  2583. 2013 IF (Bank0[01cf].Bit(2)) {
  2584. 2015 EnterVehicle()
  2585. 201c IF ((GetSpecial(0008) == #0006)) {
  2586. 2023 WRITE Bank0[007f].Bit(1) = #0001
  2587. }
  2588. 2024 GOTO 202e
  2589. }
  2590. 2029 SetActiveEntity(GetSpecial(0008))
  2591. 202d CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2592. 202e GOTO 203f
  2593. }
  2594. 2030 EnterVehicle()
  2595. 2037 IF ((GetSpecial(0008) == #0006)) {
  2596. 203e WRITE Bank0[007f].Bit(1) = #0001
  2597. }
  2598. }
  2599. 203f RETURN
  2600. Function 2040
  2601.  
  2602. Called by:
  2603. Model($UnknownModel6).Function($UnknownFunc5)
  2604. Addr Code
  2605. 2045 WRITE Bank0[007f].Bit(1) = #0000
  2606. 2046 RETURN
  2607. Function 2047
  2608.  
  2609. Called by:
  2610. Model($UnknownModel5).Function($OnModelLoad)
  2611. Addr Code
  2612. 204d IF ((GetSpecial(0005) == #0000)) {
  2613. 2055 IF ((GetSpecial(0006) == #0028)) {
  2614. 205b IF ((!Bank0[0386].Bit(0))) {
  2615. 2060 SetControlsEnabled(#0000)
  2616. 2066 WRITE Bank0[0386].Bit(0) = #0001
  2617. 206a SetNumWaitFrames(#001e)
  2618. 206b Wait()
  2619. 206c WaitForWindowReady()
  2620. 2076 SetWindowDimensions(#0032, #0005, #00dc, #0079)
  2621. 207c SetWindowParams(#0000, #0000)
  2622. 207d WaitForWindowReady()
  2623. 2081 SetWindowMessage(#003a)
  2624. 2082 WaitForMessageAcknowledge()
  2625. 2086 SetControlsEnabled(#0001)
  2626. }
  2627. }
  2628. }
  2629. 208d IF ((Bank0_16bit[0000] >= #0281)) {
  2630. 2092 IF (Bank0[01cf].Bit(4)) {
  2631. 2099 ActiveEntity.SetMeshCoordsXZ(#000d, #0017)
  2632. 209f ActiveEntity.SetCoordsInMeshXZ(#1ca2, #076e)
  2633. 20a3 ActiveEntity.SetDirectionAndFacing(#0080)
  2634. }
  2635. }
  2636. 20a4 RETURN
  2637. Function 20a5
  2638.  
  2639. Called by:
  2640. Model($UnknownModel5).Function($UnknownFunc4)
  2641. Addr Code
  2642. 20b7 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  2643. 20bc IF (Bank0[01cf].Bit(0)) {
  2644. 20c2 IF ((!Bank0[01cf].Bit(6))) {
  2645. 20c7 IF (Bank0[01cf].Bit(5)) {
  2646. 20cc SetControlsEnabled(#0000)
  2647. 20d0 SetRandomEncountersEnabled(#0000)
  2648. 20d4 SetNumWaitFrames(#0014)
  2649. 20d5 Wait()
  2650. 20d9 SetActiveEntity(GetSpecial(0008))
  2651. 20dd CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2652. 20de GOTO 20e1
  2653. }
  2654. 20e0 EnterVehicle()
  2655. 20e1 GOTO 20e4
  2656. }
  2657. 20e3 EnterVehicle()
  2658. 20e4 GOTO 20e7
  2659. }
  2660. 20e6 EnterVehicle()
  2661. }
  2662. 20e7 RETURN
  2663. Function 20e8
  2664.  
  2665. Called by:
  2666. Model($UnknownModel5).Function($UnknownFunc5)
  2667. Addr Code
  2668. 20ed WRITE Bank0[01cf].Bit(4) = #0000
  2669. 20ee RETURN
  2670. Function 20ef
  2671.  
  2672. Called by:
  2673. Model($UltimateWeaponModel).Function($OnFrameTick)
  2674. Addr Code
  2675. 20f6 IF ((ActiveEntity.GetDistanceToModel(#000e) <= #0064)) {
  2676. 20f8 Op30d()
  2677. }
  2678. 20ff IF ((Bank0_16bit[0000] < #062c)) {
  2679. 2108 IF ((ActiveEntity.GetDistanceToPoint(#000e) <= #0100)) {
  2680. 210d CALL Model($UltimateWeaponModel).Function($UnknownFunc28)
  2681. }
  2682. 210e GOTO 2127
  2683. }
  2684. 2116 IF ((Bank0_16bit[0000] == #062c)) {
  2685. 211f IF ((ActiveEntity.GetDistanceToPoint(#000e) <= #0100)) {
  2686. 2126 EnterFieldScene(#0034, #0000)
  2687. }
  2688. }
  2689. 212d IF ((Bank0_16bit[0000] == #063c)) {
  2690. 2136 IF ((ActiveEntity.GetDistanceToPoint(#0009) <= #0100)) {
  2691. 213d WRITE Bank0_16bit[0000] = #063e
  2692. 2143 EnterFieldScene(#0034, #0000)
  2693. 2149 WRITE Bank0[0385].Bit(6) = #0001
  2694. }
  2695. }
  2696. 214a RETURN
  2697. Function 214b
  2698.  
  2699. Called by:
  2700. Model($UltimateWeaponModel).Function($OnModelLoad)
  2701. Addr Code
  2702. 2151 IF ((GetSpecial(0005) == #0000)) {
  2703. 2159 IF ((GetSpecial(0006) == #0033)) {
  2704. 2160 WRITE Bank0[038d] = GetSpecial(0007)
  2705. 2164 Op319(#000a)
  2706. 216a WRITE Bank0_16bit[0390] = #0000
  2707. 216e PlaySoundEffect(#017f)
  2708. 216f Op339()
  2709. 2175 ActiveEntity.SetMeshCoordsXZ(#0016, #000f)
  2710. 217b ActiveEntity.SetCoordsInMeshXZ(#1fa8, #06c4)
  2711. 217f ActiveEntity.SetDirectionAndFacing(#0097)
  2712. 2183 SetRandomEncountersEnabled(#0000)
  2713. 2187 SetControlsEnabled(#0000)
  2714. 218b Op31c(#0000)
  2715. 218f Op32f(#00e8)
  2716. 2193 SetNumWaitFrames(#000f)
  2717. 2194 Wait()
  2718. 2198 ActiveEntity.SetMoveSpeed(#00a0)
  2719. 219d Op33a((-#0014))
  2720. 21a1 SetNumWaitFrames(#0096)
  2721. 21a2 Wait()
  2722. 21a6 Op33a(#0000)
  2723. 21aa SetNumWaitFrames(#0055)
  2724. 21ab Wait()
  2725. 21af ActiveEntity.SetMoveSpeed(#0000)
  2726. 21b3 CALL Model($UnknownModel10).Function($UnknownFunc28)
  2727. }
  2728. 21b4 GOTO 21fc
  2729. }
  2730. 21bc IF ((GetSpecial(0005) == #0001)) {
  2731. 21c1 IF (Bank0[007b].Bit(0)) {
  2732. 21c7 IF ((!Bank0[0386].Bit(4))) {
  2733. 21cc IF (Bank0[0387].Bit(0)) {
  2734. 21d1 SetControlsEnabled(#0000)
  2735. 21d2 Op339()
  2736. 21d6 Op319(#000a)
  2737. 21dc ActiveEntity.SetMeshCoordsXZ(#000b, #0015)
  2738. 21e2 ActiveEntity.SetCoordsInMeshXZ(#15f0, #079a)
  2739. 21e6 ActiveEntity.SetDirectionAndFacing(#0080)
  2740. 21ea Op31c(#0000)
  2741. 21ee Op32f(#0000)
  2742. 21f2 SetMusicVolume(#0000)
  2743. 21f6 SetNumWaitFrames(#000a)
  2744. 21f7 Wait()
  2745. 21fb CALL Model($HighwindModel).Function($UnknownFunc28)
  2746. }
  2747. }
  2748. }
  2749. }
  2750. 2202 IF ((Bank0_16bit[0000] >= #0522)) {
  2751. 2207 IF (Bank0[007f].Bit(3)) {
  2752. 220e ActiveEntity.SetMeshCoordsXZ(#000a, #000e)
  2753. 2214 ActiveEntity.SetCoordsInMeshXZ(#0d9d, #115c)
  2754. 2218 ActiveEntity.SetDirectionAndFacing(#00f5)
  2755. }
  2756. }
  2757. 2219 RETURN
  2758. Function 221a
  2759.  
  2760. Called by:
  2761. System.Function($UnknownFunc29)
  2762. Model($CloudModel).Function($UnknownFunc29)
  2763. Addr Code
  2764. 221d SetMusicVolume(#0000)
  2765. 2221 SetControlsEnabled(#0000)
  2766. 2225 SetRandomEncountersEnabled(#0000)
  2767. 2229 SetNumWaitFrames(#003c)
  2768. 222a Wait()
  2769. 2231 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  2770. 2235 ActiveEntity.SetMoveSpeed(#0014)
  2771. 2239 SetNumWaitFrames(#000a)
  2772. 223a Wait()
  2773. 223e ActiveEntity.SetMoveSpeed(#0000)
  2774. 223f WaitForWindowReady()
  2775. 2249 SetWindowDimensions(#0076, #00a0, #0054, #0029)
  2776. 224f SetWindowParams(#0000, #0000)
  2777. 2250 WaitForWindowReady()
  2778. 2254 SetWindowMessage(#0037)
  2779. 2255 WaitForMessageAcknowledge()
  2780. 2259 SetNumWaitFrames(#0014)
  2781. 225a Wait()
  2782. 225e SetCameraShakingEnabled(#0001)
  2783. 2262 PlaySoundEffect(#017f)
  2784. 2266 SetNumWaitFrames(#0014)
  2785. 2267 Wait()
  2786. 226b SetMusicVolume(#007f)
  2787. 226f SendSoundCommand(#0006)
  2788. 2275 ActiveEntity.PlayAnimation(#0007, #0001)
  2789. 2279 SetNumWaitFrames(#0028)
  2790. 227a Wait()
  2791. 227b WaitForWindowReady()
  2792. 2285 SetWindowDimensions(#0067, #00a0, #0072, #0029)
  2793. 228b SetWindowParams(#0000, #0000)
  2794. 228c WaitForWindowReady()
  2795. 2290 SetWindowMessage(#0038)
  2796. 2291 WaitForMessageAcknowledge()
  2797. 2295 SetNumWaitFrames(#001e)
  2798. 2296 Wait()
  2799. 229a SetFieldEntryPointFromFieldTblId(#0033)
  2800. 229e SetControlsEnabled(#0001)
  2801. 22a2 SetRandomEncountersEnabled(#0001)
  2802. 22a3 RETURN
  2803. Function 22a4
  2804.  
  2805. Called by:
  2806. Model($ChocoboModel).Function($UnknownFunc29)
  2807. Addr Code
  2808. 22a7 SetMusicVolume(#0000)
  2809. 22ab SetControlsEnabled(#0000)
  2810. 22af SetRandomEncountersEnabled(#0000)
  2811. 22b3 SetNumWaitFrames(#003c)
  2812. 22b4 Wait()
  2813. 22bb ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) + #0080))
  2814. 22bf ActiveEntity.SetMoveSpeed(#0014)
  2815. 22c3 SetNumWaitFrames(#000a)
  2816. 22c4 Wait()
  2817. 22c8 ActiveEntity.SetMoveSpeed(#0000)
  2818. 22c9 WaitForWindowReady()
  2819. 22d3 SetWindowDimensions(#0076, #00a0, #0054, #0029)
  2820. 22d9 SetWindowParams(#0000, #0000)
  2821. 22da WaitForWindowReady()
  2822. 22de SetWindowMessage(#0037)
  2823. 22df WaitForMessageAcknowledge()
  2824. 22e3 SetNumWaitFrames(#0014)
  2825. 22e4 Wait()
  2826. 22e8 SetCameraShakingEnabled(#0001)
  2827. 22ec PlaySoundEffect(#017f)
  2828. 22f0 SetNumWaitFrames(#0014)
  2829. 22f1 Wait()
  2830. 22f5 SetMusicVolume(#007f)
  2831. 22f9 SendSoundCommand(#0006)
  2832. 22fd SetNumWaitFrames(#0028)
  2833. 22fe Wait()
  2834. 22ff WaitForWindowReady()
  2835. 2309 SetWindowDimensions(#0067, #00a0, #0072, #0029)
  2836. 230f SetWindowParams(#0000, #0000)
  2837. 2310 WaitForWindowReady()
  2838. 2314 SetWindowMessage(#0038)
  2839. 2315 WaitForMessageAcknowledge()
  2840. 2319 SetNumWaitFrames(#001e)
  2841. 231a Wait()
  2842. 231e SetFieldEntryPointFromFieldTblId(#0033)
  2843. 2322 SetControlsEnabled(#0001)
  2844. 2326 SetRandomEncountersEnabled(#0001)
  2845. 2327 RETURN
  2846. Function 2328
  2847.  
  2848. Called by:
  2849. Model($UltimateWeaponModel).Function($UnknownFunc4)
  2850. Addr Code
  2851. 2340 IF (((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002)) || (GetSpecial(0008) == #0013))) {
  2852. 2348 IF ((GetSpecial(0008) == #0013)) {
  2853. 234f WRITE Bank0[0385].Bit(7) = #0001
  2854. }
  2855. 2353 IF (Bank0[0352].Bit(3)) {
  2856. 2359 IF ((!Bank0[0385].Bit(4))) {
  2857. 235e SetControlsEnabled(#0000)
  2858. 2364 WRITE Bank0[0385].Bit(4) = #0001
  2859. 2368 CALL Model(GetSpecial(0008)).Function(001d)
  2860. 2369 Op334()
  2861. }
  2862. }
  2863. 236d IF (Bank0[01cf].Bit(0)) {
  2864. 2373 IF ((!Bank0[01cf].Bit(6))) {
  2865. 2378 IF (Bank0[01cf].Bit(5)) {
  2866. 237d SetRandomEncountersEnabled(#0000)
  2867. 2381 SetControlsEnabled(#0000)
  2868. 2385 SetNumWaitFrames(#0014)
  2869. 2386 Wait()
  2870. 238a SetActiveEntity(GetSpecial(0008))
  2871. 238e CALL Model($SystemModelInActiveEntityContext).Function($UnknownFunc28)
  2872. 238f GOTO 23a0
  2873. }
  2874. 2391 EnterVehicle()
  2875. 2398 IF ((GetSpecial(0008) == #0003)) {
  2876. 239f WRITE Bank0[007f].Bit(5) = #0001
  2877. }
  2878. 23a0 GOTO 23b1
  2879. }
  2880. 23a2 EnterVehicle()
  2881. 23a9 IF ((GetSpecial(0008) == #0003)) {
  2882. 23b0 WRITE Bank0[007f].Bit(5) = #0001
  2883. }
  2884. 23b1 GOTO 23c2
  2885. }
  2886. 23b3 EnterVehicle()
  2887. 23ba IF ((GetSpecial(0008) == #0003)) {
  2888. 23c1 WRITE Bank0[007f].Bit(5) = #0001
  2889. }
  2890. }
  2891. 23c2 RETURN
  2892. Function 23c3
  2893.  
  2894. Called by:
  2895. Model($UltimateWeaponModel).Function($UnknownFunc5)
  2896. Addr Code
  2897. 23c8 WRITE Bank0[007f].Bit(5) = #0000
  2898. 23ce WRITE Bank0[007f].Bit(3) = #0000
  2899. 23d4 WRITE Bank0[0385].Bit(7) = #0000
  2900. 23d5 RETURN
  2901. Function 23d6
  2902.  
  2903. Called by:
  2904. Model($SubmarineModel).Function($OnModelLoad)
  2905. Addr Code
  2906. 23d9 IF (Bank0[0350].Bit(3)) {
  2907. 23df IF ((!Bank0[007a].Bit(2))) {
  2908. 23e4 SetControlsEnabled(#0000)
  2909. 23e8 SetRandomEncountersEnabled(#0000)
  2910. 23ec SetNumWaitFrames(#001e)
  2911. 23ed Wait()
  2912. 23f1 ActiveEntity.SetMoveSpeed(#0028)
  2913. 23f5 ActiveEntity.SetDirectionAndFacing(#0040)
  2914. 23f9 SetNumWaitFrames(#004b)
  2915. 23fa Wait()
  2916. 23fe ActiveEntity.SetMoveSpeed(#0000)
  2917. 2402 SetNumWaitFrames(#000a)
  2918. 2403 Wait()
  2919. 2404 Op331()
  2920. 2408 SetActiveEntity(GetSpecial(0008))
  2921. 240c SetControlsEnabled(#0000)
  2922. 2410 SetNumWaitFrames(#0014)
  2923. 2411 Wait()
  2924. 2412 WaitForWindowReady()
  2925. 241c SetWindowDimensions(#0012, #0005, #011b, #0059)
  2926. 2422 SetWindowParams(#0000, #0000)
  2927. 2423 WaitForWindowReady()
  2928. 2427 SetWindowMessage(#003d)
  2929. 2428 WaitForMessageAcknowledge()
  2930. 242c SetRandomEncountersEnabled(#0001)
  2931. 2430 SetControlsEnabled(#0001)
  2932. 2436 WRITE Bank0[007a].Bit(2) = #0001
  2933. }
  2934. 2437 GOTO 24b7
  2935. }
  2936. 243c IF (Bank0[0352].Bit(2)) {
  2937. 2444 IF ((GetSpecial(0005) == #0000)) {
  2938. 244c IF ((GetSpecial(0006) == #0036)) {
  2939. 2452 IF ((!Bank0[0386].Bit(1))) {
  2940. 2457 SetControlsEnabled(#0000)
  2941. 245b SetRandomEncountersEnabled(#0000)
  2942. 245f SetNumWaitFrames(#0032)
  2943. 2460 Wait()
  2944. 2464 ActiveEntity.SetMoveSpeed(#0028)
  2945. 2468 ActiveEntity.SetDirectionAndFacing(#0000)
  2946. 246c SetNumWaitFrames(#0069)
  2947. 246d Wait()
  2948. 2471 ActiveEntity.SetMoveSpeed(#0028)
  2949. 2475 ActiveEntity.SetDirectionAndFacing(#0040)
  2950. 2479 SetNumWaitFrames(#0034)
  2951. 247a Wait()
  2952. 247e ActiveEntity.SetMoveSpeed(#0000)
  2953. 2482 SetNumWaitFrames(#000a)
  2954. 2483 Wait()
  2955. 2484 Op331()
  2956. 2488 SetActiveEntity(GetSpecial(0008))
  2957. 248c SetControlsEnabled(#0000)
  2958. 2490 SetNumWaitFrames(#0014)
  2959. 2491 Wait()
  2960. 2492 WaitForWindowReady()
  2961. 249c SetWindowDimensions(#0012, #0005, #011b, #0059)
  2962. 24a2 SetWindowParams(#0000, #0000)
  2963. 24a3 WaitForWindowReady()
  2964. 24a7 SetWindowMessage(#003d)
  2965. 24a8 WaitForMessageAcknowledge()
  2966. 24ac SetRandomEncountersEnabled(#0001)
  2967. 24b0 SetControlsEnabled(#0001)
  2968. 24b6 WRITE Bank0[0386].Bit(1) = #0001
  2969. }
  2970. }
  2971. }
  2972. }
  2973. 24b7 RETURN
  2974. Function 24b8
  2975.  
  2976. Called by:
  2977. Model($SubmarineModel).Function($UnknownFunc4)
  2978. Addr Code
  2979. 24ca IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  2980. 24cc EnterVehicle()
  2981. }
  2982. 24cd RETURN
  2983. Function 24ce
  2984.  
  2985. Called by:
  2986. Model($UnknownModel8).Function($OnModelLoad)
  2987. Addr Code
  2988. 24d4 IF ((GetSpecial(0005) == #0000)) {
  2989. 24dc IF ((GetSpecial(0006) == #0024)) {
  2990. 24e3 WRITE Bank0[038d] = GetSpecial(0007)
  2991. 24e7 PlaySoundEffect(#017d)
  2992. 24eb Op319(#000a)
  2993. 24ef SetControlsEnabled(#0000)
  2994. 24f3 Op31c(#0000)
  2995. 24f7 Op32f(#0000)
  2996. 24fd ActiveEntity.SetMeshCoordsXZ(#0014, #0011)
  2997. 2503 ActiveEntity.SetCoordsInMeshXZ(#1121, #18c0)
  2998. 2507 ActiveEntity.SetDirectionAndFacing(#00c0)
  2999. 250b Op31c(#0001)
  3000. 250f Op31f(#0006)
  3001. 2513 Op329(#0002)
  3002. 2517 Op32a(#0019)
  3003. 251b SetNumWaitFrames(#0082)
  3004. 251c Wait()
  3005. 2520 Op31f(#0000)
  3006. 2524 Op329(#0000)
  3007. 2528 Op32a(#0000)
  3008. 252c ActiveEntity.SetMoveSpeed(#000a)
  3009. 2530 SetNumWaitFrames(#000a)
  3010. 2531 Wait()
  3011. 2535 ActiveEntity.SetMoveSpeed(#0014)
  3012. 2539 SetNumWaitFrames(#000a)
  3013. 253a Wait()
  3014. 253e ActiveEntity.SetMoveSpeed(#001e)
  3015. 2542 SetNumWaitFrames(#0014)
  3016. 2543 Wait()
  3017. 2547 ActiveEntity.SetMoveSpeed(#0028)
  3018. 254b SetNumWaitFrames(#005f)
  3019. 254c Wait()
  3020. 2551 Op31f((-#0005))
  3021. 2556 Op329((-#0003))
  3022. 255a SetNumWaitFrames(#006e)
  3023. 255b Wait()
  3024. 255f Op31f(#0000)
  3025. 2563 Op329(#0000)
  3026. 2569 WRITE Bank0[0380] = #000d
  3027. 256d IF (Bank0[0380]) {
  3028. 2575 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) - #0003))
  3029. 2579 SetNumWaitFrames(#000a)
  3030. 257a Wait()
  3031. 2583 WRITE Bank0[0380] = (Bank0[0380] - #0001)
  3032. 2584 GOTO 256a
  3033. }
  3034. 2589 Op31f(#0000)
  3035. 258d SetNumWaitFrames(#0096)
  3036. 258e Wait()
  3037. 2593 Op32a((-#0032))
  3038. 2597 SetNumWaitFrames(#00a0)
  3039. 2598 Wait()
  3040. 259c Op32a(#0000)
  3041. 25a2 WRITE Bank0[01cf].Bit(7) = #0000
  3042. 25a8 EnterFieldScene(#0024, #0000)
  3043. 25a9 GOTO 28eb
  3044. }
  3045. 25b1 IF ((GetSpecial(0006) == #0025)) {
  3046. 25b6 PlaySoundEffect(#017d)
  3047. 25ba Op319(#000a)
  3048. 25be SetControlsEnabled(#0000)
  3049. 25c2 Op31c(#0000)
  3050. 25c6 Op32f(#0050)
  3051. 25ca Op31c(#0001)
  3052. 25cf Op329((-#0032))
  3053. 25d5 ActiveEntity.SetMeshCoordsXZ(#0013, #0011)
  3054. 25db ActiveEntity.SetCoordsInMeshXZ(#04df, #0ef2)
  3055. 25df ActiveEntity.SetDirectionAndFacing(#0099)
  3056. 25e3 ActiveEntity.SetMoveSpeed(#0028)
  3057. 25e7 SetNumWaitFrames(#0046)
  3058. 25e8 Wait()
  3059. 25ed Op31f((-#0005))
  3060. 25f1 Op329(#0005)
  3061. 25f5 SetNumWaitFrames(#001e)
  3062. 25f6 Wait()
  3063. 25fa SetNumWaitFrames(#0064)
  3064. 25fb Wait()
  3065. 25ff SetNumWaitFrames(#0064)
  3066. 2600 Wait()
  3067. 2604 SetNumWaitFrames(#0064)
  3068. 2605 Wait()
  3069. 2609 SetNumWaitFrames(#0043)
  3070. 260a Wait()
  3071. 260e Op31f(#0000)
  3072. 2612 ActiveEntity.SetMoveSpeed(#001e)
  3073. 2616 SetNumWaitFrames(#001e)
  3074. 2617 Wait()
  3075. 261b ActiveEntity.SetMoveSpeed(#0014)
  3076. 261f SetNumWaitFrames(#0041)
  3077. 2620 Wait()
  3078. 2624 ActiveEntity.SetMoveSpeed(#0000)
  3079. 2628 SetNumWaitFrames(#001e)
  3080. 2629 Wait()
  3081. 262f WRITE Bank0[0380] = #0023
  3082. 2633 IF (Bank0[0380]) {
  3083. 263b ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) - #0003))
  3084. 263f SetNumWaitFrames(#0005)
  3085. 2640 Wait()
  3086. 2649 WRITE Bank0[0380] = (Bank0[0380] - #0001)
  3087. 264a GOTO 2630
  3088. }
  3089. 264f SetNumWaitFrames(#0014)
  3090. 2650 Wait()
  3091. 2654 ActiveEntity.SetDirectionAndFacing(#0030)
  3092. 2658 SetActiveEntityDirection(#00b0)
  3093. 265c ActiveEntity.SetMoveSpeed(#0014)
  3094. 2660 SetNumWaitFrames(#0073)
  3095. 2661 Wait()
  3096. 2665 ActiveEntity.SetMoveSpeed(#0000)
  3097. 2669 Op329(#0000)
  3098. 266d SetNumWaitFrames(#0014)
  3099. 266e Wait()
  3100. 2674 WRITE Bank0[01cf].Bit(7) = #0000
  3101. 267a EnterFieldScene(#0025, #0000)
  3102. 267e Op319(Bank0[038d])
  3103. 267f GOTO 28eb
  3104. }
  3105. 2687 IF ((GetSpecial(0006) == #0026)) {
  3106. 268e WRITE Bank0[038d] = GetSpecial(0007)
  3107. 2692 PlaySoundEffect(#017d)
  3108. 2696 Op319(#000a)
  3109. 269a SetControlsEnabled(#0000)
  3110. 269e Op31c(#0000)
  3111. 26a2 Op32f(#0022)
  3112. 26a6 Op31c(#0001)
  3113. 26ab Op329((-#0032))
  3114. 26b1 ActiveEntity.SetMeshCoordsXZ(#0014, #0011)
  3115. 26b7 ActiveEntity.SetCoordsInMeshXZ(#1121, #18c0)
  3116. 26bb ActiveEntity.SetDirectionAndFacing(#00c0)
  3117. 26bf SetNumWaitFrames(#000a)
  3118. 26c0 Wait()
  3119. 26c4 Op329(#0003)
  3120. 26c9 Op31f((-#0003))
  3121. 26cd ActiveEntity.SetMoveSpeed(#000a)
  3122. 26d1 SetNumWaitFrames(#000a)
  3123. 26d2 Wait()
  3124. 26d6 ActiveEntity.SetMoveSpeed(#0014)
  3125. 26da SetNumWaitFrames(#000a)
  3126. 26db Wait()
  3127. 26df ActiveEntity.SetMoveSpeed(#001e)
  3128. 26e3 SetNumWaitFrames(#0014)
  3129. 26e4 Wait()
  3130. 26e8 ActiveEntity.SetMoveSpeed(#0028)
  3131. 26ec SetNumWaitFrames(#0064)
  3132. 26ed Wait()
  3133. 26f1 SetNumWaitFrames(#0032)
  3134. 26f2 Wait()
  3135. 26f8 WRITE Bank0[0380] = #0008
  3136. 26fc IF (Bank0[0380]) {
  3137. 2704 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) - #0003))
  3138. 2708 SetNumWaitFrames(#000a)
  3139. 2709 Wait()
  3140. 2712 WRITE Bank0[0380] = (Bank0[0380] - #0001)
  3141. 2713 GOTO 26f9
  3142. }
  3143. 2718 Op31f(#0000)
  3144. 271e WRITE Bank0[0380] = #0005
  3145. 2722 IF (Bank0[0380]) {
  3146. 272a ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) - #0003))
  3147. 272e SetNumWaitFrames(#000a)
  3148. 272f Wait()
  3149. 2738 WRITE Bank0[0380] = (Bank0[0380] - #0001)
  3150. 2739 GOTO 271f
  3151. }
  3152. 273e SetNumWaitFrames(#0064)
  3153. 273f Wait()
  3154. 2743 SetNumWaitFrames(#0064)
  3155. 2744 Wait()
  3156. 2748 SetNumWaitFrames(#0064)
  3157. 2749 Wait()
  3158. 274d SetNumWaitFrames(#0064)
  3159. 274e Wait()
  3160. 2752 SetNumWaitFrames(#0041)
  3161. 2753 Wait()
  3162. 2757 ActiveEntity.SetMoveSpeed(#001e)
  3163. 275b SetNumWaitFrames(#001e)
  3164. 275c Wait()
  3165. 2760 ActiveEntity.SetMoveSpeed(#0014)
  3166. 2764 SetNumWaitFrames(#0041)
  3167. 2765 Wait()
  3168. 2769 ActiveEntity.SetMoveSpeed(#0000)
  3169. 276d SetNumWaitFrames(#001e)
  3170. 276e Wait()
  3171. 2774 WRITE Bank0[0380] = #0023
  3172. 2778 IF (Bank0[0380]) {
  3173. 2780 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) - #0003))
  3174. 2784 SetNumWaitFrames(#0005)
  3175. 2785 Wait()
  3176. 278e WRITE Bank0[0380] = (Bank0[0380] - #0001)
  3177. 278f GOTO 2775
  3178. }
  3179. 2794 SetNumWaitFrames(#0014)
  3180. 2795 Wait()
  3181. 2799 ActiveEntity.SetDirectionAndFacing(#0030)
  3182. 279d SetActiveEntityDirection(#00b0)
  3183. 27a1 ActiveEntity.SetMoveSpeed(#0014)
  3184. 27a5 SetNumWaitFrames(#0073)
  3185. 27a6 Wait()
  3186. 27aa ActiveEntity.SetMoveSpeed(#0000)
  3187. 27ae Op329(#0000)
  3188. 27b2 SetNumWaitFrames(#0014)
  3189. 27b3 Wait()
  3190. 27b9 WRITE Bank0[01cf].Bit(7) = #0000
  3191. 27bf EnterFieldScene(#0026, #0000)
  3192. 27c3 Op319(Bank0[038d])
  3193. 27c4 GOTO 28eb
  3194. }
  3195. 27cc IF ((GetSpecial(0006) == #0027)) {
  3196. 27d3 WRITE Bank0[038d] = GetSpecial(0007)
  3197. 27d7 PlaySoundEffect(#017d)
  3198. 27db Op319(#000a)
  3199. 27df SetControlsEnabled(#0000)
  3200. 27e3 Op31c(#0000)
  3201. 27e7 Op32f(#00de)
  3202. 27eb Op31c(#0001)
  3203. 27f0 Op329((-#0032))
  3204. 27f6 ActiveEntity.SetMeshCoordsXZ(#0011, #000f)
  3205. 27fc ActiveEntity.SetCoordsInMeshXZ(#0b9c, #0866)
  3206. 2800 ActiveEntity.SetDirectionAndFacing(#0034)
  3207. 2804 SetNumWaitFrames(#000a)
  3208. 2805 Wait()
  3209. 2809 Op329(#0003)
  3210. 280d Op31f(#0003)
  3211. 2811 ActiveEntity.SetMoveSpeed(#000a)
  3212. 2815 SetNumWaitFrames(#000a)
  3213. 2816 Wait()
  3214. 281a ActiveEntity.SetMoveSpeed(#0014)
  3215. 281e SetNumWaitFrames(#000a)
  3216. 281f Wait()
  3217. 2823 ActiveEntity.SetMoveSpeed(#001e)
  3218. 2827 SetNumWaitFrames(#0014)
  3219. 2828 Wait()
  3220. 282c ActiveEntity.SetMoveSpeed(#0028)
  3221. 2830 SetNumWaitFrames(#0064)
  3222. 2831 Wait()
  3223. 2835 SetNumWaitFrames(#0064)
  3224. 2836 Wait()
  3225. 283a SetNumWaitFrames(#0064)
  3226. 283b Wait()
  3227. 283f SetNumWaitFrames(#0064)
  3228. 2840 Wait()
  3229. 2844 SetNumWaitFrames(#0014)
  3230. 2845 Wait()
  3231. 284b WRITE Bank0[0380] = #000d
  3232. 284f IF (Bank0[0380]) {
  3233. 2857 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) - #0003))
  3234. 285b SetNumWaitFrames(#000a)
  3235. 285c Wait()
  3236. 2865 WRITE Bank0[0380] = (Bank0[0380] - #0001)
  3237. 2866 GOTO 284c
  3238. }
  3239. 286b SetNumWaitFrames(#0064)
  3240. 286c Wait()
  3241. 2870 Op31f(#0000)
  3242. 2874 SetNumWaitFrames(#0064)
  3243. 2875 Wait()
  3244. 2879 SetNumWaitFrames(#004a)
  3245. 287a Wait()
  3246. 287e ActiveEntity.SetMoveSpeed(#001e)
  3247. 2882 SetNumWaitFrames(#001e)
  3248. 2883 Wait()
  3249. 2887 ActiveEntity.SetMoveSpeed(#0014)
  3250. 288b SetNumWaitFrames(#0041)
  3251. 288c Wait()
  3252. 2890 ActiveEntity.SetMoveSpeed(#0000)
  3253. 2894 SetNumWaitFrames(#001e)
  3254. 2895 Wait()
  3255. 289b WRITE Bank0[0380] = #001a
  3256. 289f IF (Bank0[0380]) {
  3257. 28a7 ActiveEntity.SetDirectionAndFacing((GetSpecial(0004) - #0003))
  3258. 28ab SetNumWaitFrames(#0005)
  3259. 28ac Wait()
  3260. 28b5 WRITE Bank0[0380] = (Bank0[0380] - #0001)
  3261. 28b6 GOTO 289c
  3262. }
  3263. 28bb SetNumWaitFrames(#0014)
  3264. 28bc Wait()
  3265. 28c0 ActiveEntity.SetDirectionAndFacing(#00bf)
  3266. 28c4 SetActiveEntityDirection(#003f)
  3267. 28c8 ActiveEntity.SetMoveSpeed(#0014)
  3268. 28cc SetNumWaitFrames(#0064)
  3269. 28cd Wait()
  3270. 28d1 Op329(#0000)
  3271. 28d5 ActiveEntity.SetMoveSpeed(#0000)
  3272. 28d9 SetNumWaitFrames(#0014)
  3273. 28da Wait()
  3274. 28e0 WRITE Bank0[01cf].Bit(7) = #0000
  3275. 28e6 EnterFieldScene(#0027, #0000)
  3276. 28ea Op319(Bank0[038d])
  3277. }
  3278. }
  3279. 28eb RETURN
  3280. Function 28ec
  3281.  
  3282. Called by:
  3283. System.Function($OnTouchMidgarZolom)
  3284. Addr Code
  3285. 28ef TriggerBattle(SceneId=#01d5)
  3286. 28f5 WRITE Bank0[0384].Bit(0) = #0001
  3287. 28fb WRITE Bank0[0384].Bit(1) = GetSpecial(000b)
  3288. 28fc RETURN
  3289. Function 28fd
  3290.  
  3291. Called by:
  3292. Model($UnknownModel7).Function($OnModelLoad)
  3293. Addr Code
  3294. 2902 ActiveEntity.SetMeshCoordsXZ(#0014, #0011)
  3295. 2908 ActiveEntity.SetCoordsInMeshXZ(#157c, #18b0)
  3296. 290c ActiveEntity.SetDirectionAndFacing(#00c0)
  3297. 290d RETURN
  3298. Function 290e
  3299.  
  3300. Called by:
  3301. Model($UnknownModel20).Function($OnModelLoad)
  3302. Addr Code
  3303. 2913 ActiveEntity.SetMeshCoordsXZ(#0016, #000e)
  3304. 2919 ActiveEntity.SetCoordsInMeshXZ(#124b, #0f1d)
  3305. 291d ActiveEntity.SetDirectionAndFacing(#00fb)
  3306. 2922 ActiveEntity.SetYOffset((-#0064))
  3307. 2923 RETURN
  3308. Function 2924
  3309.  
  3310. Called by:
  3311. Model($UnknownModel12).Function($OnModelLoad)
  3312. Addr Code
  3313. 2929 ActiveEntity.SetMeshCoordsXZ(#0018, #0014)
  3314. 292f ActiveEntity.SetCoordsInMeshXZ(#1a1d, #1621)
  3315. 2933 ActiveEntity.SetDirectionAndFacing(#0000)
  3316. 2934 RETURN
  3317. Function 2935
  3318.  
  3319. Called by:
  3320. Model($UnknownModel14).Function($OnModelLoad)
  3321. Addr Code
  3322. 293a ActiveEntity.SetMeshCoordsXZ(#000e, #0012)
  3323. 2940 ActiveEntity.SetCoordsInMeshXZ(#1738, #17d9)
  3324. 2944 ActiveEntity.SetDirectionAndFacing(#0000)
  3325. 2945 RETURN
  3326. Function 2946
  3327.  
  3328. Called by:
  3329. Model($UnknownModel15).Function($OnModelLoad)
  3330. Addr Code
  3331. 294b ActiveEntity.SetMeshCoordsXZ(#000a, #000e)
  3332. 2951 ActiveEntity.SetCoordsInMeshXZ(#09b2, #1523)
  3333. 2955 ActiveEntity.SetDirectionAndFacing(#0000)
  3334. 2956 RETURN
  3335. Function 2957
  3336.  
  3337. Called by:
  3338. Model($UnknownModel16).Function($OnModelLoad)
  3339. Addr Code
  3340. 295c ActiveEntity.SetMeshCoordsXZ(#000a, #000e)
  3341. 2962 ActiveEntity.SetCoordsInMeshXZ(#098a, #14bf)
  3342. 2966 ActiveEntity.SetDirectionAndFacing(#0000)
  3343. 2967 RETURN
  3344. Function 2968
  3345.  
  3346. Called by:
  3347. Model($UnknownModel24).Function($OnModelLoad)
  3348. Addr Code
  3349. 296d ActiveEntity.SetMeshCoordsXZ(#0010, #0004)
  3350. 2973 ActiveEntity.SetCoordsInMeshXZ(#0001, #1004)
  3351. 2977 ActiveEntity.SetYOffset(#0a5a)
  3352. 2978 RETURN
  3353. Function 2979
  3354.  
  3355. Called by:
  3356. Model($UnknownModel25).Function($OnMovement)
  3357. Addr Code
  3358. 298b IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3359. 2992 EnterFieldScene(#0037, #0000)
  3360. }
  3361. 2993 RETURN
  3362. Function 2994
  3363.  
  3364. Called by:
  3365. Model($UnknownModel25).Function($OnModelLoad)
  3366. Addr Code
  3367. 2999 ActiveEntity.SetMeshCoordsXZ(#000b, #0015)
  3368. 299f ActiveEntity.SetCoordsInMeshXZ(#0b20, #1e13)
  3369. 29a3 ActiveEntity.SetDirectionAndFacing(#0080)
  3370. 29a4 RETURN
  3371. Function 29a5
  3372.  
  3373. Called by:
  3374. Walkmesh(18, 13).FunctionType(0)
  3375. Addr Code
  3376. 29a8 CALL Model(GetSpecial(0008)).Function(000f)
  3377. 29a9 RETURN
  3378. Function 29aa
  3379.  
  3380. Called by:
  3381. Walkmesh(19, 13).FunctionType(0)
  3382. Addr Code
  3383. 29ad CALL Model(GetSpecial(0008)).Function(000f)
  3384. 29ae RETURN
  3385. Function 29af
  3386.  
  3387. Called by:
  3388. Walkmesh(17, 14).FunctionType(0)
  3389. Addr Code
  3390. 29b2 CALL Model(GetSpecial(0008)).Function(000f)
  3391. 29b3 RETURN
  3392. Function 29b4
  3393.  
  3394. Called by:
  3395. Walkmesh(18, 14).FunctionType(0)
  3396. Addr Code
  3397. 29b7 CALL Model(GetSpecial(0008)).Function(000f)
  3398. 29b8 RETURN
  3399. Function 29b9
  3400.  
  3401. Called by:
  3402. Walkmesh(19, 14).FunctionType(0)
  3403. Addr Code
  3404. 29bc CALL Model(GetSpecial(0008)).Function(000f)
  3405. 29bd RETURN
  3406. Function 29be
  3407.  
  3408. Called by:
  3409. Walkmesh(17, 15).FunctionType(0)
  3410. Addr Code
  3411. 29c1 CALL Model(GetSpecial(0008)).Function(000f)
  3412. 29c2 RETURN
  3413. Function 29c3
  3414.  
  3415. Called by:
  3416. Walkmesh(18, 15).FunctionType(0)
  3417. Addr Code
  3418. 29c6 CALL Model(GetSpecial(0008)).Function(000f)
  3419. 29c7 RETURN
  3420. Function 29c8
  3421.  
  3422. Called by:
  3423. Walkmesh(19, 15).FunctionType(0)
  3424. Addr Code
  3425. 29cb CALL Model(GetSpecial(0008)).Function(000f)
  3426. 29cc RETURN
  3427. Function 29cd
  3428.  
  3429. Called by:
  3430. Walkmesh(18, 26).FunctionType(0)
  3431. Addr Code
  3432. 29d2 WRITE Bank0[0384].Bit(4) = #0001
  3433. 29d3 RETURN
  3434. Function 29d4
  3435.  
  3436. Called by:
  3437. Walkmesh(18, 26).FunctionType(1)
  3438. Addr Code
  3439. 29d9 WRITE Bank0[0384].Bit(4) = #0000
  3440. 29da RETURN
  3441. Function 29db
  3442.  
  3443. Called by:
  3444. Walkmesh(18, 26).FunctionType(3)
  3445. Addr Code
  3446. 29df IF ((!Bank0[01cf].Bit(3))) {
  3447. 29f9 IF (((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002)) || (GetSpecial(0008) == #0004))) {
  3448. 2a00 EnterFieldScene(#0020, #0000)
  3449. }
  3450. }
  3451. 2a01 RETURN
  3452. Function 2a02
  3453.  
  3454. Called by:
  3455. Walkmesh(19, 6).FunctionType(3)
  3456. Addr Code
  3457. 2a08 IF ((Bank0_16bit[0000] < #0642)) {
  3458. 2a0d IF (Bank0[01cf].Bit(0)) {
  3459. 2a13 IF ((!Bank0[01cf].Bit(6))) {
  3460. 2a19 IF ((!Bank0[01cf].Bit(5))) {
  3461. 2a33 IF (((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002)) || (GetSpecial(0008) == #0004))) {
  3462. 2a3a EnterFieldScene(#0022, #0000)
  3463. }
  3464. }
  3465. }
  3466. }
  3467. }
  3468. 2a3b RETURN
  3469. Function 2a3c
  3470.  
  3471. Called by:
  3472. Walkmesh(20, 10).FunctionType(0)
  3473. Addr Code
  3474. 2a42 IF ((GetSpecial(0008) == #0006)) {
  3475. 2a48 IF ((!Bank0[01cf].Bit(1))) {
  3476. 2a4d SetControlsEnabled(#0000)
  3477. 2a51 CALL Model($UnknownModel6).Function($UnknownFunc28)
  3478. 2a52 GOTO 2a62
  3479. }
  3480. 2a58 IF ((!Bank0[01cf].Bit(2))) {
  3481. 2a5d SetControlsEnabled(#0000)
  3482. 2a61 CALL Model($UnknownModel6).Function($UnknownFunc28)
  3483. }
  3484. }
  3485. 2a62 RETURN
  3486. Function 2a63
  3487.  
  3488. Called by:
  3489. System.Function($UnknownFunc30)
  3490. Model($UltimateWeaponModel).Function($UnknownFunc30)
  3491. Addr Code
  3492. 2a66 SetControlsEnabled(#0000)
  3493. 2a6b Op33a((-#001e))
  3494. 2a6f SetNumWaitFrames(#001e)
  3495. 2a70 Wait()
  3496. 2a74 Op33a(#0000)
  3497. 2a7a FadeOut(#0010, #0001)
  3498. 2a7e SetNumWaitFrames(#001e)
  3499. 2a7f Wait()
  3500. 2a85 EnterFieldScene(#003b, #0000)
  3501. 2a89 SetControlsEnabled(#0001)
  3502. 2a8a RETURN
  3503. Function 2a8b
  3504.  
  3505. Called by:
  3506. System.Function($UnknownFunc9)
  3507. Addr Code
  3508. 2a91 IF ((Bank0_16bit[0000] >= #0654)) {
  3509. 2a96 CALL Model($UltimateWeaponModel).Function($UnknownFunc28)
  3510. }
  3511. 2a97 RETURN
  3512. Function 2a98
  3513.  
  3514. Called by:
  3515. System.Function($UnknownFunc31)
  3516. Model($TifaModel).Function($UnknownFunc31)
  3517. Addr Code
  3518. 2a9b SetControlsEnabled(#0000)
  3519. 2a9f Op321(#0005)
  3520. 2aa3 ActiveEntity.SetMoveSpeed(#0014)
  3521. 2aa7 IF (GetSpecial(000d)) {
  3522. 2aac SetNumWaitFrames(#0001)
  3523. 2aad Wait()
  3524. 2aae GOTO 2aa4
  3525. }
  3526. 2ab3 ActiveEntity.SetMoveSpeed(#0000)
  3527. 2ab7 SetControlsEnabled(#0001)
  3528. 2ab8 RETURN
  3529. Function 2ab9
  3530.  
  3531. Called by:
  3532. Model($CidModel).Function($UnknownFunc31)
  3533. Addr Code
  3534. 2abc SetControlsEnabled(#0000)
  3535. 2ac0 Op321(#0005)
  3536. 2ac4 ActiveEntity.SetMoveSpeed(#0014)
  3537. 2ac8 IF (GetSpecial(000d)) {
  3538. 2acd SetNumWaitFrames(#0001)
  3539. 2ace Wait()
  3540. 2acf GOTO 2ac5
  3541. }
  3542. 2ad4 ActiveEntity.SetMoveSpeed(#0000)
  3543. 2ad8 SetControlsEnabled(#0001)
  3544. 2ad9 RETURN
  3545. Function 2ada
  3546.  
  3547. Called by:
  3548. Walkmesh(14, 22).FunctionType(4)
  3549. Addr Code
  3550. 2aec IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3551. 2af3 EnterFieldScene(#0001, #0000)
  3552. }
  3553. 2af4 RETURN
  3554. Function 2af5
  3555.  
  3556. Called by:
  3557. Walkmesh(13, 24).FunctionType(4)
  3558. Addr Code
  3559. 2b07 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3560. 2b0e EnterFieldScene(#0002, #0000)
  3561. }
  3562. 2b0f RETURN
  3563. Function 2b10
  3564.  
  3565. Called by:
  3566. Walkmesh(16, 29).FunctionType(4)
  3567. Addr Code
  3568. 2b22 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3569. 2b27 IF (Bank0[007d].Bit(0)) {
  3570. 2b2e EnterFieldScene(#0003, #0001)
  3571. 2b2f GOTO 2b37
  3572. }
  3573. 2b36 EnterFieldScene(#0003, #0000)
  3574. 2b37 GOTO 2b84
  3575. }
  3576. 2b3f IF ((GetSpecial(0008) == #0013)) {
  3577. 2b46 WRITE Bank0[007e].Bit(0) = #0000
  3578. 2b4c WRITE Bank0[007e].Bit(2) = #0000
  3579. 2b52 WRITE Bank0[007e].Bit(3) = #0000
  3580. 2b58 WRITE Bank0[007e].Bit(4) = #0000
  3581. 2b5e WRITE Bank0[007e].Bit(5) = #0000
  3582. 2b64 WRITE Bank0[007e].Bit(6) = #0000
  3583. 2b6a WRITE Bank0[007e].Bit(1) = #0000
  3584. 2b70 WRITE Bank0[007c] = #0000
  3585. 2b74 IF (Bank0[007d].Bit(0)) {
  3586. 2b7b EnterFieldScene(#0003, #0001)
  3587. 2b7c GOTO 2b84
  3588. }
  3589. 2b83 EnterFieldScene(#0003, #0000)
  3590. }
  3591. 2b84 RETURN
  3592. Function 2b85
  3593.  
  3594. Called by:
  3595. Walkmesh(18, 26).FunctionType(4)
  3596. Addr Code
  3597. 2b97 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3598. 2b9e EnterFieldScene(#0004, #0000)
  3599. }
  3600. 2b9f RETURN
  3601. Function 2ba0
  3602.  
  3603. Called by:
  3604. Walkmesh(19, 25).FunctionType(4)
  3605. Addr Code
  3606. 2bb2 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3607. 2bb9 EnterFieldScene(#0005, #0000)
  3608. }
  3609. 2bba RETURN
  3610. Function 2bbb
  3611.  
  3612. Called by:
  3613. Walkmesh(20, 24).FunctionType(4)
  3614. Addr Code
  3615. 2bcd IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3616. 2bd4 EnterFieldScene(#0006, #0000)
  3617. }
  3618. 2bd5 RETURN
  3619. Function 2bd6
  3620.  
  3621. Called by:
  3622. Walkmesh(17, 20).FunctionType(4)
  3623. Addr Code
  3624. 2bee IF (((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002)) || (GetSpecial(0008) == #0006))) {
  3625. 2bf5 EnterFieldScene(#0007, #0000)
  3626. }
  3627. 2bf6 RETURN
  3628. Function 2bf7
  3629.  
  3630. Called by:
  3631. Walkmesh(22, 20).FunctionType(4)
  3632. Addr Code
  3633. 2c09 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3634. 2c10 EnterFieldScene(#0008, #0000)
  3635. }
  3636. 2c11 RETURN
  3637. Function 2c12
  3638.  
  3639. Called by:
  3640. Walkmesh(16, 24).FunctionType(4)
  3641. Addr Code
  3642. 2c24 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3643. 2c2b EnterFieldScene(#0009, #0000)
  3644. }
  3645. 2c2c RETURN
  3646. Function 2c2d
  3647.  
  3648. Called by:
  3649. Walkmesh(21, 15).FunctionType(4)
  3650. Addr Code
  3651. 2c3f IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3652. 2c46 EnterFieldScene(#000a, #0000)
  3653. }
  3654. 2c47 RETURN
  3655. Function 2c48
  3656.  
  3657. Called by:
  3658. Walkmesh(24, 26).FunctionType(4)
  3659. Addr Code
  3660. 2c5a IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3661. 2c62 IF ((Bank0_16bit[0000] >= #04ad)) {
  3662. 2c69 EnterFieldScene(#000b, #0001)
  3663. 2c6a GOTO 2c72
  3664. }
  3665. 2c71 EnterFieldScene(#000b, #0000)
  3666. }
  3667. 2c72 RETURN
  3668. Function 2c73
  3669.  
  3670. Called by:
  3671. Walkmesh(17, 33).FunctionType(4)
  3672. Addr Code
  3673. 2c85 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3674. 2c8c EnterFieldScene(#000c, #0000)
  3675. }
  3676. 2c8d RETURN
  3677. Function 2c8e
  3678.  
  3679. Called by:
  3680. Walkmesh(15, 17).FunctionType(4)
  3681. Addr Code
  3682. 2ca6 IF (((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002)) || (GetSpecial(0008) == #0006))) {
  3683. 2cad EnterFieldScene(#000d, #0000)
  3684. }
  3685. 2cae RETURN
  3686. Function 2caf
  3687.  
  3688. Called by:
  3689. Walkmesh(14, 13).FunctionType(4)
  3690. Addr Code
  3691. 2cc1 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3692. 2cc8 EnterFieldScene(#000e, #0000)
  3693. }
  3694. 2cc9 RETURN
  3695. Function 2cca
  3696.  
  3697. Called by:
  3698. Walkmesh(15, 13).FunctionType(4)
  3699. Addr Code
  3700. 2cdc IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3701. 2ce1 IF (Bank0[0491].Bit(2)) {
  3702. 2ce8 EnterFieldScene(#000f, #0001)
  3703. 2ce9 GOTO 2cf1
  3704. }
  3705. 2cf0 EnterFieldScene(#000f, #0000)
  3706. }
  3707. 2cf1 RETURN
  3708. Function 2cf2
  3709.  
  3710. Called by:
  3711. Walkmesh(18, 14).FunctionType(4)
  3712. Addr Code
  3713. 2cf8 IF ((GetSpecial(0008) == #0006)) {
  3714. 2cff EnterFieldScene(#0010, #0000)
  3715. }
  3716. 2d00 RETURN
  3717. Function 2d01
  3718.  
  3719. Called by:
  3720. Walkmesh(22, 13).FunctionType(4)
  3721. Addr Code
  3722. 2d13 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3723. 2d1a EnterFieldScene(#0011, #0000)
  3724. }
  3725. 2d1b RETURN
  3726. Function 2d1c
  3727.  
  3728. Called by:
  3729. Walkmesh(20, 10).FunctionType(4)
  3730. Addr Code
  3731. 2d2e IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3732. 2d35 EnterFieldScene(#0012, #0000)
  3733. }
  3734. 2d36 RETURN
  3735. Function 2d37
  3736.  
  3737. Called by:
  3738. Walkmesh(16, 11).FunctionType(4)
  3739. Addr Code
  3740. 2d49 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3741. 2d50 EnterFieldScene(#0013, #0000)
  3742. }
  3743. 2d51 RETURN
  3744. Function 2d52
  3745.  
  3746. Called by:
  3747. Walkmesh(14, 10).FunctionType(4)
  3748. Addr Code
  3749. 2d64 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3750. 2d6c IF ((Bank0_16bit[0000] >= #051c)) {
  3751. 2d73 EnterFieldScene(#0014, #0001)
  3752. 2d74 GOTO 2d7c
  3753. }
  3754. 2d7b EnterFieldScene(#0014, #0000)
  3755. }
  3756. 2d7c RETURN
  3757. Function 2d7d
  3758.  
  3759. Called by:
  3760. Walkmesh(17, 12).FunctionType(4)
  3761. Addr Code
  3762. 2d8f IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3763. 2d96 EnterFieldScene(#0015, #0000)
  3764. }
  3765. 2d97 RETURN
  3766. Function 2d98
  3767.  
  3768. Called by:
  3769. Walkmesh(13, 14).FunctionType(4)
  3770. Addr Code
  3771. 2daa IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3772. 2db1 EnterFieldScene(#0016, #0000)
  3773. }
  3774. 2db2 RETURN
  3775. Function 2db3
  3776.  
  3777. Called by:
  3778. Walkmesh(10, 4).FunctionType(4)
  3779. Addr Code
  3780. 2dc5 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3781. 2dcd IF ((Bank0_16bit[0000] < #0642)) {
  3782. 2dd2 IF (Bank0[01cf].Bit(0)) {
  3783. 2dd8 IF ((!Bank0[01cf].Bit(6))) {
  3784. 2dde IF ((!Bank0[01cf].Bit(5))) {
  3785. 2de5 EnterFieldScene(#0017, #0001)
  3786. 2de6 GOTO 2dee
  3787. }
  3788. 2ded EnterFieldScene(#0017, #0000)
  3789. 2dee GOTO 2df6
  3790. }
  3791. 2df5 EnterFieldScene(#0017, #0000)
  3792. 2df6 GOTO 2dfe
  3793. }
  3794. 2dfd EnterFieldScene(#0017, #0000)
  3795. 2dfe GOTO 2e06
  3796. }
  3797. 2e05 EnterFieldScene(#0017, #0000)
  3798. }
  3799. 2e06 RETURN
  3800. Function 2e07
  3801.  
  3802. Called by:
  3803. Walkmesh(15, 6).FunctionType(4)
  3804. Addr Code
  3805. 2e19 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3806. 2e20 EnterFieldScene(#0018, #0000)
  3807. }
  3808. 2e21 RETURN
  3809. Function 2e22
  3810.  
  3811. Called by:
  3812. Walkmesh(10, 19).FunctionType(4)
  3813. Addr Code
  3814. 2e34 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3815. 2e3b EnterFieldScene(#0019, #0000)
  3816. }
  3817. 2e3c RETURN
  3818. Function 2e3d
  3819.  
  3820. Called by:
  3821. Walkmesh(8, 19).FunctionType(4)
  3822. Addr Code
  3823. 2e4f IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3824. 2e56 EnterFieldScene(#001a, #0000)
  3825. }
  3826. 2e57 RETURN
  3827. Function 2e58
  3828.  
  3829. Called by:
  3830. Walkmesh(8, 15).FunctionType(4)
  3831. Addr Code
  3832. 2e6a IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3833. 2e71 EnterFieldScene(#001b, #0000)
  3834. }
  3835. 2e72 RETURN
  3836. Function 2e73
  3837.  
  3838. Called by:
  3839. Walkmesh(8, 17).FunctionType(4)
  3840. Addr Code
  3841. 2e85 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3842. 2e8c EnterFieldScene(#001c, #0000)
  3843. }
  3844. 2e8d RETURN
  3845. Function 2e8e
  3846.  
  3847. Called by:
  3848. Walkmesh(1, 32).FunctionType(4)
  3849. Addr Code
  3850. 2ea0 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3851. 2ea7 EnterFieldScene(#001d, #0000)
  3852. }
  3853. 2ea8 RETURN
  3854. Function 2ea9
  3855.  
  3856. Called by:
  3857. Walkmesh(16, 11).FunctionType(3)
  3858. Addr Code
  3859. 2ebb IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3860. 2ec2 EnterFieldScene(#002b, #0000)
  3861. }
  3862. 2ec3 RETURN
  3863. Function 2ec4
  3864.  
  3865. Called by:
  3866. Walkmesh(15, 11).FunctionType(4)
  3867. Addr Code
  3868. 2ed6 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3869. 2edd EnterFieldScene(#002c, #0000)
  3870. }
  3871. 2ede RETURN
  3872. Function 2edf
  3873.  
  3874. Called by:
  3875. Walkmesh(16, 10).FunctionType(4)
  3876. Addr Code
  3877. 2ef1 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3878. 2ef8 EnterFieldScene(#002e, #0000)
  3879. }
  3880. 2ef9 RETURN
  3881. Function 2efa
  3882.  
  3883. Called by:
  3884. Walkmesh(8, 15).FunctionType(3)
  3885. Addr Code
  3886. 2f00 IF ((GetSpecial(0008) == #0000)) {
  3887. 2f07 EnterFieldScene(#002f, #0000)
  3888. 2f08 GOTO 2f1c
  3889. }
  3890. 2f16 IF (((GetSpecial(0008) == #0001) || (GetSpecial(0008) == #0002))) {
  3891. 2f1b CALL Model(GetSpecial(0008)).Function(001f)
  3892. }
  3893. 2f1c RETURN
  3894. Function 2f1d
  3895.  
  3896. Called by:
  3897. Walkmesh(6, 16).FunctionType(4)
  3898. Addr Code
  3899. 2f23 IF ((GetSpecial(0008) == #0000)) {
  3900. 2f2a EnterFieldScene(#0030, #0000)
  3901. }
  3902. 2f2b RETURN
  3903. Function 2f2c
  3904.  
  3905. Called by:
  3906. Walkmesh(10, 19).FunctionType(3)
  3907. Addr Code
  3908. 2f3e IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3909. 2f45 EnterFieldScene(#0039, #0000)
  3910. }
  3911. 2f46 RETURN
  3912. Function 2f47
  3913.  
  3914. Called by:
  3915. Walkmesh(9, 19).FunctionType(4)
  3916. Addr Code
  3917. 2f59 IF ((((GetSpecial(0008) == #0000) || (GetSpecial(0008) == #0001)) || (GetSpecial(0008) == #0002))) {
  3918. 2f60 EnterFieldScene(#003a, #0000)
  3919. }
  3920. 2f61 RETURN
  3921. Function 2f62
  3922.  
  3923. Called by:
  3924. Model($UnknownModel29).Function($UnknownFunc28)
  3925. Addr Code
  3926. 2f65 SetControlsEnabled(#0000)
  3927. 2f69 Op31c(#0001)
  3928. 2f6d CALL Model(GetSpecial(0008)).Function(0017)
  3929. 2f6e Op334()
  3930. 2f6f WaitForWindowReady()
  3931. 2f79 SetWindowDimensions(#0080, #00a0, #0040, #0019)
  3932. 2f7f SetWindowParams(#0000, #0000)
  3933. 2f80 WaitForWindowReady()
  3934. 2f84 SetWindowMessage(#0022)
  3935. 2f85 WaitForMessageAcknowledge()
  3936. 2f89 SetCameraShakingEnabled(#0001)
  3937. 2f8f Op333(GetSpecial(0008), #0000)
  3938. 2f93 PlaySoundEffect(#017f)
  3939. 2f97 Op31f(#001e)
  3940. 2f9e IF ((GetSpecial(0008) == #0003)) {
  3941. 2fa3 SetNumWaitFrames(#0019)
  3942. 2fa4 Wait()
  3943. 2fa5 GOTO 2fb4
  3944. }
  3945. 2fad IF ((GetSpecial(0008) == #0013)) {
  3946. 2fb2 SetNumWaitFrames(#000f)
  3947. 2fb3 Wait()
  3948. }
  3949. 2fb7 Op31f(#0000)
  3950. 2fbb SetNumWaitFrames(#0019)
  3951. 2fbc Wait()
  3952. 2fc4 Op3fd(#0001, #0006, #000a)
  3953. 2fca ActiveEntity.PlayAnimation(#0002, #0000)
  3954. 2fce PlaySoundEffect(#01b1)
  3955. 2fd2 SetNumWaitFrames(#003c)
  3956. 2fd3 Wait()
  3957. 2fd7 Op3fe(#0001)
  3958. 2fdb Op34a(#0006)
  3959. 2fdf SetCameraShakingEnabled(#0000)
  3960. 2fe5 ActiveEntity.PlayAnimation(#0000, #0001)
  3961. 2fe9 SetNumWaitFrames(#0028)
  3962. 2fea Wait()
  3963. 2ff0 WRITE Bank0[0387].Bit(5) = #0001
  3964. 2ff4 TriggerBattle(SceneId=#03d6)
  3965. 2ff8 Op31c(#0000)
  3966. 2ff9 RETURN
  3967. Function 2ffa
  3968.  
  3969. Called by:
  3970. Model($UnknownModel29).Function($OnFrameTick)
  3971. Addr Code
  3972. 3001 IF ((ActiveEntity.GetDistanceToModel(GetSpecial(0008)) >= #07d0)) {
  3973. 3008 WRITE Bank0[0387].Bit(5) = #0000
  3974. 300e ActiveEntity.PlayAnimation(#0001, #0001)
  3975. }
  3976. 301b IF (((GetSpecial(0008) == #0003) || (GetSpecial(0008) == #0013))) {
  3977. 3020 IF (Bank0[0387].Bit(5)) {
  3978. 3028 IF ((GetSpecial(0008) == #0003)) {
  3979. 3031 IF ((ActiveEntity.GetDistanceToModel(GetSpecial(0008)) <= #0064)) {
  3980. 3036 SetControlsEnabled(#0000)
  3981. 303c Op333(GetSpecial(0008), #0000)
  3982. 3040 Op34a(#0006)
  3983. 3044 CALL Model(GetSpecial(0008)).Function(0018)
  3984. 3045 Op334()
  3985. 3049 SetNumWaitFrames(#0014)
  3986. 304a Wait()
  3987. 304e TriggerBattle(SceneId=#03d6)
  3988. }
  3989. 304f GOTO 307e
  3990. }
  3991. 3057 IF ((GetSpecial(0008) == #0013)) {
  3992. 3060 IF ((ActiveEntity.GetDistanceToModel(GetSpecial(0008)) <= #0050)) {
  3993. 3065 SetControlsEnabled(#0000)
  3994. 306b Op333(GetSpecial(0008), #0000)
  3995. 306f Op34a(#0006)
  3996. 3073 CALL Model(GetSpecial(0008)).Function(0018)
  3997. 3074 Op334()
  3998. 3078 SetNumWaitFrames(#0014)
  3999. 3079 Wait()
  4000. 307d TriggerBattle(SceneId=#03d6)
  4001. }
  4002. }
  4003. 307e GOTO 308d
  4004. }
  4005. 3087 IF ((ActiveEntity.GetDistanceToModel(GetSpecial(0008)) <= #0082)) {
  4006. 308c CALL Model($UnknownModel29).Function($UnknownFunc28)
  4007. }
  4008. }
  4009. 308d RETURN
  4010. Function 308e
  4011.  
  4012. Called by:
  4013. Model($UnknownModel29).Function($OnModelLoad)
  4014. Addr Code
  4015. 3099 WRITE Bank0[0396] = ((GetSpecial(0010) * #0003) >> #0008)
  4016. 30a0 IF ((Bank0[0396] == #0000)) {
  4017. 30a7 ActiveEntity.SetMeshCoordsXZ(#000e, #0013)
  4018. 30ad ActiveEntity.SetCoordsInMeshXZ(#0cc2, #0721)
  4019. 30ae GOTO 30da
  4020. }
  4021. 30b6 IF ((Bank0[0396] == #0001)) {
  4022. 30bd ActiveEntity.SetMeshCoordsXZ(#000f, #0013)
  4023. 30c3 ActiveEntity.SetCoordsInMeshXZ(#00c5, #012f)
  4024. 30c4 GOTO 30da
  4025. }
  4026. 30cc IF ((Bank0[0396] == #0002)) {
  4027. 30d3 ActiveEntity.SetMeshCoordsXZ(#000e, #0012)
  4028. 30d9 ActiveEntity.SetCoordsInMeshXZ(#16c6, #057a)
  4029. }
  4030. 30dd IF (Bank0[0387].Bit(5)) {
  4031. 30e4 ActiveEntity.PlayAnimation(#0000, #0001)
  4032. 30e5 GOTO 30ed
  4033. }
  4034. 30ec ActiveEntity.PlayAnimation(#0001, #0001)
  4035. 30ed RETURN
  4036. Function 30ee
  4037.  
  4038. Addr Code
  4039. 30ee RETURN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement