Guest User

Untitled

a guest
Jan 31st, 2016
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 249.58 KB | None | 0 0
  1. Dragon Warrior III item glitch TAS route notes
  2. ==============================================
  3.  
  4. | RNG ctr |
  5. Location |Start| End | Notes
  6. ------------------+-----+-----+-----------------------------------------
  7. Hero's home 2F | 25 | 27 | 13 steps
  8. Aliahan | 28 | 36 | 14 steps straight up
  9. Aliahan Castle 1F | 37 | 55 | 20 steps straight up
  10. Aliahan Castle 2F | 56 | 64 | 16 steps up, 16 steps dn
  11. Aliahan Castle 1F | 65 | 82 | 20 steps straight down
  12. Aliahan | 83 | 118 | 26 steps to item shop; 28 to Luisa 2F
  13. Luisa's Place 2F | 119 | 120 | 11 steps to registration counter
  14. Luisa's Place 2F | 136 | 138 | 11 steps back after registering 2 chars
  15. Aliahan | 139 | 159 | 5 steps to Luisa, checksum, 25 steps out
  16. Overworld | 160 | 220 | First step battle with 1 Slime
  17. Aliahan | 221 | 238 |
  18. Reset | --- | --- |
  19. Aliahan Castle 2F | 2 | 3 | Formation change, then immediate Wing
  20. Overworld | 4 | 59 | 33 steps to hidden entrance; wait for
  21. | | | 5*64 frames after 14 steps to avoid
  22. | | | encounter
  23. Najima Hidden Entr| 60 | 60 | 9 steps; no enemies or NPCs
  24. Najima Tunnel | 61 | 124 | 63 steps
  25. Najima Tower 1F | 125 | 172 | 35 steps; 12 doublecounts due to low
  26. | | | encounter rate
  27. Najima Tower 2F | 173 | 225 | 52 steps
  28. Najima Tower 3F | 226 | 18 | 48 steps
  29. Najima Tower 4F | 19 | 19 | 24 steps; no enemies or random NPCs
  30. Overworld | 20 | 87 | Immediate Wing, heal, then 39 steps
  31. Reeve | 88 | 96 | 7 steps to item shop; 20 to door; 7 to
  32. | | | stairs
  33. Reeve house 2F | 97 | 97 | 2+2 steps; no NPC randomness
  34. Reeve | 98 | 108 | 23 steps to weapon shop; 11 steps out
  35. Overworld | 109 | 189 | 56 steps
  36. Romaly Tunnel 1F | 190 | 190 | No randomness
  37. Romaly Tunnel B1 | 191 | 191 | No randomness
  38. Romaly Tunnel B2 | 192 | 163 | 156 steps; after 84 steps (20 steps into
  39. | | | long vertical corridor), use Heal and
  40. | | | 2 extra steps to avoid an encounter;
  41. | | | many doublecounts
  42. Romaly Tunnel B3 | 164 | 207 | 43 steps
  43. Romaly Shrine B1 | 208 | 208 | No randomness
  44. Romaly Shrine 1F | 209 | 209 | No randomness
  45. Overworld | 210 | 85 | 71+2 steps; Heal+herb after 44, wait 80
  46. | | | frames & take 2 extra steps in forest
  47. | | | to avoid encounter
  48. Kanave | 87 | 87 | No randomness at night
  49. Overworld | 88 | 23 | Walk around SE mountains, stop once
  50. | | | before each of the last two steps
  51. Killer Bee battle | 23 | 131 | See turn list below
  52. Overworld | 132 | 132 | Walk straight into town
  53. Aliahan | 133 | 176 | 23 steps to Luisa; careful not to cure
  54. | | | numbness
  55. Luisa's Place | --- | --- | Item glitch, reset for Metal Babbles
  56. Aliahan | 2 | 4 | Transfer/equip stuff; Wing to Rimuldar
  57. Alefgard | 5 | 35 | 30 steps around Rimuldar until battle
  58. Metal Babbles | 35 | --- | See turn list below
  59. Alefgard | --- | --- | Straight into Rimuldar
  60. Rimuldar | --- | --- | Shop, inn, Return->Aliahan, save/reset
  61. Aliahan | 2 | 4 | Transfer/equip stuff; Return->Rimuldar
  62. Alefgard | 5 | 211 | 103+24 steps; 2x Heal after 16 steps to
  63. | | | avoid encounter; extra 24 steps in
  64. | | | Charlock swamp to advance counter
  65. Charlock 1F | 212 | 187 | 135+4 steps; 3xHeal, 1xWizRing, 4xHeal
  66. | | | after 61 steps to avoid encounter and
  67. | | | advance RNG counter; 4 extra steps in
  68. | | | front of Titan door
  69. Granite Titans 1 | 187 | 216 | 1x Heal after battle
  70. Granite Titans 2 | 227 | 76 | 2x WizRing, 2x Heal after battle
  71. Granite Titans 3 | 145 | 108 |
  72. Charlock 1F | 109 | 129 | 20 steps
  73. Charlock B1 | 130 | 132 | 2 steps
  74. Charlock B2 | 133 | 185 | 44 steps; 8 overcounts
  75. Charlock B3 | 186 | 21 | 90 steps
  76. Charlock B3 heals | 21 | 163 | 8x Heal, 2x WizRing 4/2 tiles E/S of up
  77. | | | stairs
  78. Charlock B3 | 163 | 193 | 31 steps; 4-step circle before stairs
  79. Charlock B4 | 194 | 242 | 48 steps
  80. Ortega/Hydra | 242 | 130 |
  81. Charlock B4 | 131 | 253 | 104+4 steps; 4-step circle and 1x Heal
  82. | | | before stairs
  83. Charlock B5 | 254 | 254 | No randomness
  84. King Hydra | 254 | 34 | 5x WizRing after battle (2x[P2], 3x[P1])
  85. Baramos Bomus | 125 | 32 | 2x Heal after battle
  86. Baramos Gonus | 51 | 234 | 2x Heal, 1x WizRing after battle
  87. Zoma | 254 | win |
  88. The End | wht | evr |
  89.  
  90. ------------------------------------------------------------------------
  91.  
  92. Notes:
  93. - Save slot 3 must be file #3 and be empty to get the correct data for
  94. created files.
  95. - The battle RNG counter ($6A68) must be 0 when starting.
  96.  
  97. Menu
  98. ----
  99. Create file 1 as name R, sex Male, speed 8.
  100.  
  101. Aliahan
  102. -------
  103. Buy 2 Wings of Wyvern at the item shop. Create 1 Pilgrim (E/Male) and
  104. 1 Wizard (O/Male) at Luisa 2F, then take out the pregenerated Soldier
  105. and the two new characters.
  106.  
  107. Overworld
  108. ---------
  109. Get into an encounter, which will be a single Slime on the first step
  110. away from the castle, and kill off the two new characters.
  111.  
  112. Turn 1: Hr -> Pr, Sr -> Wz, Pr -> parry, Wz -> parry
  113. Turn 2: Hr -> Pr, Sr -> Wz, Pr -> Pr, Wz -> Wz
  114. Turn 3: Run
  115.  
  116. This leaves the battle RNG counter at $7.
  117.  
  118. Aliahan
  119. -------
  120. Swap out the two new characters for the two remaining pregenerated
  121. characters, Wizard first. Reset (can reset as soon as the "You're
  122. adding..." message starts appearing).
  123.  
  124. Menu
  125. ----
  126. Create file 2 as E?/Female/5. Reset again, set the message speed on
  127. file 2 to 5 (to put the RNG in a broken state), and load file 1.
  128.  
  129. Aliahan
  130. -------
  131. Set party order to Hr/Wz/Sr/Pr (swap characters 2 and 3), then Wing out.
  132.  
  133. Overworld
  134. ---------
  135. Walk to the hidden entrance to the Najima tunnel. When the 4th party
  136. member reaches the bridge, wait for 20 steps (5*64 frames) to get past
  137. the encounter.
  138.  
  139. Najima
  140. ------
  141. Walk through.
  142.  
  143. Overworld
  144. ---------
  145. Wing to Aliahan, immediately use Heal to get past an encounter, then
  146. walk to Reeve.
  147.  
  148. Reeve
  149. -----
  150. Sell: [Sr] Leather Armor, [Pr] Club
  151. Buy: [Hr] Herb x 2, [Wz] Wing
  152. Get the Magic Ball from the guy in the NE house.
  153. Buy at weapon shop: [Pr] Leather Helmet
  154. Leave to the east.
  155.  
  156. Overworld
  157. ---------
  158. Walk to the lake.
  159.  
  160. Romaly Tunnel
  161. -------------
  162. Walk through. Heal needed 20 steps down the long vertical corridor on
  163. B2 to avoid an encounter. Also need to take 2 extra steps and exit out
  164. the top tile of the long vertical corridor to avoid an encounter on room
  165. change.
  166.  
  167. Overworld
  168. ---------
  169. Walk E, then N. Follow the grassy area as far as possible, then go 3
  170. steps north into the forest; use Heal and 1 herb and wait 5 steps (80
  171. frames), then take 2 extra steps in the forest in order to avoid an
  172. encounter in the hills. Proceed NE and enter Kanave.
  173.  
  174. Kanave
  175. ------
  176. Get the Poison Needle from the shop (top chest), then walk out the E
  177. side of the map.
  178.  
  179. Overworld
  180. ---------
  181. Take 125 steps, then pause once, step, pause once, and step again to
  182. enter the correct battle.
  183.  
  184. Killer Bee battle (see appendix below for details)
  185. -----------------
  186. Turn 1:
  187. Hero: Parry+Fight any enemy
  188. Wizard: Parry
  189. Soldier: Parry (will be numbed)
  190. Pilgrim: Parry
  191. Turn 2:
  192. Hero: Parry (will be killed, but needs to take 2 attacks)
  193. Wizard: Wing
  194. Pilgrim: Parry (will be killed)
  195. Battle ends with the battle seed at $D.
  196.  
  197. Overworld
  198. ---------
  199. Walk straight into Aliahan. Do not pass Go, do not collect 200G.
  200.  
  201. Aliahan
  202. -------
  203. Walk up to Luisa's Place. To avoid curing numbness, stop for 2 steps
  204. (32 frames) 1 tile above the level of the Vault NPC; after that, walk
  205. straight to Luisa without stopping. Return the Wizard and Soldier (in
  206. that order), then take out the two dead characters (Pilgrim first) to
  207. get a dead party.
  208.  
  209. Dream Ruby glitch
  210. -----------------
  211. Note: [P1] = pregenerated Pilgrim, [P2] = single-letter-name Pilgrim
  212. Item manip:
  213. - Black Raven ($7E) x 2 <- [Wz] Cypress Stick ($00) [1 step]
  214. - Rainbow Drop ($76) <- [Wz] Black Raven ($7E) [4 steps]
  215. - Sphere of Light ($72) <- [Hr] Copper Sword ($02) [8 steps]
  216. - Sword of Kings ($1C) <- [Hr] Leather Armor ($22) [3 steps]
  217. - Shield of Heroes ($3B) <- [P1] Leather Helmet ($45) [5 steps]
  218. - Armor of Radiance ($28) <- [P1] Wayfarer's Clothes ($30) [4 steps]
  219. - Water Flying Cloth ($2E) <- [P2] Wayfarer's Clothes ($30) [1 step]
  220. - Wizard's Ring ($4E) <- [Hr] Thief's Key ($58) [5 steps]
  221. - Final Key ($5A) <- [Hr] Medical Herb ($65) [underflow + 5 steps]
  222. Return list manip: char 3
  223. Spell manip: char 2 x 2
  224. Timing notes:
  225. - For $34, unless otherwise noted, trigger damage 4 frames after the
  226. note starts. If making 5 moves, $30 will be triggered on the 4th.
  227. If making 4 moves, wait 16 frames after the 3rd to avoid triggering
  228. $30. In either case, wait 2*16 frames before taking the first step
  229. for $3C.
  230. What to do:
  231. - While in Aliahan:
  232. - Equip [Wz]: unequip Cypress Stick
  233. - Leave Aliahan:
  234. - Transfer [P2] Club -> [Hr]
  235. - Glitch $1E: Return list
  236. - Drop [Wz] Clothes
  237. - Glitch $34: [P1] Wayfarer's Clothes -> Water Flying Cloth (hit 8 frames after note starts)
  238. - Glitch $34: [P1] Water Flying Cloth -> Sacred Robe
  239. - Glitch $34: [P1] Sacred Robe -> Animal Suit (wait 1*16 frames before moving)
  240. - Glitch $34: [P1] Animal Suit -> Armor of Radiance
  241. - Glitch $38: [P2] Wayfarer's Clothes -> Water Flying Cloth
  242. - Glitch $3C: [Wz] Cypress Stick -> Black Raven x 2, [Hr] Copper Sword -> Cypress Stick
  243. - Glitch $3C: [Wz] Black Raven -> Green Orb
  244. - Glitch $3C: [Wz] Green Orb -> Purple Orb
  245. - Glitch $47: [P1] spell page 3 (wait 5*16 frames)
  246. - Enter and leave Aliahan:
  247. - Transfer [Hr] Cypress Stick -> [P2]
  248. - Transfer [P1] Armor of Radiance -> [Hr]
  249. - Glitch $34: [P1] Leather Helmet -> Turban
  250. - Glitch $34: [P1] Turban -> Mysterious Hat
  251. - Glitch $34: [P1] Mysterious Hat -> Golden Crown
  252. - Glitch $34: [P1] Golden Crown -> Bronze Shield, [Hr] Leather Armor -> Clothes
  253. - Glitch $34: [P1] Bronze Shield -> Shield of Heroes
  254. - Glitch $3C: [Wz] Purple Orb -> Red Orb
  255. - Glitch $3C: [Wz] Red Orb -> Rainbow Drop, [Hr] max MP -2
  256. - Enter Aliahan:
  257. - Set formation: Hr, P2, P1, Wz
  258. - Transfer [Hr] Thief's Key -> [Wz]
  259. - Transfer [Hr] Medical Herb -> [P2]
  260. - Leave Aliahan:
  261. - Transfer [P2] Water Flying Cloth -> [Wz]
  262. - Transfer [Wz] Rainbow Drop -> [Hr]
  263. - Glitch $34: [P2] Cypress Stick -> Black Raven, Medical Herb -> Acorns of Life
  264. - Glitch $34: [P2] Black Raven -> Green Orb
  265. - Enter and leave Aliahan:
  266. - Transfer [Wz] Black Raven -> [P2]
  267. - Transfer [Hr] Poison Needle -> [Wz]
  268. - Glitch $34: [P2] Green Orb -> Purple Orb
  269. - Glitch $34: [P2] Purple Orb -> Red Orb
  270. - Glitch $34: [P2] Red Orb -> Rainbow Drop
  271. - Glitch $34: [P2] Rainbow Drop -> Spider's Web, [Hr] Clothes -> Dragon Killer
  272. - Glitch $34: [P2] Spider's Web -> Sphere of Light
  273. - Glitch $3C: [Wz] Thief's Key -> Invisibility Herb
  274. - Glitch $3C: [Wz] Invisibility Herb -> Staff of Change, [Hr] max MP -2
  275. - Glitch $3C: [Wz] Staff of Change -> Vase of Drought
  276. - Glitch $47: [P2] spell page 3 (wait 4*16 frames)
  277. - Enter and leave Aliahan:
  278. - Transfer [Hr] Club -> [P1]
  279. - Transfer [P2] Sphere of Light -> [Hr]
  280. - Glitch $34: [P2] Acorns of Life -> Luck Seed
  281. - Glitch $34: [P2] Luck Seed -> Agility Seed
  282. - Glitch $34: [P2] Agility Seed -> Oricon
  283. - Glitch $34: [P2] Oricon -> Wake-Up Powder, [Hr] Dragon Killer -> Sword of Kings
  284. - Glitch $34: [P2] Wake-Up Powder -> Final Key
  285. - Glitch $3C: [Wz] Vase of Drought -> Sage's Stone
  286. - Glitch $3C: [Wz] Sage's Stone -> Wizard's Ring (wait 2*16 frames to avoid max HP loss)
  287. - Wait 1*16 frames to avoid guy in church getting in our way later
  288. - Enter Aliahan:
  289. - Sell [P2] Black Raven
  290. - Buy [P2] Wing of Wyvern
  291. - Buy [P2] Herb x 2
  292. - Buy [P1] Herb x 2
  293. - Buy [Wz] Herb x 2
  294. - Revive party members
  295. - Save at Luisa's
  296.  
  297. Reset
  298. -----
  299. Create file 3 as ypp/Female/3. Reset again, set the message speed on file
  300. 3 to 1 (to set our desired RNG seed), and load file 1.
  301.  
  302. Aliahan
  303. -------
  304. (*) From here on down, [P1] is first pilgrim in party order (former [P2])
  305. and vice versa.
  306. Transfer [P2] Shield of Heroes -> [Hr]
  307. Equip [P2], [Wz]
  308. [P1] Wing -> Rimuldar
  309.  
  310. Alefgard
  311. --------
  312. 30 steps to a Metal Babble encounter (see appendix).
  313.  
  314. Metal Babble battle
  315. -------------------
  316. Turn 1: [Hr] Fight(*), [P1] Heal, [P2] Fight, [Wz] Fight
  317. Turn 2: Run (will fail; remaining enemy will run away)
  318. (*) Parry would cause turn 2 Run to succeed.
  319. If turn 2 is not Run, final battle seed is:
  320. Fight = $7, Parry = $3, KingSword = $4, WizRing = $0
  321. Battle seed after the battle is $9 (which gives better HP boosts than $7
  322. during level-ups).
  323. Page through level spam, then enter Rimuldar.
  324.  
  325. Rimuldar
  326. --------
  327. Use the inn.
  328. [Hr] Return -> Aliahan and save at Luisa.
  329.  
  330. Reset
  331. -----
  332. Set message speed on file 2 and start file 1.
  333.  
  334. Aliahan
  335. -------
  336. Transfer [Wz] Wizard's Ring -> [Hr]
  337. Equip [Hr]
  338. [Hr] Return -> Rimuldar
  339.  
  340. Alefgard
  341. --------
  342. Walk to Charlock.
  343. 2x Heal above left side of Rimuldar to avoid encounter.
  344.  
  345. Charlock 1F
  346. -----------
  347. Walk to the Granite Titan room. 3x Heal, 1x Wizard's Ring, 4x Heal at
  348. NW corner (4 steps W, 3 steps N of stairs) to avoid encounter and
  349. consume RNG outputs. Also do 4 extra steps in front of the Granite
  350. Titan door (or anywhere, really, as long as it's not in the Titan room)
  351. to set the RNG counter to the right value for the Granite Titan battles.
  352.  
  353. Granite Titans
  354. --------------
  355. Battle 1: [Hr] Fight, [P1] Defeat, [P2] Fight, [Wz] Fight
  356. 1x Heal after battle
  357. Battle 2: [Hr] Fight, [P1] Defeat, [P2] Fight, [Wz] Fight
  358. 2x WizRing + 2x Heal after battle
  359. Battle 3: [Hr] Fight, [P1] Defeat, [P2] Heal, [Wz] Fight
  360.  
  361. Charlock 1F-B4
  362. --------------
  363. Cast StepGuard immediately after the Granite Titans, and be careful not
  364. to lose it while going to the secret stairway.
  365. On B3, after crossing the south side of the room from west to east, use
  366. 8x Heal, 2x WizRing to skip an encounter (optimal location: 4 tiles east
  367. and 2 south of the up stairs), and do a 4-step square before going down
  368. the stairs and put the RNG in the proper place.
  369. Ortega goes down in 2 turns.
  370. Take 12 extra steps (3 small squares) before going down to B5.
  371.  
  372. King Hydra
  373. ----------
  374. Turn 1: [Hr] Heal->[Hr], [P1] Parry+Healall->[Wz], [P2] Parry, [Wz] Parry
  375. Turn 2: [Hr] KingSword, [P1] Parry+Infermost, [P2] Healus, [Wz] IceBolt
  376. Turn 3: [Hr] KingSword, [P1] Parry+Infermost, [P2] Revive->[P1], [Wz] Blaze
  377. Turn 4: [Hr] KingSword, [P1] Infermost, [P2] Infermost, [Wz] Fight
  378. After battle:
  379. - Transfer [Hr] Wizard's Ring -> [P2]
  380. - [P2] Use Wizard's Ring x2
  381. - Transfer [P2] Wizard's Ring -> [P1]
  382. - [P1] Use Wizard's Ring x3
  383.  
  384. Baramos Bomus
  385. -------------
  386. Turn 1: [Hr] Attack, [P1] Parry+Infermost, [P2] Parry+Infermost, [Wz] Herb->[Wz]
  387. Turn 2: [Hr] KingSword, [P1] Parry+Infermost, [P2] Parry+Infermost, [Wz] Parry
  388. After battle:
  389. - [P1] Healmore -> [P1]
  390. - [P1] Healmore -> [P2]
  391.  
  392. Baramos Gonus
  393. -------------
  394. Turn 1: [Hr] KingSword, [P1] Infermost, [P2] Surround, [Wz] Blazemore
  395. Turn 2: [Hr] KingSword, [P1] Infermost, [P2] Infermost, [Wz] Blazemore
  396. Turn 3: [Hr] KingSword, [P1] Infermost, [P2] Infermost, [Wz] Snowblast
  397. After battle:
  398. - [Hr] Heal -> [Wz]
  399. - [P1] Use Wizard's Ring
  400. - [P1] Healmore -> [Hr]
  401. - Take 8 steps to get to Zoma so [Hr] has full HP.
  402.  
  403. Zoma
  404. ----
  405. Turn 1: [Hr] Sphere, [P1] Parry+Herb, [P2] Parry+Herb, [Wz] Parry
  406. Turn 2: [Hr] Fight, [P1] Herb, [P2] Herb, [Wz] Herb
  407.  
  408. The End
  409. -------
  410. Walk out.
  411. Return -> Tantegel, walk into town, walk into castle, walk up stairs.
  412. The End.
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419. [Appendix: Killer Bee battle]
  420.  
  421. Encounters with a Killer Bee can happen if the RNG output immediately
  422. before the encounter check is $00, $03-$06, $08, $0B-$0E, or $10, with
  423. the last output at respectively $0C, $10, $14, $18, $1C at battle entry.
  424. The possible encounters are:
  425. - Putrepup x 1, Killer Bee x 1, Masked Moth x 1, Caterpillar x 1
  426. ($00, $08, $10)
  427. - Putrepup x 1, Caterpillar x 1, Killer Bee x 1, Masked Moth x 1
  428. ($03-$06, $0B-$0E)
  429. Both encounters have 4 enemies, so there will be 8 multi-random rolls at
  430. the beginning of battle; this plus the back/preemptive attack check
  431. (which will always fail here), plus turn order rolls for the first turn,
  432. cause the RNG output to be advanced 20(N+2)+2 for battle seed N.
  433.  
  434. In order for the Killer Bee to select "attack + numb", the RNG output
  435. must be in the range $40-$5F or $C0-$FF when the action is selected.
  436. Putrepup has AI type 2 and thus doesn't select an action until turn
  437. resolution, so the Killer Bee will be either the first or the second
  438. enemy to choose an action. If second, the Caterpillar is first, and it
  439. will consume 2 multi-random rolls, plus 1 more roll for each time
  440. Increase is selected (because of the Increase target selection bug);
  441. Increase is at $00-$3F and $C0-$DF in the action table.
  442.  
  443. Once "attack + numb" has been selected, it first needs to hit the target
  444. (RNG output >= 4; the Killer Bee will get the first action). The
  445. effective hit chance for numbness given current party status is 47/256,
  446. so the RNG output at the time the numbness check occurs must be less
  447. than 47.
  448.  
  449. Taking all this into consideration, and letting rng[0] be the RNG output
  450. immediately before battle entry and N[0] be the battle seed on entry:
  451. - N[1] = rng[20*(N[0]+2)+3] & 15
  452. - One of the following must be true:
  453. - With Killer Bee first, for some k >= 0, all of these must hold:
  454. - For each i in [0,k):
  455. - $00 <= rng[20*(N[0]+2)+3+(i+1)*(N[1]+2)] <= $1F
  456. - Either:
  457. - $40 <= rng[20*(N[0]+2)+3+(k+1)*(N[1]+2)] <= $5F
  458. - $C0 <= rng[20*(N[0]+2)+3+(k+1)*(N[1]+2)] <= $FF
  459. - With Caterpillar first, for some k >= 0, all of these must hold:
  460. - For each i in [0,k), one of the following must be true:
  461. - $00 <= rng[20*(N[0]+2)+3+(i+1)*(N[1]+2)] <= $3F
  462. - $C0 <= rng[20*(N[0]+2)+3+(i+1)*(N[1]+2)] <= $DF
  463. - Either:
  464. - $40 <= rng[20*(N[0]+2)+3+(k+1)*(N[1]+2)] <= $BF
  465. - $E0 <= rng[20*(N[0]+2)+3+(k+1)*(N[1]+2)] <= $FF
  466. - rng[20*(N[0]+2)+3+(k+2)*(N[1]+2)] <= $70
  467. (*) Other target possibilities omitted for brevity.
  468. - Either:
  469. - $40 <= rng[20*(N[0]+2)+3+(k+3)*(N[1]+2)] <= $5F
  470. - $C0 <= rng[20*(N[0]+2)+3+(k+3)*(N[1]+2)] <= $FF
  471. - Let n be the number of multi-random rolls taken during action
  472. selection. Then:
  473. - rng[20*(N[0]+2)+3+(n+2)*(N[1]+2)] >= 4
  474. - rng[20*(N[0]+2)+3+(n+3)*(N[1]+2)] < 47
  475.  
  476. Assuming linear RNG output, rng[0] is one of {$0C, $10, $14, $18, $1C},
  477. so N[1] is {15, 3, 7, 11, 15} + 4*(N[0]+2), modulo 16. The RNG output
  478. that sets N[1] is: (note how all 4n+3 values are available)
  479. | $0C | $10 | $14 | $18 | $1C |
  480. ----+-----+-----+-----+-----+-----+
  481. $0 | $37 | $3B | $3F | $43 | $47 |
  482. $1 | $4B | $4F | $53 | $57 | $5B |
  483. $2 | $5F | $63 | $67 | $6B | $6F |
  484. $3 | $73 | $77 | $7B | $7F | $83 |
  485. $4 | $87 | $8B | $8F | $93 | $97 |
  486. $5 | $9B | $9F | $A3 | $A7 | $AB |
  487. $6 | $AF | $B3 | $B7 | $BB | $BF |
  488. $7 | $C3 | $C7 | $CB | $CF | $D3 |
  489. $8 | $D7 | $DB | $DF | $E3 | $E7 |
  490. $9 | $EB | $EF | $F3 | $F7 | $FB |
  491. $A | $FF | $03 | $07 | $0B | $0F |
  492. $B | $13 | $17 | $1B | $1F | $23 |
  493. $C | $27 | $2B | $2F | $33 | $37 |
  494. $D | $3B | $3F | $43 | $47 | $4B |
  495. $E | $4F | $53 | $57 | $5B | $5F |
  496. $F | $63 | $67 | $6B | $6F | $73 |
  497.  
  498. If the Killer Bee goes first, there are (excluding potential N[1]
  499. generators which occur with the wrong encounter) 4 possibilites for the
  500. N[1]-generating RNG output for it to choose Flee (which will be rerolled
  501. due to the level check): $FB, $FF, $07, $13. In all of these cases, the
  502. reroll which eventually succeeds will be in the range $20...$2F, which
  503. is invalid for our purposes. So we need an N[1] generator that gives us
  504. a first-roll attack+numb choice, which can be any of: $37, $3F, $47,
  505. $4B, $53, $B7, $BF, $C3, $CB, $D3, $D7, $DF, $E7, $EB, $F3.
  506.  
  507. The Killer Bee then rolls its target. For physical attacks, one
  508. multi-random number is rolled for each character check (rather than
  509. using the same random number for all checks), so multiple rolls will be
  510. taken in some cases:
  511. Gen | Act | Target (chance list: $70/$B3/$EA/$FF)
  512. -----+-----+---------------------------------------
  513. $37 | $40 | $49
  514. $3F | $50 | $61
  515. $47 | $50 | $59
  516. $4B | $58 | $65
  517. $53 | $58 | $5D
  518. $B7 | $C0 | $C9->$D2->$DB
  519. $BF | $D0 | $E1->$F2->$03
  520. $C3 | $C8 | $CD->$D2->$D7
  521. $CB | $D8 | $E5->$F2->$FF->$0C
  522. $D3 | $D8 | $DD->$E2->$E7
  523. $D7 | $E0 | $E9->$F2->$FB->$04
  524. $DF | $F0 | $01
  525. $E7 | $F0 | $F9->$02
  526. $EB | $F8 | $05
  527. $F3 | $F8 | $FD->$02
  528.  
  529. After a target roll, the Caterpillar will roll its action, landing on
  530. the following action and target RNG outputs for each N[1] generator:
  531. Gen | Action | Target ($70/$B3/$EA/$FF)
  532. -----+----------+--------------------------
  533. $37 | $52 | $5B
  534. $3F | $72 | $83->$94
  535. $47 | $62 | $6B
  536. $4B | $72 | $7F->$8C
  537. $53 | $62 | $67
  538. $B7 | $E4 | $ED->$F6->$FF->$08
  539. $BF | $14->$47 | $58
  540. $C3 | $DC->$E1 | $E6->$EB->$F0->$F5
  541. $CB | $19->$40 | $4D
  542. $D3 | $EC | $F1->$F6->$FB->$00
  543. $D7 | $0D->$43 | $4C
  544. $DF | $12->$45 | $56
  545. $E7 | $0B->$41 | $4A
  546. $EB | $12->$46 | $53
  547. $F3 | $07->$43 | $48
  548.  
  549. Next, the Killer Bee's attack resolves (recall that damage uses the
  550. random-32 algorithm rather than the battle seed):
  551. Gen | Dmg | Evd | Numb
  552. -----+-----+-----+------
  553. $37 | $7B | $84 | $8D
  554. $3F | $B4 | $C5 | $D6
  555. $47 | $8B | $94 | $9D
  556. $4B | $AC | $B9 | $C6
  557. $53 | $87 | $8C | $91
  558. $B7 | $28 | $31 | $3A
  559. $BF | $78 | $89 | $9A
  560. $C3 | $15 | $1A | $1F (*)
  561. $CB | $6D | $7A | $87
  562. $D3 | $20 | $25 | $2A (*)
  563. $D7 | $6C | $75 | $7E
  564. $DF | $76 | $87 | $98
  565. $E7 | $6A | $73 | $7C
  566. $EB | $73 | $80 | $6D
  567. $F3 | $68 | $6D | $52
  568. From the above, we can see that we need an N[1] generator of either $C3
  569. or $D3 to get a numb character with the Killer Bee in the second enemy
  570. slot.
  571.  
  572. In the case of the Killer Bee in the third enemy slot, the Caterpillar
  573. rolls first, so we need to look farther ahead to determine viable N[1]
  574. generators:
  575. Gen | Cat act. | Caterpillar target | Bee act.
  576. -----+----------+--------------------+----------
  577. $03 | $08->$44 | $49 | $4E (*)
  578. $07 | $10->$46 | $4F | $58 (*)
  579. $0B | $18->$4C | $59 | $66
  580. $0F | $20->$42 | $53 | $64
  581. $13 | $18->$40 | $45 | $4A (*)
  582. $17 | $20->$44 | $4D | $56 (*)
  583. $1B | $28->$42 | $4F | $5C (*)
  584. $1F | $30->$41 | $52 | $63
  585. $23 | $28->$41 | $46 | $4B (*)
  586. $27 | $30->$42 | $4B | $54 (*)
  587. $2B | $38->$45 | $52 | $5F (*)
  588. $2F | $40 | $51 | $62
  589. $33 | $38->$42 | $47 | $4C (*)
  590. $37 | $40 | $49 | $52 (*)
  591. $3B | $48 | $55 | $62
  592. $3F | $50 | $61 | $72
  593. $43 | $48 | $4D | $52 (*)
  594. $47 | $50 | $59 | $62
  595. $4B | $58 | $65 | $72
  596. $4F | $60 | $71->$82 | $93
  597. $53 | $58 | $5D | $62
  598. $57 | $60 | $69 | $72
  599. $5B | $68 | $75->$82 | $8F
  600. $5F | $70 | $81->$92 | $A3
  601. $63 | $68 | $6D | $72
  602. $67 | $70 | $79->$82 | $8B
  603. $6B | $78 | $85->$92 | $9F
  604. $6F | $80 | $91->$A2 | $B3
  605. $73 | $78 | $7D->$82 | $87
  606. $77 | $80 | $89->$92 | $9B
  607. $7B | $88 | $95->$A2 | $AF
  608. $7F | $90 | $A1->$B2 | $C3 (*)
  609. $83 | $88 | $8D->$92 | $97
  610. $87 | $90 | $99->$A2 | $AB
  611. $8B | $98 | $A5->$B2 | $BF
  612. $8F | $A0 | $B1->$C2->$D3 | $E4 (*)
  613. $93 | $98 | $9D->$A2 | $A7
  614. $97 | $A0 | $A9->$B2 | $BB
  615. $9B | $A8 | $B5->$C2->$CF | $DC (*)
  616. $9F | $B0 | $C1->$D2->$E3 | $F4 (*)
  617. $A3 | $A8 | $AD->$B2 | $B7
  618. $A7 | $B0 | $B9->$C2->$CB | $D4 (*)
  619. $AB | $B8 | $C5->$D2->$DF | $EC (*)
  620. $AF | $C0->$E2 | $F3->$04 | $15
  621. $B3 | $B8 | $BD->$C2->$C7 | $CC (*)
  622. $B7 | $C0->$E4 | $ED->$F6->$FF->$08 | $11
  623. $BB | $C8->$E2 | $EF->$FC->$09 | $16
  624. $BF | $D0->$E1 | $F2->$03 | $14
  625. $C3 | $C8->$E1 | $E6->$EB->$F0->$F5 | $FA (*)
  626. $C7 | $D0->$E2 | $EB->$F4->$FD->$06 | $0F
  627. $CB | $D8->$E5 | $F2->$FF->$0C | $19
  628. $CF | $E0 | $F1->$02 | $13
  629. $D3 | $D8->$E2 | $E7->$EC->$F1->$F6 | $FB (*)
  630. $D7 | $E0 | $E9->$F2->$FB->$04 | $0D
  631. $DB | $E8 | $F5->$02 | $0F
  632. $DF | $F0 | $01 | $12
  633. $E3 | $E8 | $ED->$F2->$F7->$FC | $01
  634. $E7 | $F0 | $F9->$02 | $0B
  635. $EB | $F8 | $05 | $12
  636. $EF | $00->$44 | $55 | $66
  637. $F3 | $F8 | $FD->$02 | $07
  638. $F7 | $00->$48 | $51 | $5A (*)
  639. $FB | $08->$49 | $56 | $63
  640. $FF | $10->$43 | $54 | $65
  641.  
  642. From the viable generators, we then proceed to Killer Bee action
  643. resolution:
  644. Gen | Killer Bee target | Dmg | Evd | Numb
  645. -----+--------------------+-----+-----+------
  646. $03 | $53 | $73 | $78 | $7D
  647. $07 | $61 | $81 | $8A | $93
  648. $13 | $4F | $6F | $74 | $79
  649. $17 | $5F | $7F | $88 | $91
  650. $1B | $69 | $89 | $96 | $A3
  651. $23 | $50 | $70 | $75 | $7A
  652. $27 | $5D | $7D | $86 | $8F
  653. $2B | $6C | $8C | $99 | $A6
  654. $33 | $51 | $71 | $76 | $7B
  655. $37 | $5B | $7B | $84 | $8D
  656. $43 | $57 | $77 | $7C | $81
  657. $7F | $D4->$E5->$F6->$07 | $27 | $38 | $49
  658. $8F | $F5->$06 | $26 | $37 | $48
  659. $9B | $E9->$F6->$03 | $23 | $30 | $3D
  660. $9F | $05 | $25 | $36 | $47
  661. $A7 | $DD->$E6->$EF->$F8 | $18 | $21 | $2A (*)
  662. $AB | $F9->$06 | $26 | $33 | $40
  663. $B3 | $D1->$D6->$DB | $FB | $00 | $05 (*)
  664. $C3 | $FF->$04 | $24 | $29 | $2E (*)
  665. $D3 | $00 | $20 | $25 | $2A (*)
  666. $F7 | $63 | $83 | $8C | $95
  667.  
  668. In the end, this only gives us two alternative N[1] generators, $A7 and
  669. $B3.
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676. [Appendix: Dream Ruby glitch]
  677.  
  678. Bytes to edit:
  679. $0752 _or_ $0758 = $1B, $1E
  680. $077C..$079A (any) = $30..$3F
  681. $07A2+8n (any) = $43, $47, $4B, $4F
  682. $07BE = $51
  683. Bytes to avoid:
  684. $0724..$072A = $04..$07
  685. $0734..$073A = $0C..$0F
  686. $0740, $0742 = $12, $13
  687.  
  688. $D6 timing on overworld (from 3rd fade-in step):
  689. $1E = 251 (<261)
  690. $30 = 481
  691. $31 = 491
  692. $34 = 501
  693. $37 = 591
  694. $38 = 601
  695. $39 = 611
  696. $3C = 621
  697. $3F = 711 (<721)
  698. $47 = 771 (<781)
  699. $53 = 921
  700. $54 = 951 (<981)
  701.  
  702. Menu timing:
  703. - 9 frames until ready to accept input
  704. - 6 frames to select Item
  705. - 7 frames to draw char list
  706. - 23+ frames until ready to accept input
  707. (seems to depend on number of items held?)
  708. - 1+10c frames to select char 1+c
  709. (seems to vary within [8,12]?)
  710. - 11 frames until ready to select input
  711. (seems to vary within [9,13]?)
  712. - 1/3+3i frames to select item 1/2+i
  713. - 6 frames to draw Use/Transfer/Discard menu
  714. [Transfer: total time 159 + 1+10c + 1/3+3i + 1/3+3t + lengths]
  715. - 3 frames to select Transfer
  716. - 7 frames to draw target char list
  717. - 1/3+3t frames to select char 1/2+t
  718. - 7 frames to draw message window
  719. - 53 + len(from_name) + len(to_name) + len(item_name) frames to draw message
  720. - 27 frames to close menu
  721. [Discard: total time 150 + 1+10c + 1/3+3i + lengths]
  722. - 6 frames to select Discard
  723. - 7 frames to draw message window = 1649
  724. - 47 + len(char_name) + len(item_name) frames to draw message
  725. - 1 frame to press button to close menu
  726. - 27 frames to close menu
  727. (*) Message timing saves 1 frame for each full line.
  728. (*) 29 frames from pressing A to close window until frame counter starts.
  729.  
  730. Available $D6 values: (starting frame $80, can't move immediately)
  731. $04 (delay 1-3)
  732. $0B (delay 4-6) - delay 5 has death message (E4=$07 with B9=$00)
  733. $0E (delay 7)
  734. $12 (delay 8-9) - delay >=9 shows stats window
  735. $15 (delay 10)
  736. $19 (delay 11-12) - has death meassage
  737. $1C (delay 13) - has death message
  738. * $1E (delay 14)
  739. $20 (delay 15) - has death message for soldier
  740. $24 (delay 16-19)
  741. $27 (delay 20) - has death message
  742. $28 (delay 21)
  743. $2C (delay 22-27)
  744. $30 (delay 28) - has death message (E2=$07 with B7=$60)
  745. * $31 (delay 29)
  746. * $34 (delay 30-34)
  747. * $37 (delay 35)
  748. * $38 (delay 36)
  749. * $3C (delay 37-42) - delay 37 has death message (07=$x7 with DC=$6B?)
  750. $40 (delay 43) - has death message
  751. $41 (delay 44) - has death message
  752. $44 (delay 45) - has death message
  753. * $47 (delay 46)
  754. $48 (delay 47) - has death message
  755. $4C (delay 48-49) - has death message
  756. $4D (delay 50-51) - has death message
  757. $50 (delay 52-55) - delay 52 has death message (F7=$07 with CC=$00)
  758. $53 (delay 56-57)
  759. $54 (delay 58-59)
  760. Available $D6 values after 1 damage step (given delay is total):
  761. $2F (delay 26) - has death message
  762. * $30 (delay 27)
  763. * $34 (delay 28-33)
  764. * $37 (delay 34)
  765. * $39 (delay 35)
  766. * $3C (delay 36-40)
  767. $3F (delay 41) - has death message (E2=$x7 with 97=$C0)
  768. $40 (delay 42) - has death message
  769. $44 (delay 43-44) - has death message
  770. * $47 (delay 45)
  771. $49 (delay 46) - has death message
  772. $4C (delay 47-48) - has death message
  773. $4D (delay 49-50) - has death message
  774. $50 (delay 51-54)
  775. $53 (delay 55)
  776. $54 (delay 56-57)
  777. Available $D6 values after 2 damage steps (given delay is total):
  778. $2F (delay 25) - has death message
  779. * $34 (delay 26-32)
  780. $38 (delay 33) - has death message (EE=$x7 with A3=$00)
  781. * $3C (delay 34-39)
  782. $3F (delay 40) - has death message (F7=$x7 with CC=$00)
  783. $41 (delay 41) - has death message
  784. Available $D6 values after 3 damage steps (given delay is total):
  785. $30 (delay 24) - has encounter
  786. * $31 (delay 25)
  787. * $34 (delay 26-30) - delays 26-28, 30 have encounter
  788. * $37 (delay 31) - has encounter
  789. * $39 (delay 32) - has encounter
  790. * $3C (delay 33-38) - 33 has death message (F7=$x7 with CC=$00); 34-36, 38 have encounter
  791. $40 (delay 39) - has death message
  792. Available $D6 values after 4 damage steps (given delay is total):
  793. $2F (delay 22) - has death message
  794. $30 (delay 23) - has death message (F7=$x7 with CC=$00)
  795. * $34 (delay 24-29)
  796. * $37 (delay 30)
  797. * $39 (delay 31)
  798. * $3C (delay 32-36)
  799. * $3F (delay 37)
  800. $40 (delay 38) - has death message
  801. $44 (delay 39-40) - has death message
  802. * $47 (delay 41)
  803. $49 (delay 42) - has death message
  804. - Note that death message puts $07 in $18 (at least for D6=$47) which can
  805. break char 3's status depending on $ED.
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812. [Appendix: Metal Babbles]
  813.  
  814. Metal Babble encounter index is 9, chance is [176,190]
  815. Count is 2 + $C3F1(2) (thus {2, 3, retry, retry}[random() & 3])
  816. Post-warp seed $D92C, counter $2D, battle seed $D
  817. Requirements:
  818. - random[0] < 10
  819. - 176 <= random[1] <= 190
  820. - (random[2..2+(n-1)] & 3) >= 2
  821. - (random[2+n] & 3) == 1
  822.  
  823. Usable initial seeds:
  824. $2DDE (32 steps, battle seed $9, Hr:Attack P1:Heal P2:Attack Wz:Attack)
  825. $352E (2 steps, battle seed $F, Hr:Parry P1:Heal P2:Attack Wz:Attack)
  826. But there appear to be no hero names that give a seed of $352E...
  827.  
  828.  
  829.  
  830.  
  831.  
  832. [Appendix: Granite Titans]
  833.  
  834. Min RNG counter (heals) through Granite Titans: (entry counter = value
  835. before RNG on map load)
  836. $6A68 | RbowDrop | Charlock | GTitan 1
  837. -------+----------+----------+----------
  838. $0 | $56 ( 5) | $97 ( 0) | $2C ( 5)
  839. $1 | $56 ( 4) | $97 ( 0) | $2E ( 4)
  840. $2 | $56 ( 3) | $97 ( 0) | $2E ( 3)
  841. $3 | $56 ( 2) | $97 ( 0) | $2C ( 2)
  842. $4 | $56 ( 2) | $97 ( 0) | $2E ( 2)
  843. $5 | $58 ( 2) | $97 ( 0) | $32 ( 2)
  844. $6 | $5A ( 2) | $99 ( 0) | $36 ( 2)
  845. $7 | $5C ( 2) | $9B ( 0) | $3A ( 2)
  846. $8 | $56 ( 1) | $97 ( 0) | $2C ( 1)
  847. $9 | $57 ( 1) | $98 ( 0) | $2E ( 1)
  848. $A | $56 ( 1) | $97 ( 0) | $2C ( 1)
  849. $B | $57 ( 1) | $98 ( 0) | $2E ( 1)
  850. $C | $58 ( 1) | $99 ( 0) | $30 ( 1)
  851. $D | $59 ( 1) | $9A ( 0) | $32 ( 1)
  852. $E | $5A ( 1) | $9B ( 0) | $34 ( 1)
  853. $F | $5B ( 1) | $9C ( 0) | $36 ( 1)
  854.  
  855. Goal: A Pilgrim goes first and Defeats both of the Granite Titans
  856.  
  857. Basic info:
  858. - Let L = most recent RNG output value at battle entry ($A4 + $1C)
  859. B0 = value of $6A68 + 2 at battle entry
  860. B1 = value of $6A68 + 2 when changed during first turn
  861. Then B1 = (L + 16*B0 + 1) & 15; thus for B1 = B0, L = 16n + (B0 - 1) (any n)
  862. - RNG advances by 5 between each battle (2 at end of battle, 1 for map
  863. reload, 1 for step that triggered previous set battle, 1 for next
  864. step) plus any randomness used for level-ups
  865. - Party agility is 27/33/29/28, thus turn order (if no wraparound)
  866. is 1/3/2/0 or 1/2/3/0
  867. - Enemies have 1-2 actions, pure random target choice, so:
  868. - 2 multi-random numbers select first action and target
  869. - 1 random number selects number of actions
  870. - If low bit is 1, 2 more multi-random numbers select second action
  871. and target
  872. - Due to sequential RNG output, exactly one of the two enemies will
  873. get two actions, so 6*B1+2 outputs are consumed for enemy actions
  874.  
  875. Requirements:
  876.  
  877. - RNG output wraps around after party member 2-4 for turn order calc
  878. - Thus, last output must be at least 256-5*B0 but no more than
  879. 255-2*B0 at turn start; 256-9*B0 <= L < 256-6*B0 at battle entry
  880. (note that the step that triggers the battle does not do a random
  881. encounter check)
  882. - True values of $6A68 and valid battle entry last-output ranges:
  883. $6A68 | Lmin | Lmax
  884. -------+------+------
  885. $0 | 238 | 243
  886. $1 | 229 | 237
  887. $2 | 220 | 231
  888. $3 | 211 | 225
  889. $4 | 202 | 219
  890. $5 | 193 | 213
  891. $6 | 184 | 207
  892. $7 | 175 | 201
  893. $8 | 166 | 195
  894. $9 | 157 | 189
  895. $A | 148 | 183
  896. $B | 139 | 177
  897. $C | 130 | 171
  898. $D | 121 | 165
  899. $E | 112 | 159
  900. $F | 103 | 153
  901.  
  902. - Next multi-random number is at least 179 when Defeat is cast
  903. - From above, 7*B0 <= last < 10*B0 at party menu
  904. - Thus 7*B0+1+6*B1+2 <= last < 10*B0+1+6*B1+2 when first char acts
  905.  
  906. - If first pilgrim, Defeat checks will be +1*B1 and +2*B1, so for a
  907. last-output value L at battle entry and B1 = B0, we need
  908. (L-256)+23*B0+3 >= 179 and (L-256)+24*B0+3 <= 255
  909. - Rewritten: 432-23*B0 <= L <= 508-24*B0
  910. - True values of $6A68 and valid battle entry last-output ranges:
  911. $6A68 | Lmin | Lmax
  912. -------+------+------
  913. $6 | 248 | 255
  914. $7 | 225 | 255
  915. $8 | 202 | 255
  916. $9 | 179 | 244
  917. $A | 156 | 220
  918. $B | 133 | 196
  919. $C | 100 | 172
  920. $D | 87 | 148
  921. $E | 64 | 124
  922. $F | 41 | 100
  923. - Combining with the previous tables gives:
  924. $6A68 | Lmin | Lmax | Valid L
  925. -------+------+------+---------------------------------
  926. $9 | 179 | 189 | 184 ($B8)
  927. $A | 156 | 183 | 169 ($A9)
  928. $B | 139 | 177 | 154 ($9A), 170 ($AA)
  929. $C | 130 | 171 | 139 ($8B), 155 ($9B), 171 ($AB)
  930. $D | 121 | 148 | 124 ($7C), 140 ($8C)
  931. $E | 112 | 124 | none
  932. - Battle end RNG output will be L+24*B0+3 (mod 256)
  933.  
  934. - If second pilgrim, first pilgrim and wizard can influence RNG:
  935. - Attack = 4 + 1 (!Wz, <4: + 1 for critical damage) multi-randoms
  936. - Will always be 5 multi-randoms since output >= 4 after turn
  937. order is computed
  938. - Heal party: 1 multi-random
  939. - Heal enemy: 2 multi-random
  940. - Infernos: 1 (>=179: + 1 for damage) muiti-randoms * 2 enemies
  941. - Firebal: 1 muiti-random * 2 enemies
  942. - Blaze: 2 multi-random
  943. - IceBolt: 2 (>=77: + 1 for damage) muiti-randoms
  944. - Summary:
  945. - To advance by 1: [Pr] Heal party
  946. - To advance by 2: [Pr] Heal enemy
  947. - To advance by 3: [Pr] Heal party + [Wz] Blaze;
  948. [Wz] IceBolt (requires 2nd multi-random >= 77)
  949. - To advance by 4: [Pr] Healus
  950. - To advance by 5: [Pr] Attack
  951. - To advance by 6: [Pr] Healus + [Wz] Blaze
  952. - To advance by 7: [Pr] Attack + [Wz] Blaze
  953. - To advance by 8: [Pr] Attack + [Wz] IceBolt (requires 7th
  954. multi-random >= 77)
  955. - To advance by 10: [Pr] Attack + [Wz] Attack
  956. - Advances of 6 or 9 may be possible depending on Infernos
  957. - Turn start is further constrained since second pilgrim must
  958. also move early (and wizard if using his turn)
  959. - Valid L ranges per advance:
  960. $6A68 | 1,2,4,5 | 3,7,8,10
  961. -------+---------+------------
  962. $0 | 238-241 | 238-239
  963. $1 | 229-234 | 229-231
  964. $2 | 220-227 | 220-223
  965. $3 | 211-220 | 211-215
  966. $4 | 202-213 | 202-207
  967. $5 | 193-206 | 193-199
  968. $6 | 184-199 | 184-191
  969. $7 | 175-192 | 175-183
  970. $8 | 166-185 | 166-175
  971. $9 | 157-178 | 157-167
  972. $A | 148-171 | 148-159
  973. $B | 139-164 | 139-151
  974. $C | 130-157 | 130-143
  975. $D | 121-150 | 121-135
  976. $E | 112-143 | 112-127
  977. $F | 103-136 | 103-119
  978. - First Defeat check can be at any of +{1,2,3,4,5,6,7,8,11}*B1
  979. - +1*B1 is degenerate (same as 1st pilgrim)
  980. - Assuming B1 = B0 and advance = A:
  981. (L-256)+(23+A)*B0+3 >= 179 and (L-256)+(24+A)*B0+3 <= 255
  982. - Rewritten: 432-(23+A)*B0 <= L <= 508-(24+A)*B0
  983. - Valid L ranges for this formula are:
  984. $6A68| 1 | 2 | 3 | 4 | 5 | 7 | 8 | 10
  985. -----+-------+-------+-------+-------+-------+-------+-------+-------
  986. $0 |384-458|382-456|380-454|378-452|376-450|372-446|370-444|366-440
  987. $1 |360-433|357-430|354-427|351-424|348-421|342-415|339-412|333-406
  988. $2 |336-408|332-404|328-400|324-396|320-392|312-384|308-380|300-372
  989. $3 |312-383|307-378|302-373|297-368|292-363|282-353|277-348|267-338
  990. $4 |288-358|282-352|276-346|270-340|264-334|252-322|246-316|234-304
  991. $5 |264-333|257-326|250-319|243-312|236-305|222-291|215-284|201-270
  992. $6 |240-308|232-300|224-292|216-284|208-276|192-260|184-252|168-236
  993. $7 |216-283|207-274|198-265|189-256|180-247|162-229|153-220|135-202
  994. $8 |192-258|182-248|172-238|162-228|152-218|132-198|122-188|102-168
  995. $9 |168-233|157-222|146-211|135-200|124-189|102-167| 91-156| 69-134
  996. $A |144-208|132-196|120-184|108-172| 96-160| 72-136| 60-124| 36-100
  997. $B |120-183|107-170| 94-157| 81-144| 68-131| 42-105| 29- 92| 3- 66
  998. $C | 96-158| 82-144| 68-130| 54-116| 40-102| 12- 74| -2- 60|-30- 32
  999. $D | 72-133| 57-118| 42-103| 27- 88| 12- 73|-18- 43|-33- 28|-63- -2
  1000. $E | 48-108| 32- 92| 16- 76| 0- 60|-16- 44|-48- 12|-64- -4|-96--36
  1001. $F | 24- 83| 7- 66|-10- 49|-27- 32|-44- 15|-78--19|-95--36|-129--70
  1002. - Combining with initial state validity gives:
  1003. $6A68| 1 | 2 | 3 | 4 | 5 | 7 | 8 | 10
  1004. -----+-------+-------+-------+-------+-------+-------+-------+-------
  1005. $6 | --- | --- | --- | --- | --- | --- | --- |184-191
  1006. $7 | --- | --- | --- |189-192|180-192|175-183|175-183|175-183
  1007. $8 | --- |182-185|172-175|166-185|166-185|166-175|166-175|166-168
  1008. $9 |168-178|157-178|157-167|157-178|157-178|157-167| --- | ---
  1009. $A |148-171|148-171|148-159|148-171|148-160| --- | --- | ---
  1010. $B |139-164|139-164|139-151|139-144| --- | --- | --- | ---
  1011. $C |130-157|130-144|130-130| --- | --- | --- | --- | ---
  1012. $D |121-133| --- | --- | --- | --- | --- | --- | ---
  1013. - Combining with B1=B0 table gives:
  1014. $6A68 | Valid (A) L
  1015. -------+-------------
  1016. $6 | none
  1017. $7 | (5,7,8,10) 182/$B6
  1018. $8 | (4,5,7,8,10) 167/$A7, (2,4,5) 183/$B7
  1019. $9 | (1,2,4,5) 168/$A8
  1020. $A | (1,2,3,4,5) 153/$99, (1,2,4) 169/$A9
  1021. $B | (1,2) 154/$9A
  1022. $C | (1,2) 139/$8B, (1) 155/$9B
  1023. $D | (1) 124/$7C
  1024. - Battle end RNG output will be L+(24+A)*B0+3 (mod 256)
  1025.  
  1026. - Final table of possible battle entry RNG outputs per $6A68 value,
  1027. with values of A for battle end RNG output L+16*B0+1+(8+A)*B1+2+2
  1028. (mod 256)
  1029. $6A68_in | L | A | End | $6A68_out
  1030. ----------+-----+----+-----+-----------
  1031. $0 | 238 | 4 | 223 | $F
  1032. $0 | 238 | 5 | 240 | $F
  1033. $1 | 234 | 5 | 200 | $B
  1034. $2 | 220 | 4 | 213 | $D
  1035. $2 | 220 | 5 | 228 | $D
  1036. $2 | 221 | 4 | 226 | $E
  1037. $2 | 221 | 5 | 242 | $E
  1038. $2 | 222 | 2 | 205 | $F
  1039. $2 | 222 | 4 | 239 | $F
  1040. $2 | 222 | 5 | 0 | $F
  1041. $3 | 217 | 5 | 202 | $A
  1042. $3 | 218 | 4 | 203 | $B
  1043. $3 | 218 | 5 | 216 | $B
  1044. $3 | 219 | 4 | 216 | $C
  1045. $3 | 219 | 5 | 230 | $C
  1046. $3 | 220 | 2 | 199 | $D
  1047. $3 | 220 | 4 | 229 | $D
  1048. $3 | 220 | 5 | 244 | $D
  1049. $4 | 202 | 4 | 203 | $B
  1050. $4 | 202 | 5 | 216 | $B
  1051. $4 | 202 | 6 | 229 | $B
  1052. $4 | 202 | 7 | 242 | $B
  1053. $4 | 202 | 8 | 255 | $B
  1054. $4 | 203 | 4 | 216 | $C
  1055. $4 | 203 | 5 | 230 | $C
  1056. $4 | 204 | 2 | 199 | $D
  1057. $4 | 204 | 4 | 229 | $D
  1058. $4 | 204 | 5 | 244 | $D
  1059. $4 | 205 | 2 | 210 | $E
  1060. $4 | 205 | 4 | 242 | $E
  1061. $4 | 206 | 1 | 204 | $F
  1062. $4 | 206 | 2 | 221 | $F
  1063. $4 | 206 | 4 | 255 | $F
  1064. $5 | 200 | 4 | 193 | $9
  1065. $5 | 200 | 5 | 204 | $9
  1066. $5 | 201 | 4 | 206 | $A
  1067. $5 | 201 | 5 | 218 | $A
  1068. $5 | 202 | 4 | 219 | $B
  1069. $5 | 202 | 5 | 232 | $B
  1070. $5 | 203 | 2 | 204 | $C
  1071. $5 | 203 | 4 | 232 | $C
  1072. $5 | 203 | 5 | 246 | $C
  1073. $5 | 204 | 1 | 200 | $D
  1074. $5 | 204 | 2 | 215 | $D
  1075. $5 | 204 | 4 | 245 | $D
  1076. $5 | 205 | 1 | 210 | $E
  1077. $5 | 205 | 2 | 226 | $E
  1078. $5 | 206 | 0 | 203 | $F
  1079. $5 | 206 | 1 | 220 | $F
  1080. $5 | 206 | 2 | 237 | $F
  1081. $6 | 184 | 4 | 193 | $9
  1082. $6 | 184 | 5 | 204 | $9
  1083. $6 | 184 | 6 | 215 | $9
  1084. $6 | 184 | 7 | 226 | $9
  1085. $6 | 184 | 8 | 237 | $9
  1086. $6 | 185 | 4 | 206 | $A
  1087. $6 | 185 | 5 | 218 | $A
  1088. $6 | 185 | 3 | 194 | $A
  1089. $6 | 185 | 6 | 230 | $A
  1090. $6 | 185 | 7 | 242 | $A
  1091. $6 | 185 | 8 | 254 | $A
  1092. $6 | 186 | 4 | 219 | $B
  1093. $6 | 186 | 5 | 232 | $B
  1094. $6 | 186 | 3 | 206 | $B
  1095. $6 | 186 | 6 | 245 | $B
  1096. $6 | 187 | 2 | 204 | $C
  1097. $6 | 187 | 4 | 232 | $C
  1098. $6 | 187 | 5 | 246 | $C
  1099. $6 | 187 | 3 | 218 | $C
  1100. $6 | 188 | 1 | 200 | $D
  1101. $6 | 188 | 2 | 215 | $D
  1102. $6 | 188 | 4 | 245 | $D
  1103. $6 | 188 | 3 | 230 | $D
  1104. $6 | 189 | 1 | 210 | $E
  1105. $6 | 189 | 2 | 226 | $E
  1106. $6 | 190 | 0 | 203 | $F
  1107. $6 | 190 | 1 | 220 | $F
  1108. $6 | 190 | 2 | 237 | $F
  1109. $6 | 198 | 5 | 192 | $7
  1110. $6 | 199 | 4 | 196 | $8
  1111. $6 | 199 | 5 | 206 | $8
  1112. $6 | 204 | 0 | 201 | $D
  1113. $6 | 205 | 0 | 210 | $E
  1114. $6 | 206 | 0 | 219 | $F
  1115. $7 | 180 | 10 | 199 | $5
  1116. $7 | 181 | 7 | 194 | $6
  1117. $7 | 181 | 8 | 202 | $6
  1118. $7 | 181 | 10 | 218 | $6
  1119. $7 | 182 | 5 | 192 | $7
  1120. $7 | 183 | 4 | 196 | $8
  1121. $7 | 183 | 5 | 206 | $8
  1122. $7 | 184 | 4 | 209 | $9
  1123. $7 | 184 | 5 | 220 | $9
  1124. $7 | 185 | 2 | 198 | $A
  1125. $7 | 185 | 4 | 222 | $A
  1126. $7 | 185 | 5 | 234 | $A
  1127. $7 | 186 | 1 | 196 | $B
  1128. $7 | 186 | 2 | 209 | $B
  1129. $7 | 186 | 4 | 235 | $B
  1130. $7 | 186 | 5 | 248 | $B
  1131. $7 | 187 | 1 | 206 | $C
  1132. $7 | 187 | 2 | 220 | $C
  1133. $7 | 187 | 4 | 248 | $C
  1134. $7 | 188 | 0 | 201 | $D
  1135. $7 | 188 | 1 | 216 | $D
  1136. $7 | 188 | 2 | 231 | $D
  1137. $7 | 189 | 0 | 210 | $E
  1138. $7 | 189 | 1 | 226 | $E
  1139. $7 | 189 | 2 | 242 | $E
  1140. $7 | 190 | 0 | 219 | $F
  1141. $7 | 190 | 1 | 236 | $F
  1142. $7 | 190 | 2 | 253 | $F
  1143. $8 | 166 | 5 | 192 | $7
  1144. $8 | 166 | 6 | 201 | $7
  1145. $8 | 166 | 7 | 210 | $7
  1146. $8 | 166 | 8 | 219 | $7
  1147. $8 | 166 | 10 | 237 | $7
  1148. $8 | 167 | 4 | 196 | $8
  1149. $8 | 167 | 5 | 206 | $8
  1150. $8 | 167 | 6 | 216 | $8
  1151. $8 | 167 | 7 | 226 | $8
  1152. $8 | 167 | 8 | 236 | $8
  1153. $8 | 167 | 10 | 0 | $8
  1154. $8 | 168 | 4 | 209 | $9
  1155. $8 | 168 | 5 | 220 | $9
  1156. $8 | 168 | 3 | 198 | $9
  1157. $8 | 168 | 6 | 231 | $9
  1158. $8 | 168 | 7 | 242 | $9
  1159. $8 | 168 | 8 | 253 | $9
  1160. $8 | 169 | 2 | 198 | $A
  1161. $8 | 169 | 4 | 222 | $A
  1162. $8 | 169 | 5 | 234 | $A
  1163. $8 | 169 | 3 | 210 | $A
  1164. $8 | 169 | 6 | 246 | $A
  1165. $8 | 170 | 1 | 196 | $B
  1166. $8 | 170 | 2 | 209 | $B
  1167. $8 | 170 | 4 | 235 | $B
  1168. $8 | 170 | 5 | 248 | $B
  1169. $8 | 170 | 3 | 222 | $B
  1170. $8 | 171 | 1 | 206 | $C
  1171. $8 | 171 | 2 | 220 | $C
  1172. $8 | 171 | 4 | 248 | $C
  1173. $8 | 171 | 3 | 234 | $C
  1174. $8 | 172 | 0 | 201 | $D
  1175. $8 | 172 | 1 | 216 | $D
  1176. $8 | 172 | 2 | 231 | $D
  1177. $8 | 172 | 3 | 246 | $D
  1178. $8 | 173 | 0 | 210 | $E
  1179. $8 | 173 | 1 | 226 | $E
  1180. $8 | 173 | 2 | 242 | $E
  1181. $8 | 174 | 0 | 219 | $F
  1182. $8 | 174 | 1 | 236 | $F
  1183. $8 | 174 | 2 | 253 | $F
  1184. $8 | 181 | 5 | 194 | $6
  1185. $8 | 182 | 4 | 199 | $7
  1186. $8 | 182 | 5 | 208 | $7
  1187. $8 | 183 | 2 | 192 | $8
  1188. $8 | 183 | 4 | 212 | $8
  1189. $8 | 183 | 5 | 222 | $8
  1190. $8 | 184 | 1 | 192 | $9
  1191. $8 | 184 | 2 | 203 | $9
  1192. $8 | 184 | 4 | 225 | $9
  1193. $8 | 184 | 5 | 236 | $9
  1194. $8 | 185 | 1 | 202 | $A
  1195. $8 | 185 | 2 | 214 | $A
  1196. $8 | 185 | 4 | 238 | $A
  1197. $8 | 185 | 5 | 250 | $A
  1198. $8 | 186 | 0 | 199 | $B
  1199. $8 | 187 | 0 | 208 | $C
  1200. $8 | 188 | 0 | 217 | $D
  1201. $8 | 189 | 0 | 226 | $E
  1202. $8 | 190 | 0 | 235 | $F
  1203. $9 | 157 | 0 | 210 | $E
  1204. $9 | 157 | 1 | 226 | $E
  1205. $9 | 157 | 2 | 242 | $E
  1206. $9 | 158 | 0 | 219 | $F
  1207. $9 | 158 | 1 | 236 | $F
  1208. $9 | 158 | 2 | 253 | $F
  1209. $9 | 163 | 10 | 196 | $4
  1210. $9 | 164 | 7 | 194 | $5
  1211. $9 | 164 | 8 | 201 | $5
  1212. $9 | 164 | 10 | 215 | $5
  1213. $9 | 165 | 5 | 194 | $6
  1214. $9 | 165 | 6 | 202 | $6
  1215. $9 | 165 | 7 | 210 | $6
  1216. $9 | 165 | 8 | 218 | $6
  1217. $9 | 165 | 10 | 234 | $6
  1218. $9 | 166 | 4 | 199 | $7
  1219. $9 | 166 | 5 | 208 | $7
  1220. $9 | 166 | 3 | 190 | $7
  1221. $9 | 166 | 6 | 217 | $7
  1222. $9 | 166 | 7 | 226 | $7
  1223. $9 | 166 | 8 | 235 | $7
  1224. $9 | 166 | 10 | 253 | $7
  1225. $9 | 167 | 2 | 192 | $8
  1226. $9 | 167 | 4 | 212 | $8
  1227. $9 | 167 | 5 | 222 | $8
  1228. $9 | 167 | 3 | 202 | $8
  1229. $9 | 167 | 6 | 232 | $8
  1230. $9 | 167 | 7 | 242 | $8
  1231. $9 | 167 | 8 | 252 | $8
  1232. $9 | 168 | 1 | 192 | $9
  1233. $9 | 168 | 2 | 203 | $9
  1234. $9 | 168 | 4 | 225 | $9
  1235. $9 | 168 | 5 | 236 | $9
  1236. $9 | 169 | 1 | 202 | $A
  1237. $9 | 169 | 2 | 214 | $A
  1238. $9 | 169 | 4 | 238 | $A
  1239. $9 | 169 | 5 | 250 | $A
  1240. $9 | 170 | 0 | 199 | $B
  1241. $9 | 170 | 1 | 212 | $B
  1242. $9 | 170 | 2 | 225 | $B
  1243. $9 | 170 | 4 | 251 | $B
  1244. $9 | 171 | 0 | 208 | $C
  1245. $9 | 171 | 1 | 222 | $C
  1246. $9 | 171 | 2 | 236 | $C
  1247. $9 | 172 | 0 | 217 | $D
  1248. $9 | 172 | 1 | 232 | $D
  1249. $9 | 172 | 2 | 247 | $D
  1250. $9 | 173 | 0 | 226 | $E
  1251. $9 | 173 | 1 | 242 | $E
  1252. $9 | 174 | 0 | 235 | $F
  1253. $9 | 174 | 1 | 252 | $F
  1254. $9 | 184 | 0 | 197 | $9
  1255. $9 | 185 | 0 | 206 | $A
  1256. $9 | 186 | 0 | 215 | $B
  1257. $9 | 187 | 0 | 224 | $C
  1258. $9 | 188 | 0 | 233 | $D
  1259. $9 | 189 | 0 | 242 | $E
  1260. $A | 148 | 7 | 194 | $5
  1261. $A | 148 | 8 | 201 | $5
  1262. $A | 148 | 10 | 215 | $5
  1263. $A | 149 | 5 | 194 | $6
  1264. $A | 149 | 6 | 202 | $6
  1265. $A | 149 | 7 | 210 | $6
  1266. $A | 149 | 8 | 218 | $6
  1267. $A | 149 | 10 | 234 | $6
  1268. $A | 150 | 4 | 199 | $7
  1269. $A | 150 | 5 | 208 | $7
  1270. $A | 150 | 3 | 190 | $7
  1271. $A | 150 | 6 | 217 | $7
  1272. $A | 150 | 7 | 226 | $7
  1273. $A | 150 | 8 | 235 | $7
  1274. $A | 150 | 10 | 253 | $7
  1275. $A | 151 | 2 | 192 | $8
  1276. $A | 151 | 4 | 212 | $8
  1277. $A | 151 | 5 | 222 | $8
  1278. $A | 151 | 3 | 202 | $8
  1279. $A | 151 | 6 | 232 | $8
  1280. $A | 151 | 7 | 242 | $8
  1281. $A | 151 | 8 | 252 | $8
  1282. $A | 152 | 1 | 192 | $9
  1283. $A | 152 | 2 | 203 | $9
  1284. $A | 152 | 4 | 225 | $9
  1285. $A | 152 | 5 | 236 | $9
  1286. $A | 152 | 3 | 214 | $9
  1287. $A | 152 | 6 | 247 | $9
  1288. $A | 153 | 1 | 202 | $A
  1289. $A | 153 | 2 | 214 | $A
  1290. $A | 153 | 4 | 238 | $A
  1291. $A | 153 | 5 | 250 | $A
  1292. $A | 153 | 3 | 226 | $A
  1293. $A | 154 | 0 | 199 | $B
  1294. $A | 154 | 1 | 212 | $B
  1295. $A | 154 | 2 | 225 | $B
  1296. $A | 154 | 4 | 251 | $B
  1297. $A | 154 | 3 | 238 | $B
  1298. $A | 155 | 0 | 208 | $C
  1299. $A | 155 | 1 | 222 | $C
  1300. $A | 155 | 2 | 236 | $C
  1301. $A | 155 | 3 | 250 | $C
  1302. $A | 156 | 0 | 217 | $D
  1303. $A | 156 | 1 | 232 | $D
  1304. $A | 156 | 2 | 247 | $D
  1305. $A | 157 | 0 | 226 | $E
  1306. $A | 157 | 1 | 242 | $E
  1307. $A | 158 | 0 | 235 | $F
  1308. $A | 158 | 1 | 252 | $F
  1309. $A | 164 | 4 | 189 | $5
  1310. $A | 164 | 5 | 196 | $5
  1311. $A | 165 | 4 | 202 | $6
  1312. $A | 165 | 5 | 210 | $6
  1313. $A | 166 | 2 | 197 | $7
  1314. $A | 166 | 4 | 215 | $7
  1315. $A | 166 | 5 | 224 | $7
  1316. $A | 167 | 1 | 198 | $8
  1317. $A | 167 | 2 | 208 | $8
  1318. $A | 167 | 4 | 228 | $8
  1319. $A | 167 | 5 | 238 | $8
  1320. $A | 168 | 0 | 197 | $9
  1321. $A | 168 | 1 | 208 | $9
  1322. $A | 168 | 2 | 219 | $9
  1323. $A | 168 | 4 | 241 | $9
  1324. $A | 168 | 5 | 252 | $9
  1325. $A | 169 | 0 | 206 | $A
  1326. $A | 169 | 1 | 218 | $A
  1327. $A | 169 | 2 | 230 | $A
  1328. $A | 169 | 4 | 254 | $A
  1329. $A | 170 | 0 | 215 | $B
  1330. $A | 170 | 1 | 228 | $B
  1331. $A | 170 | 2 | 241 | $B
  1332. $A | 171 | 0 | 224 | $C
  1333. $A | 171 | 1 | 238 | $C
  1334. $A | 171 | 2 | 252 | $C
  1335. $A | 172 | 0 | 233 | $D
  1336. $A | 173 | 0 | 242 | $E
  1337. $A | 174 | 0 | 251 | $F
  1338. $A | 182 | 0 | 195 | $7
  1339. $A | 183 | 0 | 204 | $8
  1340. $B | 139 | 0 | 208 | $C
  1341. $B | 139 | 1 | 222 | $C
  1342. $B | 139 | 2 | 236 | $C
  1343. $B | 139 | 3 | 250 | $C
  1344. $B | 140 | 0 | 217 | $D
  1345. $B | 140 | 1 | 232 | $D
  1346. $B | 140 | 2 | 247 | $D
  1347. $B | 141 | 0 | 226 | $E
  1348. $B | 141 | 1 | 242 | $E
  1349. $B | 142 | 0 | 235 | $F
  1350. $B | 142 | 1 | 252 | $F
  1351. $B | 146 | 10 | 193 | $3
  1352. $B | 147 | 6 | 188 | $4
  1353. $B | 147 | 7 | 194 | $4
  1354. $B | 147 | 8 | 200 | $4
  1355. $B | 147 | 10 | 212 | $4
  1356. $B | 148 | 4 | 189 | $5
  1357. $B | 148 | 5 | 196 | $5
  1358. $B | 148 | 6 | 203 | $5
  1359. $B | 148 | 7 | 210 | $5
  1360. $B | 148 | 8 | 217 | $5
  1361. $B | 148 | 10 | 231 | $5
  1362. $B | 149 | 4 | 202 | $6
  1363. $B | 149 | 5 | 210 | $6
  1364. $B | 149 | 3 | 194 | $6
  1365. $B | 149 | 6 | 218 | $6
  1366. $B | 149 | 7 | 226 | $6
  1367. $B | 149 | 8 | 234 | $6
  1368. $B | 149 | 10 | 250 | $6
  1369. $B | 150 | 2 | 197 | $7
  1370. $B | 150 | 4 | 215 | $7
  1371. $B | 150 | 5 | 224 | $7
  1372. $B | 150 | 3 | 206 | $7
  1373. $B | 150 | 6 | 233 | $7
  1374. $B | 150 | 7 | 242 | $7
  1375. $B | 150 | 8 | 251 | $7
  1376. $B | 151 | 1 | 198 | $8
  1377. $B | 151 | 2 | 208 | $8
  1378. $B | 151 | 4 | 228 | $8
  1379. $B | 151 | 5 | 238 | $8
  1380. $B | 151 | 3 | 218 | $8
  1381. $B | 151 | 6 | 248 | $8
  1382. $B | 152 | 0 | 197 | $9
  1383. $B | 152 | 1 | 208 | $9
  1384. $B | 152 | 2 | 219 | $9
  1385. $B | 152 | 4 | 241 | $9
  1386. $B | 152 | 5 | 252 | $9
  1387. $B | 153 | 0 | 206 | $A
  1388. $B | 153 | 1 | 218 | $A
  1389. $B | 153 | 2 | 230 | $A
  1390. $B | 153 | 4 | 254 | $A
  1391. $B | 154 | 0 | 215 | $B
  1392. $B | 154 | 1 | 228 | $B
  1393. $B | 154 | 2 | 241 | $B
  1394. $B | 155 | 0 | 224 | $C
  1395. $B | 155 | 1 | 238 | $C
  1396. $B | 155 | 2 | 252 | $C
  1397. $B | 156 | 0 | 233 | $D
  1398. $B | 156 | 1 | 248 | $D
  1399. $B | 157 | 0 | 242 | $E
  1400. $B | 158 | 0 | 251 | $F
  1401. $B | 163 | 4 | 192 | $4
  1402. $B | 163 | 5 | 198 | $4
  1403. $B | 164 | 2 | 191 | $5
  1404. $B | 164 | 4 | 205 | $5
  1405. $B | 164 | 5 | 212 | $5
  1406. $B | 166 | 0 | 195 | $7
  1407. $B | 167 | 0 | 204 | $8
  1408. $B | 168 | 0 | 213 | $9
  1409. $B | 169 | 0 | 222 | $A
  1410. $B | 170 | 0 | 231 | $B
  1411. $B | 171 | 0 | 240 | $C
  1412. $B | 172 | 0 | 249 | $D
  1413. $C | 130 | 10 | 193 | $3
  1414. $C | 131 | 6 | 188 | $4
  1415. $C | 131 | 7 | 194 | $4
  1416. $C | 131 | 8 | 200 | $4
  1417. $C | 131 | 10 | 212 | $4
  1418. $C | 132 | 4 | 189 | $5
  1419. $C | 132 | 5 | 196 | $5
  1420. $C | 132 | 6 | 203 | $5
  1421. $C | 132 | 7 | 210 | $5
  1422. $C | 132 | 8 | 217 | $5
  1423. $C | 132 | 10 | 231 | $5
  1424. $C | 133 | 4 | 202 | $6
  1425. $C | 133 | 5 | 210 | $6
  1426. $C | 133 | 3 | 194 | $6
  1427. $C | 133 | 6 | 218 | $6
  1428. $C | 133 | 7 | 226 | $6
  1429. $C | 133 | 8 | 234 | $6
  1430. $C | 133 | 10 | 250 | $6
  1431. $C | 134 | 2 | 197 | $7
  1432. $C | 134 | 4 | 215 | $7
  1433. $C | 134 | 5 | 224 | $7
  1434. $C | 134 | 3 | 206 | $7
  1435. $C | 134 | 6 | 233 | $7
  1436. $C | 134 | 7 | 242 | $7
  1437. $C | 134 | 8 | 251 | $7
  1438. $C | 135 | 1 | 198 | $8
  1439. $C | 135 | 2 | 208 | $8
  1440. $C | 135 | 4 | 228 | $8
  1441. $C | 135 | 5 | 238 | $8
  1442. $C | 135 | 3 | 218 | $8
  1443. $C | 135 | 6 | 248 | $8
  1444. $C | 136 | 0 | 197 | $9
  1445. $C | 136 | 1 | 208 | $9
  1446. $C | 136 | 2 | 219 | $9
  1447. $C | 136 | 4 | 241 | $9
  1448. $C | 136 | 5 | 252 | $9
  1449. $C | 136 | 3 | 230 | $9
  1450. $C | 137 | 0 | 206 | $A
  1451. $C | 137 | 1 | 218 | $A
  1452. $C | 137 | 2 | 230 | $A
  1453. $C | 137 | 4 | 254 | $A
  1454. $C | 137 | 3 | 242 | $A
  1455. $C | 138 | 0 | 215 | $B
  1456. $C | 138 | 1 | 228 | $B
  1457. $C | 138 | 2 | 241 | $B
  1458. $C | 138 | 3 | 254 | $B
  1459. $C | 139 | 0 | 224 | $C
  1460. $C | 139 | 1 | 238 | $C
  1461. $C | 139 | 2 | 252 | $C
  1462. $C | 140 | 0 | 233 | $D
  1463. $C | 140 | 1 | 248 | $D
  1464. $C | 141 | 0 | 242 | $E
  1465. $C | 142 | 0 | 251 | $F
  1466. $C | 147 | 4 | 192 | $4
  1467. $C | 147 | 5 | 198 | $4
  1468. $C | 148 | 2 | 191 | $5
  1469. $C | 148 | 4 | 205 | $5
  1470. $C | 148 | 5 | 212 | $5
  1471. $C | 149 | 1 | 194 | $6
  1472. $C | 149 | 2 | 202 | $6
  1473. $C | 149 | 4 | 218 | $6
  1474. $C | 149 | 5 | 226 | $6
  1475. $C | 150 | 0 | 195 | $7
  1476. $C | 150 | 1 | 204 | $7
  1477. $C | 150 | 2 | 213 | $7
  1478. $C | 150 | 4 | 231 | $7
  1479. $C | 150 | 5 | 240 | $7
  1480. $C | 151 | 0 | 204 | $8
  1481. $C | 151 | 1 | 214 | $8
  1482. $C | 151 | 2 | 224 | $8
  1483. $C | 151 | 4 | 244 | $8
  1484. $C | 151 | 5 | 254 | $8
  1485. $C | 152 | 0 | 213 | $9
  1486. $C | 152 | 1 | 224 | $9
  1487. $C | 152 | 2 | 235 | $9
  1488. $C | 152 | 4 | 1 | $9
  1489. $C | 153 | 0 | 222 | $A
  1490. $C | 153 | 1 | 234 | $A
  1491. $C | 153 | 2 | 246 | $A
  1492. $C | 154 | 0 | 231 | $B
  1493. $C | 154 | 1 | 244 | $B
  1494. $C | 154 | 2 | 1 | $B
  1495. $C | 155 | 0 | 240 | $C
  1496. $C | 155 | 1 | 254 | $C
  1497. $C | 156 | 0 | 249 | $D
  1498. $C | 164 | 0 | 193 | $5
  1499. $C | 165 | 0 | 202 | $6
  1500. $C | 166 | 0 | 211 | $7
  1501. $C | 167 | 0 | 220 | $8
  1502. $C | 168 | 0 | 229 | $9
  1503. $C | 169 | 0 | 238 | $A
  1504. $C | 170 | 0 | 247 | $B
  1505. $C | 171 | 0 | 0 | $C
  1506. $D | 121 | 0 | 206 | $A
  1507. $D | 121 | 1 | 218 | $A
  1508. $D | 121 | 2 | 230 | $A
  1509. $D | 121 | 4 | 254 | $A
  1510. $D | 121 | 3 | 242 | $A
  1511. $D | 122 | 0 | 215 | $B
  1512. $D | 122 | 1 | 228 | $B
  1513. $D | 122 | 2 | 241 | $B
  1514. $D | 122 | 3 | 254 | $B
  1515. $D | 123 | 0 | 224 | $C
  1516. $D | 123 | 1 | 238 | $C
  1517. $D | 123 | 2 | 252 | $C
  1518. $D | 124 | 0 | 233 | $D
  1519. $D | 124 | 1 | 248 | $D
  1520. $D | 125 | 0 | 242 | $E
  1521. $D | 126 | 0 | 251 | $F
  1522. $D | 129 | 10 | 190 | $2
  1523. $D | 130 | 6 | 189 | $3
  1524. $D | 130 | 7 | 194 | $3
  1525. $D | 130 | 8 | 199 | $3
  1526. $D | 130 | 10 | 209 | $3
  1527. $D | 131 | 4 | 192 | $4
  1528. $D | 131 | 5 | 198 | $4
  1529. $D | 131 | 6 | 204 | $4
  1530. $D | 131 | 7 | 210 | $4
  1531. $D | 131 | 8 | 216 | $4
  1532. $D | 131 | 10 | 228 | $4
  1533. $D | 132 | 2 | 191 | $5
  1534. $D | 132 | 4 | 205 | $5
  1535. $D | 132 | 5 | 212 | $5
  1536. $D | 132 | 3 | 198 | $5
  1537. $D | 132 | 6 | 219 | $5
  1538. $D | 132 | 7 | 226 | $5
  1539. $D | 132 | 8 | 233 | $5
  1540. $D | 132 | 10 | 247 | $5
  1541. $D | 133 | 1 | 194 | $6
  1542. $D | 133 | 2 | 202 | $6
  1543. $D | 133 | 4 | 218 | $6
  1544. $D | 133 | 5 | 226 | $6
  1545. $D | 133 | 3 | 210 | $6
  1546. $D | 133 | 6 | 234 | $6
  1547. $D | 133 | 7 | 242 | $6
  1548. $D | 133 | 8 | 250 | $6
  1549. $D | 134 | 0 | 195 | $7
  1550. $D | 134 | 1 | 204 | $7
  1551. $D | 134 | 2 | 213 | $7
  1552. $D | 134 | 4 | 231 | $7
  1553. $D | 134 | 5 | 240 | $7
  1554. $D | 134 | 3 | 222 | $7
  1555. $D | 134 | 6 | 249 | $7
  1556. $D | 135 | 0 | 204 | $8
  1557. $D | 135 | 1 | 214 | $8
  1558. $D | 135 | 2 | 224 | $8
  1559. $D | 135 | 4 | 244 | $8
  1560. $D | 135 | 5 | 254 | $8
  1561. $D | 135 | 3 | 234 | $8
  1562. $D | 136 | 0 | 213 | $9
  1563. $D | 136 | 1 | 224 | $9
  1564. $D | 136 | 2 | 235 | $9
  1565. $D | 136 | 4 | 1 | $9
  1566. $D | 137 | 0 | 222 | $A
  1567. $D | 137 | 1 | 234 | $A
  1568. $D | 137 | 2 | 246 | $A
  1569. $D | 138 | 0 | 231 | $B
  1570. $D | 138 | 1 | 244 | $B
  1571. $D | 138 | 2 | 1 | $B
  1572. $D | 139 | 0 | 240 | $C
  1573. $D | 139 | 1 | 254 | $C
  1574. $D | 140 | 0 | 249 | $D
  1575. $D | 145 | 5 | 186 | $2
  1576. $D | 146 | 4 | 195 | $3
  1577. $D | 146 | 5 | 200 | $3
  1578. $D | 147 | 1 | 190 | $4
  1579. $D | 147 | 2 | 196 | $4
  1580. $D | 147 | 4 | 208 | $4
  1581. $D | 147 | 5 | 214 | $4
  1582. $D | 148 | 0 | 193 | $5
  1583. $D | 148 | 1 | 200 | $5
  1584. $D | 148 | 2 | 207 | $5
  1585. $D | 148 | 4 | 221 | $5
  1586. $D | 148 | 5 | 228 | $5
  1587. $D | 149 | 0 | 202 | $6
  1588. $D | 149 | 1 | 210 | $6
  1589. $D | 149 | 2 | 218 | $6
  1590. $D | 149 | 4 | 234 | $6
  1591. $D | 149 | 5 | 242 | $6
  1592. $D | 150 | 0 | 211 | $7
  1593. $D | 150 | 1 | 220 | $7
  1594. $D | 150 | 2 | 229 | $7
  1595. $D | 150 | 4 | 247 | $7
  1596. $D | 150 | 5 | 0 | $7
  1597. $D | 151 | 0 | 220 | $8
  1598. $D | 152 | 0 | 229 | $9
  1599. $D | 153 | 0 | 238 | $A
  1600. $D | 154 | 0 | 247 | $B
  1601. $D | 155 | 0 | 0 | $C
  1602. $D | 162 | 0 | 191 | $3
  1603. $D | 163 | 0 | 200 | $4
  1604. $D | 164 | 0 | 209 | $5
  1605. $D | 165 | 0 | 218 | $6
  1606. $E | 113 | 10 | 190 | $2
  1607. $E | 114 | 6 | 189 | $3
  1608. $E | 114 | 7 | 194 | $3
  1609. $E | 114 | 8 | 199 | $3
  1610. $E | 114 | 10 | 209 | $3
  1611. $E | 115 | 4 | 192 | $4
  1612. $E | 115 | 5 | 198 | $4
  1613. $E | 115 | 6 | 204 | $4
  1614. $E | 115 | 7 | 210 | $4
  1615. $E | 115 | 8 | 216 | $4
  1616. $E | 115 | 10 | 228 | $4
  1617. $E | 116 | 2 | 191 | $5
  1618. $E | 116 | 4 | 205 | $5
  1619. $E | 116 | 5 | 212 | $5
  1620. $E | 116 | 3 | 198 | $5
  1621. $E | 116 | 6 | 219 | $5
  1622. $E | 116 | 7 | 226 | $5
  1623. $E | 116 | 8 | 233 | $5
  1624. $E | 116 | 10 | 247 | $5
  1625. $E | 117 | 1 | 194 | $6
  1626. $E | 117 | 2 | 202 | $6
  1627. $E | 117 | 4 | 218 | $6
  1628. $E | 117 | 5 | 226 | $6
  1629. $E | 117 | 3 | 210 | $6
  1630. $E | 117 | 6 | 234 | $6
  1631. $E | 117 | 7 | 242 | $6
  1632. $E | 117 | 8 | 250 | $6
  1633. $E | 118 | 0 | 195 | $7
  1634. $E | 118 | 1 | 204 | $7
  1635. $E | 118 | 2 | 213 | $7
  1636. $E | 118 | 4 | 231 | $7
  1637. $E | 118 | 5 | 240 | $7
  1638. $E | 118 | 3 | 222 | $7
  1639. $E | 118 | 6 | 249 | $7
  1640. $E | 119 | 0 | 204 | $8
  1641. $E | 119 | 1 | 214 | $8
  1642. $E | 119 | 2 | 224 | $8
  1643. $E | 119 | 4 | 244 | $8
  1644. $E | 119 | 5 | 254 | $8
  1645. $E | 119 | 3 | 234 | $8
  1646. $E | 120 | 0 | 213 | $9
  1647. $E | 120 | 1 | 224 | $9
  1648. $E | 120 | 2 | 235 | $9
  1649. $E | 120 | 4 | 1 | $9
  1650. $E | 120 | 3 | 246 | $9
  1651. $E | 121 | 0 | 222 | $A
  1652. $E | 121 | 1 | 234 | $A
  1653. $E | 121 | 2 | 246 | $A
  1654. $E | 122 | 0 | 231 | $B
  1655. $E | 122 | 1 | 244 | $B
  1656. $E | 122 | 2 | 1 | $B
  1657. $E | 123 | 0 | 240 | $C
  1658. $E | 123 | 1 | 254 | $C
  1659. $E | 124 | 0 | 249 | $D
  1660. $E | 129 | 5 | 186 | $2
  1661. $E | 130 | 4 | 195 | $3
  1662. $E | 130 | 5 | 200 | $3
  1663. $E | 131 | 1 | 190 | $4
  1664. $E | 131 | 2 | 196 | $4
  1665. $E | 131 | 4 | 208 | $4
  1666. $E | 131 | 5 | 214 | $4
  1667. $E | 132 | 0 | 193 | $5
  1668. $E | 132 | 1 | 200 | $5
  1669. $E | 132 | 2 | 207 | $5
  1670. $E | 132 | 4 | 221 | $5
  1671. $E | 132 | 5 | 228 | $5
  1672. $E | 133 | 0 | 202 | $6
  1673. $E | 133 | 1 | 210 | $6
  1674. $E | 133 | 2 | 218 | $6
  1675. $E | 133 | 4 | 234 | $6
  1676. $E | 133 | 5 | 242 | $6
  1677. $E | 134 | 0 | 211 | $7
  1678. $E | 134 | 1 | 220 | $7
  1679. $E | 134 | 2 | 229 | $7
  1680. $E | 134 | 4 | 247 | $7
  1681. $E | 134 | 5 | 0 | $7
  1682. $E | 135 | 0 | 220 | $8
  1683. $E | 135 | 1 | 230 | $8
  1684. $E | 135 | 2 | 240 | $8
  1685. $E | 136 | 0 | 229 | $9
  1686. $E | 136 | 1 | 240 | $9
  1687. $E | 136 | 2 | 251 | $9
  1688. $E | 137 | 0 | 238 | $A
  1689. $E | 137 | 1 | 250 | $A
  1690. $E | 138 | 0 | 247 | $B
  1691. $E | 139 | 0 | 0 | $C
  1692. $E | 146 | 0 | 191 | $3
  1693. $E | 147 | 0 | 200 | $4
  1694. $E | 148 | 0 | 209 | $5
  1695. $E | 149 | 0 | 218 | $6
  1696. $E | 150 | 0 | 227 | $7
  1697. $E | 151 | 0 | 236 | $8
  1698. $E | 152 | 0 | 245 | $9
  1699. $E | 153 | 0 | 254 | $A
  1700. $F | 103 | 0 | 204 | $8
  1701. $F | 103 | 1 | 214 | $8
  1702. $F | 103 | 2 | 224 | $8
  1703. $F | 103 | 4 | 244 | $8
  1704. $F | 103 | 5 | 254 | $8
  1705. $F | 103 | 3 | 234 | $8
  1706. $F | 104 | 0 | 213 | $9
  1707. $F | 104 | 1 | 224 | $9
  1708. $F | 104 | 2 | 235 | $9
  1709. $F | 104 | 4 | 1 | $9
  1710. $F | 104 | 3 | 246 | $9
  1711. $F | 105 | 0 | 222 | $A
  1712. $F | 105 | 1 | 234 | $A
  1713. $F | 105 | 2 | 246 | $A
  1714. $F | 106 | 0 | 231 | $B
  1715. $F | 106 | 1 | 244 | $B
  1716. $F | 106 | 2 | 1 | $B
  1717. $F | 107 | 0 | 240 | $C
  1718. $F | 107 | 1 | 254 | $C
  1719. $F | 108 | 0 | 249 | $D
  1720. $F | 112 | 10 | 187 | $1
  1721. $F | 113 | 5 | 186 | $2
  1722. $F | 113 | 6 | 190 | $2
  1723. $F | 113 | 7 | 194 | $2
  1724. $F | 113 | 8 | 198 | $2
  1725. $F | 113 | 10 | 206 | $2
  1726. $F | 114 | 4 | 195 | $3
  1727. $F | 114 | 5 | 200 | $3
  1728. $F | 114 | 3 | 190 | $3
  1729. $F | 114 | 6 | 205 | $3
  1730. $F | 114 | 7 | 210 | $3
  1731. $F | 114 | 8 | 215 | $3
  1732. $F | 114 | 10 | 225 | $3
  1733. $F | 115 | 1 | 190 | $4
  1734. $F | 115 | 2 | 196 | $4
  1735. $F | 115 | 4 | 208 | $4
  1736. $F | 115 | 5 | 214 | $4
  1737. $F | 115 | 3 | 202 | $4
  1738. $F | 115 | 6 | 220 | $4
  1739. $F | 115 | 7 | 226 | $4
  1740. $F | 115 | 8 | 232 | $4
  1741. $F | 115 | 10 | 244 | $4
  1742. $F | 116 | 0 | 193 | $5
  1743. $F | 116 | 1 | 200 | $5
  1744. $F | 116 | 2 | 207 | $5
  1745. $F | 116 | 4 | 221 | $5
  1746. $F | 116 | 5 | 228 | $5
  1747. $F | 116 | 3 | 214 | $5
  1748. $F | 116 | 6 | 235 | $5
  1749. $F | 116 | 7 | 242 | $5
  1750. $F | 116 | 8 | 249 | $5
  1751. $F | 117 | 0 | 202 | $6
  1752. $F | 117 | 1 | 210 | $6
  1753. $F | 117 | 2 | 218 | $6
  1754. $F | 117 | 4 | 234 | $6
  1755. $F | 117 | 5 | 242 | $6
  1756. $F | 117 | 3 | 226 | $6
  1757. $F | 117 | 6 | 250 | $6
  1758. $F | 118 | 0 | 211 | $7
  1759. $F | 118 | 1 | 220 | $7
  1760. $F | 118 | 2 | 229 | $7
  1761. $F | 118 | 4 | 247 | $7
  1762. $F | 118 | 5 | 0 | $7
  1763. $F | 118 | 3 | 238 | $7
  1764. $F | 119 | 0 | 220 | $8
  1765. $F | 119 | 1 | 230 | $8
  1766. $F | 119 | 2 | 240 | $8
  1767. $F | 119 | 3 | 250 | $8
  1768. $F | 120 | 0 | 229 | $9
  1769. $F | 120 | 1 | 240 | $9
  1770. $F | 120 | 2 | 251 | $9
  1771. $F | 121 | 0 | 238 | $A
  1772. $F | 121 | 1 | 250 | $A
  1773. $F | 122 | 0 | 247 | $B
  1774. $F | 123 | 0 | 0 | $C
  1775. $F | 128 | 4 | 185 | $1
  1776. $F | 128 | 5 | 188 | $1
  1777. $F | 129 | 1 | 186 | $2
  1778. $F | 129 | 2 | 190 | $2
  1779. $F | 129 | 4 | 198 | $2
  1780. $F | 129 | 5 | 202 | $2
  1781. $F | 130 | 0 | 191 | $3
  1782. $F | 130 | 1 | 196 | $3
  1783. $F | 130 | 2 | 201 | $3
  1784. $F | 130 | 4 | 211 | $3
  1785. $F | 130 | 5 | 216 | $3
  1786. $F | 131 | 0 | 200 | $4
  1787. $F | 131 | 1 | 206 | $4
  1788. $F | 131 | 2 | 212 | $4
  1789. $F | 131 | 4 | 224 | $4
  1790. $F | 131 | 5 | 230 | $4
  1791. $F | 132 | 0 | 209 | $5
  1792. $F | 132 | 1 | 216 | $5
  1793. $F | 132 | 2 | 223 | $5
  1794. $F | 132 | 4 | 237 | $5
  1795. $F | 132 | 5 | 244 | $5
  1796. $F | 133 | 0 | 218 | $6
  1797. $F | 133 | 1 | 226 | $6
  1798. $F | 133 | 2 | 234 | $6
  1799. $F | 133 | 4 | 250 | $6
  1800. $F | 134 | 0 | 227 | $7
  1801. $F | 134 | 1 | 236 | $7
  1802. $F | 134 | 2 | 245 | $7
  1803. $F | 135 | 0 | 236 | $8
  1804. $F | 135 | 1 | 246 | $8
  1805. $F | 135 | 2 | 0 | $8
  1806. $F | 136 | 0 | 245 | $9
  1807. $F | 136 | 1 | 0 | $9
  1808. $F | 137 | 0 | 254 | $A
  1809. $F | 144 | 0 | 189 | $1
  1810. $F | 145 | 0 | 198 | $2
  1811. $F | 146 | 0 | 207 | $3
  1812. $F | 147 | 0 | 216 | $4
  1813. $F | 148 | 0 | 225 | $5
  1814. $F | 149 | 0 | 234 | $6
  1815. $F | 150 | 0 | 243 | $7
  1816. $F | 151 | 0 | 252 | $8
  1817.  
  1818. - Sequences of 3 battles w/ up to 4 heal units between battles for initial
  1819. battle seeds $7 and $9 (note that there are 1000s of solutions for other
  1820. seeds >=$8); format of data is:
  1821. - aa/aaa (A=bb) cc/ccc:d:e:fff (A=gg) hh/hhh>iii:j:k:lll (A=mm) nn/nnn
  1822. where: - aa/aaa = $6A68 value and most recent RNG output (i.e. $A4-22)
  1823. at beginning of first battle
  1824. - bb = action selector for first battle
  1825. - cc/ccc = $6A68 value / RNG output after first battle
  1826. - d = number of heals after first battle
  1827. - e = number of Wizard Ring uses after first battle
  1828. - fff = RNG output at beginning of second battle
  1829. - gg = action selector for second battle
  1830. - hh/hhh = $6A68 value / RNG output after second battle
  1831. - iii = RNG output after level-up for hero
  1832. - j = number of heals after second battle
  1833. - k = number of Wizard Ring uses after second battle
  1834. - lll = RNG output at beginning of third battle
  1835. - mm = action selector for third battle
  1836. - nn/nnn = $6A68 value / RNG output after third battle
  1837. NOTE: A>=6 requires Wz >= P2 in turn order
  1838. - $7/181 (A= 7) $6/194:1:0:205 (A= 0) $E/210> 54:4:0:121 (A= 0) $A/222
  1839. - $7/181 (A= 7) $6/194:1:0:205 (A= 0) $E/210> 54:4:0:121 (A= 1) $A/234
  1840. - $7/181 (A= 7) $6/194:1:0:205 (A= 0) $E/210> 54:4:0:121 (A= 2) $A/246
  1841. - $7/181 (A= 7) $6/194:1:0:205 (A= 0) $E/210> 54:3:1:122 (A= 0) $B/231
  1842. - $7/181 (A= 7) $6/194:1:0:205 (A= 0) $E/210> 54:3:1:122 (A= 1) $B/244
  1843. - $7/181 (A= 7) $6/194:1:0:205 (A= 0) $E/210> 54:3:1:122 (A= 2) $B/ 1
  1844. - $7/181 (A= 7) $6/194:1:0:205 (A= 0) $E/210> 54:2:2:123 (A= 0) $C/240
  1845. - $7/181 (A= 7) $6/194:1:0:205 (A= 0) $E/210> 54:2:2:123 (A= 1) $C/254
  1846. - $7/181 (A= 7) $6/194:1:0:205 (A= 0) $E/210> 54:1:3:124 (A= 0) $D/249
  1847. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 0) $7/211
  1848. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 1) $7/220
  1849. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 2) $7/229
  1850. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 4) $7/247
  1851. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 5) $7/ 0
  1852. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 3) $7/238
  1853. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:1:1:119 (A= 0) $8/220
  1854. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:1:1:119 (A= 1) $8/230
  1855. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:1:1:119 (A= 2) $8/240
  1856. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:1:1:119 (A= 3) $8/250
  1857. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:0:2:120 (A= 0) $9/229
  1858. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:0:2:120 (A= 1) $9/240
  1859. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:0:2:120 (A= 2) $9/251
  1860. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:3:0:135 (A= 0) $8/236
  1861. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:3:0:135 (A= 1) $8/246
  1862. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:3:0:135 (A= 2) $8/ 0
  1863. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:2:1:136 (A= 0) $9/245
  1864. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:2:1:136 (A= 1) $9/ 0
  1865. - $7/181 (A= 7) $6/194:0:1:206 (A= 0) $F/219> 81:1:2:137 (A= 0) $A/254
  1866. - $7/181 (A= 8) $6/202:0:0:205 (A= 0) $E/210> 54:4:0:121 (A= 0) $A/222
  1867. - $7/181 (A= 8) $6/202:0:0:205 (A= 0) $E/210> 54:4:0:121 (A= 1) $A/234
  1868. - $7/181 (A= 8) $6/202:0:0:205 (A= 0) $E/210> 54:4:0:121 (A= 2) $A/246
  1869. - $7/181 (A= 8) $6/202:0:0:205 (A= 0) $E/210> 54:3:1:122 (A= 0) $B/231
  1870. - $7/181 (A= 8) $6/202:0:0:205 (A= 0) $E/210> 54:3:1:122 (A= 1) $B/244
  1871. - $7/181 (A= 8) $6/202:0:0:205 (A= 0) $E/210> 54:3:1:122 (A= 2) $B/ 1
  1872. - $7/181 (A= 8) $6/202:0:0:205 (A= 0) $E/210> 54:2:2:123 (A= 0) $C/240
  1873. - $7/181 (A= 8) $6/202:0:0:205 (A= 0) $E/210> 54:2:2:123 (A= 1) $C/254
  1874. - $7/181 (A= 8) $6/202:0:0:205 (A= 0) $E/210> 54:1:3:124 (A= 0) $D/249
  1875. - $9/163 (A=10) $4/196:1:0:205 (A= 2) $E/210> 54:4:0:121 (A= 0) $A/222
  1876. - $9/163 (A=10) $4/196:1:0:205 (A= 2) $E/210> 54:4:0:121 (A= 1) $A/234
  1877. - $9/163 (A=10) $4/196:1:0:205 (A= 2) $E/210> 54:4:0:121 (A= 2) $A/246
  1878. - $9/163 (A=10) $4/196:1:0:205 (A= 2) $E/210> 54:3:1:122 (A= 0) $B/231
  1879. - $9/163 (A=10) $4/196:1:0:205 (A= 2) $E/210> 54:3:1:122 (A= 1) $B/244
  1880. - $9/163 (A=10) $4/196:1:0:205 (A= 2) $E/210> 54:3:1:122 (A= 2) $B/ 1
  1881. - $9/163 (A=10) $4/196:1:0:205 (A= 2) $E/210> 54:2:2:123 (A= 0) $C/240
  1882. - $9/163 (A=10) $4/196:1:0:205 (A= 2) $E/210> 54:2:2:123 (A= 1) $C/254
  1883. - $9/163 (A=10) $4/196:1:0:205 (A= 2) $E/210> 54:1:3:124 (A= 0) $D/249
  1884. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:2:0:121 (A= 0) $A/222
  1885. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:2:0:121 (A= 1) $A/234
  1886. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:2:0:121 (A= 2) $A/246
  1887. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:1:1:122 (A= 0) $B/231
  1888. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:1:1:122 (A= 1) $B/244
  1889. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:1:1:122 (A= 2) $B/ 1
  1890. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:0:2:123 (A= 0) $C/240
  1891. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:0:2:123 (A= 1) $C/254
  1892. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:3:0:137 (A= 0) $A/238
  1893. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:3:0:137 (A= 1) $A/250
  1894. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:2:1:138 (A= 0) $B/247
  1895. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:1:2:139 (A= 0) $C/ 0
  1896. - $9/163 (A=10) $4/196:1:0:205 (A= 4) $E/242> 86:4:0:153 (A= 0) $A/254
  1897. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:3:0:103 (A= 0) $8/204
  1898. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:3:0:103 (A= 1) $8/214
  1899. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:3:0:103 (A= 2) $8/224
  1900. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:3:0:103 (A= 4) $8/244
  1901. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:3:0:103 (A= 5) $8/254
  1902. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:3:0:103 (A= 3) $8/234
  1903. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:2:1:104 (A= 0) $9/213
  1904. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:2:1:104 (A= 1) $9/224
  1905. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:2:1:104 (A= 2) $9/235
  1906. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:2:1:104 (A= 4) $9/ 1
  1907. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:2:1:104 (A= 3) $9/246
  1908. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:1:2:105 (A= 0) $A/222
  1909. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:1:2:105 (A= 1) $A/234
  1910. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:1:2:105 (A= 2) $A/246
  1911. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:0:3:106 (A= 0) $B/231
  1912. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:0:3:106 (A= 1) $B/244
  1913. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:0:3:106 (A= 2) $B/ 1
  1914. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:4:0:120 (A= 0) $9/229
  1915. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:4:0:120 (A= 1) $9/240
  1916. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:4:0:120 (A= 2) $9/251
  1917. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:3:1:121 (A= 0) $A/238
  1918. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:3:1:121 (A= 1) $A/250
  1919. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:2:2:122 (A= 0) $B/247
  1920. - $9/163 (A=10) $4/196:0:1:206 (A= 1) $F/204> 49:1:3:123 (A= 0) $C/ 0
  1921. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:1:0:103 (A= 0) $8/204
  1922. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:1:0:103 (A= 1) $8/214
  1923. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:1:0:103 (A= 2) $8/224
  1924. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:1:0:103 (A= 4) $8/244
  1925. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:1:0:103 (A= 5) $8/254
  1926. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:1:0:103 (A= 3) $8/234
  1927. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:0:1:104 (A= 0) $9/213
  1928. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:0:1:104 (A= 1) $9/224
  1929. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:0:1:104 (A= 2) $9/235
  1930. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:0:1:104 (A= 4) $9/ 1
  1931. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:0:1:104 (A= 3) $9/246
  1932. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:2:0:120 (A= 0) $9/229
  1933. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:2:0:120 (A= 1) $9/240
  1934. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:2:0:120 (A= 2) $9/251
  1935. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:1:1:121 (A= 0) $A/238
  1936. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:1:1:121 (A= 1) $A/250
  1937. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:0:2:122 (A= 0) $B/247
  1938. - $9/163 (A=10) $4/196:0:1:206 (A= 2) $F/221> 83:3:0:137 (A= 0) $A/254
  1939. - $9/163 (A=10) $4/196:0:1:206 (A= 4) $F/255>117:0:0:120 (A= 0) $9/229
  1940. - $9/163 (A=10) $4/196:0:1:206 (A= 4) $F/255>117:0:0:120 (A= 1) $9/240
  1941. - $9/163 (A=10) $4/196:0:1:206 (A= 4) $F/255>117:0:0:120 (A= 2) $9/251
  1942. - $9/163 (A=10) $4/196:0:1:206 (A= 4) $F/255>117:1:0:137 (A= 0) $A/254
  1943. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:3:0:121 (A= 0) $A/206
  1944. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:3:0:121 (A= 1) $A/218
  1945. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:3:0:121 (A= 2) $A/230
  1946. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:3:0:121 (A= 4) $A/254
  1947. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:3:0:121 (A= 3) $A/242
  1948. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:2:1:122 (A= 0) $B/215
  1949. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:2:1:122 (A= 1) $B/228
  1950. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:2:1:122 (A= 2) $B/241
  1951. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:2:1:122 (A= 3) $B/254
  1952. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:1:2:123 (A= 0) $C/224
  1953. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:1:2:123 (A= 1) $C/238
  1954. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:1:2:123 (A= 2) $C/252
  1955. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:0:3:124 (A= 0) $D/233
  1956. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:0:3:124 (A= 1) $D/248
  1957. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:4:0:136 (A= 0) $9/213
  1958. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:4:0:136 (A= 1) $9/224
  1959. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:4:0:136 (A= 2) $9/235
  1960. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:4:0:136 (A= 4) $9/ 1
  1961. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:3:1:137 (A= 0) $A/222
  1962. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:3:1:137 (A= 1) $A/234
  1963. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:3:1:137 (A= 2) $A/246
  1964. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:2:2:138 (A= 0) $B/231
  1965. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:2:2:138 (A= 1) $B/244
  1966. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:2:2:138 (A= 2) $B/ 1
  1967. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:1:3:139 (A= 0) $C/240
  1968. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:1:3:139 (A= 1) $C/254
  1969. - $9/164 (A= 7) $5/194:1:0:204 (A= 2) $D/215> 73:0:4:140 (A= 0) $D/249
  1970. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:1:0:121 (A= 0) $A/206
  1971. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:1:0:121 (A= 1) $A/218
  1972. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:1:0:121 (A= 2) $A/230
  1973. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:1:0:121 (A= 4) $A/254
  1974. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:1:0:121 (A= 3) $A/242
  1975. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:0:1:122 (A= 0) $B/215
  1976. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:0:1:122 (A= 1) $B/228
  1977. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:0:1:122 (A= 2) $B/241
  1978. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:0:1:122 (A= 3) $B/254
  1979. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:2:0:136 (A= 0) $9/213
  1980. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:2:0:136 (A= 1) $9/224
  1981. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:2:0:136 (A= 2) $9/235
  1982. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:2:0:136 (A= 4) $9/ 1
  1983. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:1:1:137 (A= 0) $A/222
  1984. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:1:1:137 (A= 1) $A/234
  1985. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:1:1:137 (A= 2) $A/246
  1986. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:0:2:138 (A= 0) $B/231
  1987. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:0:2:138 (A= 1) $B/244
  1988. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:0:2:138 (A= 2) $B/ 1
  1989. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:3:0:151 (A= 0) $8/220
  1990. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:2:1:152 (A= 0) $9/229
  1991. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:1:2:153 (A= 0) $A/238
  1992. - $9/164 (A= 7) $5/194:1:0:204 (A= 4) $D/245>103:0:3:154 (A= 0) $B/247
  1993. - $9/164 (A= 7) $5/194:0:1:205 (A= 1) $E/210> 54:4:0:121 (A= 0) $A/222
  1994. - $9/164 (A= 7) $5/194:0:1:205 (A= 1) $E/210> 54:4:0:121 (A= 1) $A/234
  1995. - $9/164 (A= 7) $5/194:0:1:205 (A= 1) $E/210> 54:4:0:121 (A= 2) $A/246
  1996. - $9/164 (A= 7) $5/194:0:1:205 (A= 1) $E/210> 54:3:1:122 (A= 0) $B/231
  1997. - $9/164 (A= 7) $5/194:0:1:205 (A= 1) $E/210> 54:3:1:122 (A= 1) $B/244
  1998. - $9/164 (A= 7) $5/194:0:1:205 (A= 1) $E/210> 54:3:1:122 (A= 2) $B/ 1
  1999. - $9/164 (A= 7) $5/194:0:1:205 (A= 1) $E/210> 54:2:2:123 (A= 0) $C/240
  2000. - $9/164 (A= 7) $5/194:0:1:205 (A= 1) $E/210> 54:2:2:123 (A= 1) $C/254
  2001. - $9/164 (A= 7) $5/194:0:1:205 (A= 1) $E/210> 54:1:3:124 (A= 0) $D/249
  2002. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:3:0:121 (A= 0) $A/222
  2003. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:3:0:121 (A= 1) $A/234
  2004. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:3:0:121 (A= 2) $A/246
  2005. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:2:1:122 (A= 0) $B/231
  2006. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:2:1:122 (A= 1) $B/244
  2007. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:2:1:122 (A= 2) $B/ 1
  2008. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:1:2:123 (A= 0) $C/240
  2009. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:1:2:123 (A= 1) $C/254
  2010. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:0:3:124 (A= 0) $D/249
  2011. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:4:0:137 (A= 0) $A/238
  2012. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:4:0:137 (A= 1) $A/250
  2013. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:3:1:138 (A= 0) $B/247
  2014. - $9/164 (A= 7) $5/194:0:1:205 (A= 2) $E/226> 70:2:2:139 (A= 0) $C/ 0
  2015. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:3:0:121 (A= 0) $A/206
  2016. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:3:0:121 (A= 1) $A/218
  2017. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:3:0:121 (A= 2) $A/230
  2018. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:3:0:121 (A= 4) $A/254
  2019. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:3:0:121 (A= 3) $A/242
  2020. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:2:1:122 (A= 0) $B/215
  2021. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:2:1:122 (A= 1) $B/228
  2022. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:2:1:122 (A= 2) $B/241
  2023. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:2:1:122 (A= 3) $B/254
  2024. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:1:2:123 (A= 0) $C/224
  2025. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:1:2:123 (A= 1) $C/238
  2026. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:1:2:123 (A= 2) $C/252
  2027. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:0:3:124 (A= 0) $D/233
  2028. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:0:3:124 (A= 1) $D/248
  2029. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:4:0:136 (A= 0) $9/213
  2030. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:4:0:136 (A= 1) $9/224
  2031. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:4:0:136 (A= 2) $9/235
  2032. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:4:0:136 (A= 4) $9/ 1
  2033. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:3:1:137 (A= 0) $A/222
  2034. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:3:1:137 (A= 1) $A/234
  2035. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:3:1:137 (A= 2) $A/246
  2036. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:2:2:138 (A= 0) $B/231
  2037. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:2:2:138 (A= 1) $B/244
  2038. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:2:2:138 (A= 2) $B/ 1
  2039. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:1:3:139 (A= 0) $C/240
  2040. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:1:3:139 (A= 1) $C/254
  2041. - $9/164 (A= 8) $5/201:0:0:204 (A= 2) $D/215> 73:0:4:140 (A= 0) $D/249
  2042. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:1:0:121 (A= 0) $A/206
  2043. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:1:0:121 (A= 1) $A/218
  2044. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:1:0:121 (A= 2) $A/230
  2045. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:1:0:121 (A= 4) $A/254
  2046. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:1:0:121 (A= 3) $A/242
  2047. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:0:1:122 (A= 0) $B/215
  2048. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:0:1:122 (A= 1) $B/228
  2049. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:0:1:122 (A= 2) $B/241
  2050. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:0:1:122 (A= 3) $B/254
  2051. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:2:0:136 (A= 0) $9/213
  2052. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:2:0:136 (A= 1) $9/224
  2053. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:2:0:136 (A= 2) $9/235
  2054. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:2:0:136 (A= 4) $9/ 1
  2055. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:1:1:137 (A= 0) $A/222
  2056. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:1:1:137 (A= 1) $A/234
  2057. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:1:1:137 (A= 2) $A/246
  2058. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:0:2:138 (A= 0) $B/231
  2059. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:0:2:138 (A= 1) $B/244
  2060. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:0:2:138 (A= 2) $B/ 1
  2061. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:3:0:151 (A= 0) $8/220
  2062. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:2:1:152 (A= 0) $9/229
  2063. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:1:2:153 (A= 0) $A/238
  2064. - $9/164 (A= 8) $5/201:0:0:204 (A= 4) $D/245>103:0:3:154 (A= 0) $B/247
  2065. - $9/165 (A= 5) $6/194:1:0:205 (A= 0) $E/210> 54:4:0:121 (A= 0) $A/222
  2066. - $9/165 (A= 5) $6/194:1:0:205 (A= 0) $E/210> 54:4:0:121 (A= 1) $A/234
  2067. - $9/165 (A= 5) $6/194:1:0:205 (A= 0) $E/210> 54:4:0:121 (A= 2) $A/246
  2068. - $9/165 (A= 5) $6/194:1:0:205 (A= 0) $E/210> 54:3:1:122 (A= 0) $B/231
  2069. - $9/165 (A= 5) $6/194:1:0:205 (A= 0) $E/210> 54:3:1:122 (A= 1) $B/244
  2070. - $9/165 (A= 5) $6/194:1:0:205 (A= 0) $E/210> 54:3:1:122 (A= 2) $B/ 1
  2071. - $9/165 (A= 5) $6/194:1:0:205 (A= 0) $E/210> 54:2:2:123 (A= 0) $C/240
  2072. - $9/165 (A= 5) $6/194:1:0:205 (A= 0) $E/210> 54:2:2:123 (A= 1) $C/254 (*)
  2073. - $9/165 (A= 5) $6/194:1:0:205 (A= 0) $E/210> 54:1:3:124 (A= 0) $D/249
  2074. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 0) $7/211
  2075. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 1) $7/220
  2076. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 2) $7/229
  2077. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 4) $7/247
  2078. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 5) $7/ 0
  2079. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:2:0:118 (A= 3) $7/238
  2080. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:1:1:119 (A= 0) $8/220
  2081. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:1:1:119 (A= 1) $8/230
  2082. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:1:1:119 (A= 2) $8/240
  2083. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:1:1:119 (A= 3) $8/250
  2084. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:0:2:120 (A= 0) $9/229
  2085. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:0:2:120 (A= 1) $9/240
  2086. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:0:2:120 (A= 2) $9/251
  2087. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:3:0:135 (A= 0) $8/236
  2088. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:3:0:135 (A= 1) $8/246
  2089. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:3:0:135 (A= 2) $8/ 0
  2090. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:2:1:136 (A= 0) $9/245
  2091. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:2:1:136 (A= 1) $9/ 0
  2092. - $9/165 (A= 5) $6/194:0:1:206 (A= 0) $F/219> 81:1:2:137 (A= 0) $A/254
  2093. - $9/165 (A= 6) $6/202:0:0:205 (A= 0) $E/210> 54:4:0:121 (A= 0) $A/222
  2094. - $9/165 (A= 6) $6/202:0:0:205 (A= 0) $E/210> 54:4:0:121 (A= 1) $A/234
  2095. - $9/165 (A= 6) $6/202:0:0:205 (A= 0) $E/210> 54:4:0:121 (A= 2) $A/246
  2096. - $9/165 (A= 6) $6/202:0:0:205 (A= 0) $E/210> 54:3:1:122 (A= 0) $B/231
  2097. - $9/165 (A= 6) $6/202:0:0:205 (A= 0) $E/210> 54:3:1:122 (A= 1) $B/244
  2098. - $9/165 (A= 6) $6/202:0:0:205 (A= 0) $E/210> 54:3:1:122 (A= 2) $B/ 1
  2099. - $9/165 (A= 6) $6/202:0:0:205 (A= 0) $E/210> 54:2:2:123 (A= 0) $C/240
  2100. - $9/165 (A= 6) $6/202:0:0:205 (A= 0) $E/210> 54:2:2:123 (A= 1) $C/254
  2101. - $9/165 (A= 6) $6/202:0:0:205 (A= 0) $E/210> 54:1:3:124 (A= 0) $D/249
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108. [Appendix: Ortega]
  2109.  
  2110. Min RNG counter (heals) up to Ortega battle entry: (note that Charlock
  2111. B2 is low-128 encounter rate)
  2112. $6A68 | GTitan 3 | Levelups | Charl B2 | Charl B3 | Charl B4 | Ortega
  2113. -------+----------+----------+----------+----------+----------+----------
  2114. $7 | $E9 (--) | $23 (--) | $3B ( 0) | $95 ( 0) | $0B ( 0) | $45 ( 1)
  2115. $7 | $F2 (--) | $2C (--) | $44 ( 0) | $99 ( 0) | $0F ( 0) | $49 ( 1)
  2116. $7 | $FB (--) | $35 (--) | $4D ( 0) | $9E ( 0) | $1D ( 1) | $4E ( 0)
  2117. $7 | $04 (--) | $3E (--) | $56 ( 0) | $A2 ( 0) | $21 ( 1) | $52 ( 0)
  2118. $7 | $0D (--) | $47 (--) | $5F ( 0) | $A7 ( 0) | $26 ( 1) | $57 ( 0)
  2119. $7 | $16 (--) | $50 (--) | $68 ( 0) | $AB ( 0) | $2A ( 1) | $5B ( 0)
  2120. $8 | $F2 (--) | $32 (--) | $4A ( 0) | $9C ( 0) | $12 ( 0) | $4D ( 1)
  2121. $8 | $FC (--) | $3C (--) | $54 ( 0) | $A1 ( 0) | $21 ( 1) | $52 ( 0)
  2122. $8 | $02 (--) | $42 (--) | $5A ( 0) | $A4 ( 0) | $24 ( 1) | $57 ( 0)
  2123. $8 | $06 (--) | $46 (--) | $5E ( 0) | $A6 ( 0) | $26 ( 1) | $57 ( 0)
  2124. $8 | $0C (--) | $4C (--) | $64 ( 0) | $A9 ( 0) | $29 ( 1) | $5A ( 0)
  2125. $8 | $10 (--) | $50 (--) | $68 ( 0) | $AB ( 0) | $2B ( 1) | $5C ( 0)
  2126. $8 | $16 (--) | $56 (--) | $6E ( 0) | $AE ( 0) | $2E ( 1) | $5F ( 0)
  2127. $9 | $FB (--) | $41 (--) | $59 ( 0) | $A4 ( 0) | $25 ( 1) | $56 ( 0)
  2128. $9 | $06 (--) | $4C (--) | $64 ( 0) | $A9 ( 0) | $2A ( 1) | $5B ( 0)
  2129. $9 | $0B (--) | $51 (--) | $69 ( 0) | $AC ( 0) | $2D ( 1) | $5E ( 0)
  2130. $9 | $11 (--) | $57 (--) | $6F ( 0) | $AF ( 0) | $30 ( 1) | $61 ( 0)
  2131. $9 | $16 (--) | $5C (--) | $74 ( 0) | $B1 ( 0) | $32 ( 1) | $63 ( 0)
  2132. $A | $F4 (--) | $40 (--) | $58 ( 0) | $A3 ( 0) | $25 ( 1) | $56 ( 0)
  2133. $A | $00 (--) | $4C (--) | $64 ( 0) | $A9 ( 0) | $2B ( 1) | $5C ( 0)
  2134. $A | $0C (--) | $58 (--) | $70 ( 0) | $AF ( 0) | $31 ( 1) | $62 ( 0)
  2135. $A | $14 (--) | $60 (--) | $78 ( 0) | $B3 ( 0) | $35 ( 1) | $66 ( 0)
  2136. $B | $FD (--) | $4F (--) | $67 ( 0) | $AB ( 0) | $2E ( 1) | $5F ( 0)
  2137. $B | $0A (--) | $5C (--) | $74 ( 0) | $B1 ( 0) | $34 ( 1) | $65 ( 0)
  2138. $B | $17 (--) | $69 (--) | $81 ( 0) | $B8 ( 0) | $3B ( 1) | $6C ( 0)
  2139. $C | $06 (--) | $5E (--) | $76 ( 0) | $B2 ( 0) | $36 ( 1) | $67 ( 0)
  2140. $C | $14 (--) | $6C (--) | $84 ( 0) | $B9 ( 0) | $3D ( 1) | $6E ( 0)
  2141. $D | $0F (--) | $6D (--) | $85 ( 0) | $BA ( 0) | $3E ( 1) | $6F ( 0)
  2142.  
  2143. Requirements for 2-turn kill:
  2144. - Ortega's initial HP <= 308
  2145. - multi_random(101) >= 92
  2146. - 101*($A4+($6A68+2)-22) >= 92*256
  2147. - $A4+$6A68-20 >= 92*256/101
  2148. - $A4+$6A68 in [254,19]
  2149. - 2nd round Ortega turn choice: multi_random() < 2+4+6+8+10
  2150. - Pre-battle: multi_random() x 4
  2151. - Turn 1:
  2152. - multi_random() x 12
  2153. - Ortega action/target choice
  2154. - multi_random() x 4 (Hydra action/target choice x 2)
  2155. - If Ortega action is:
  2156. - Attack: multi_random() x 2, random_32()
  2157. - Infermost: multi_random() x 2
  2158. - Sleep: multi_random() x 1
  2159. - multi_random() x 2
  2160. - If Hydra action 1 is Attack: random_32()
  2161. - multi_random() x 2
  2162. - If Hydra action 2 is Attack: random_32()
  2163. - Turn 2:
  2164. - multi_random() x 12
  2165. - At this point: multi_random() < 30
  2166. - $A4+($6A68+2) < 30
  2167. - $A4+$6A68 in [254,27]
  2168. - We want Ortega to do Attack x 2, Hydra to do Attack x 4
  2169. - Hydra attack selector is 0-127, 160-191
  2170. - 1st turn resolution will be {multi_random() x 2, random_32() x 2} x 3
  2171. - Valid battle entry $A4 per $6A68: (see full tables below)
  2172. - $7: 227-240 (Hydra 2nd turn 2nd action: 74-87)
  2173. - $8: 194-200 (Hydra 2/2: 80-84)
  2174. - $9: 130 (Hydra 2/2: 71)
  2175. - $A: none
  2176. - $B: 69-86 (Hydra 2/2: 78-95)
  2177. - $C: 42-45 (Hydra 2/2: 96-99), 52-53 (Hydra 2/2: 106-107),
  2178. 210-225 (Hydra 2/2: 78-93), 226-239 (Hydra 2/2: 80-93),
  2179. 240-242 (Hydra 2/2: 80-82)
  2180. - $D: 181-182 (Hydra 2/2: 84-85), 183-193 (Hydra 2/2: 101-111),
  2181. 204-208 (Hydra 2/2: 107-111), 219-222 (Hydra 2/2: 107-111)
  2182. - Solution: $6A68 = $C, $A4 = 242
  2183. - Best entry: $C/$14 after Granite Titans, use 3 heals and 6 WizRings
  2184. before Ortega
  2185. - At battle end, $A4 = 82
  2186.  
  2187. ortega_hp = 400 - multi_random(101)
  2188. hydra_hp = 550 - multi_random(138)
  2189. ortega_focus = ubound(multi_random() / 63, 3)
  2190. hydra_focus = ubound(multi_random() / 63, 3)
  2191. slot_speed[4] = 100
  2192. slot_speed[5] = 50
  2193.  
  2194. for each turn:
  2195. for i in [0,11]:
  2196. x = slot_speed[i] / 4
  2197. turn_speed[i] = x + multi_random(slot_speed[i] - x)
  2198. ortega_first = (turn_speed[4] > turn_speed[5])
  2199. // Ortega will always go first since RNG rollovers work in his favor
  2200.  
  2201. ortega_chance = {2,4,6,8,10,12,14,200}
  2202. ortega_used_actions = {0,0,0,0,0,0,0,0}
  2203. do {
  2204. used_chance = 0
  2205. used_count = 0
  2206. for i in [0,7]:
  2207. if ortega_used_actions[i]:
  2208. used_chance += ortega_chance[i] / (7 - used_count)
  2209. used_count++
  2210. index = 0
  2211. chance = 0
  2212. r = multi_random()
  2213. while index < 8:
  2214. if not ortega_used_actions[index]:
  2215. chance += used_chance + ortega_chance[index]
  2216. if index == 7 or r < chance: break
  2217. index++
  2218. ortega_action = {Infermost,Attack,Sleep,Attack,Attack,Healall,Healall,Healall,Attack}[index]
  2219. ortega_used_action[index] = 1
  2220. if ortega_action == Attack:
  2221. dummy = choose_attack_target()
  2222. else unless ortega_action == Healall:
  2223. dummy = multi_random()
  2224. } while (ortega_action == Healall and ortega_hp >= 200)
  2225.  
  2226. hydra_action_1 = {Attack,Attack,Attack,Attack,Breath,Attack,Breath,Breath}[multi_random() / 8]
  2227. dummy = multi_random()
  2228. hydra_action_2 = {Attack,Attack,Attack,Attack,Breath,Attack,Breath,Breath}[multi_random() / 8]
  2229. dummy = multi_random()
  2230.  
  2231. if ortega_first: resolve(ortega_action, ortega_action==Healall ? Ortega : Hydra)
  2232. resolve(hydra_action, Ortega)
  2233. unless ortega_first: resolve(ortega_action, ortega_action==Healall ? Ortega : Hydra)
  2234.  
  2235. choose_attack_target():
  2236. if multi_random() <= 0x70:
  2237. return 0
  2238. if multi_random() <= 0xB3:
  2239. return 1
  2240. if multi_random() <= 0xEA:
  2241. return 2
  2242. if multi_random() <= 0xFF: // always true
  2243. return 3
  2244.  
  2245. resolve(action, target):
  2246. if action == Healall:
  2247. set target's HP to base HP
  2248. return
  2249. if action == Attack:
  2250. dummy = multi_random() // Target group reselect
  2251. dummy = multi_random() // Target enemy reselect
  2252. dummy = random_32() // Party damage calc (discarded)
  2253. if target == Hydra:
  2254. damage = ((230 - 50/2) * (bound(random_32(), 102, 153) / 4)) / 64
  2255. // Always 121
  2256. else: // target == Ortega
  2257. damage = ((240 - 220/2) * (bound(random_32(), 102, 153) / 4)) / 64
  2258. // Always 77
  2259. else if action == Infermost:
  2260. dummy = multi_random() // Target reselect
  2261. damage = 30 + multi_random(32)
  2262. else if action == Breath:
  2263. dummy = multi_random() // Target reselect
  2264. damage = 10 + multi_random(30)
  2265. apply_damage(target, damage)
  2266.  
  2267. Ortega action table (no Healall):
  2268. $6A68/$A4_in | $A4_add | Action
  2269. --------------+---------+--------
  2270. $7/ 0- 3 | +36 | Infermost
  2271. $7/ 4- 12 | +27 | Infermost
  2272. $7/ 13- 14 | +18 | Infermost
  2273. $7/ 15- 18 | +18 | Attack
  2274. $7/ 19- 24 | +18 | Sleep
  2275. $7/ 25- 42 | +18 | Attack
  2276. $7/ 43- 53 | +45 | Attack
  2277. $7/ 54- 54 | +36 | Attack
  2278. $7/ 55- 57 | +45 | Attack
  2279. $7/ 58- 68 | +36 | Attack
  2280. $7/ 69- 99 | +27 | Sleep
  2281. $7/100-107 | +27 | Attack
  2282. $7/108-165 | +36 | Attack
  2283. $7/166-173 | +45 | Attack
  2284. $7/174-194 | +54 | Attack
  2285. $7/195-214 | +72 | Attack
  2286. $7/215-223 | +63 | Attack
  2287. $7/224-230 | +54 | Attack
  2288. $7/231-232 | +63 | Infermost
  2289. $7/233-241 | +54 | Infermost
  2290. $7/242-250 | +45 | Infermost
  2291. $7/251-255 | +36 | Infermost
  2292. $8/ 0- 1 | +40 | Infermost
  2293. $8/ 2- 11 | +30 | Infermost
  2294. $8/ 12- 13 | +20 | Infermost
  2295. $8/ 14- 17 | +20 | Attack
  2296. $8/ 18- 23 | +20 | Sleep
  2297. $8/ 24- 41 | +20 | Attack
  2298. $8/ 42- 51 | +50 | Attack
  2299. $8/ 52- 53 | +40 | Attack
  2300. $8/ 54- 55 | +50 | Attack
  2301. $8/ 56- 67 | +40 | Attack
  2302. $8/ 68- 97 | +30 | Sleep
  2303. $8/ 98-104 | +30 | Attack
  2304. $8/105-161 | +40 | Attack
  2305. $8/162-171 | +50 | Attack
  2306. $8/172-191 | +60 | Attack
  2307. $8/192-207 | +80 | Attack
  2308. $8/208-217 | +70 | Attack
  2309. $8/218-226 | +60 | Attack
  2310. $8/227-227 | +70 | Infermost
  2311. $8/228-237 | +60 | Infermost
  2312. $8/238-247 | +50 | Infermost
  2313. $8/248-255 | +40 | Infermost
  2314. $9/ 0- 10 | +33 | Infermost
  2315. $9/ 11- 12 | +22 | Infermost
  2316. $9/ 13- 16 | +22 | Attack
  2317. $9/ 17- 22 | +22 | Sleep
  2318. $9/ 23- 40 | +22 | Attack
  2319. $9/ 41- 49 | +55 | Attack
  2320. $9/ 50- 52 | +44 | Attack
  2321. $9/ 53- 53 | +55 | Attack
  2322. $9/ 54- 64 | +44 | Attack
  2323. $9/ 65- 66 | +44 | Sleep
  2324. $9/ 67- 95 | +33 | Sleep
  2325. $9/ 96-101 | +33 | Attack
  2326. $9/102-157 | +44 | Attack
  2327. $9/158-169 | +55 | Attack
  2328. $9/170-188 | +66 | Attack
  2329. $9/189-200 | +88 | Attack
  2330. $9/201-211 | +77 | Attack
  2331. $9/212-222 | +66 | Attack
  2332. $9/223-233 | +66 | Infermost
  2333. $9/234-244 | +55 | Infermost
  2334. $9/245-255 | +44 | Infermost
  2335. $A/ 0- 9 | +36 | Infermost
  2336. $A/ 10- 11 | +24 | Infermost
  2337. $A/ 12- 15 | +24 | Attack
  2338. $A/ 16- 21 | +24 | Sleep
  2339. $A/ 22- 39 | +24 | Attack
  2340. $A/ 40- 47 | +60 | Attack
  2341. $A/ 48- 61 | +48 | Attack
  2342. $A/ 62- 65 | +48 | Sleep
  2343. $A/ 66- 93 | +36 | Sleep
  2344. $A/ 94- 98 | +36 | Attack
  2345. $A/ 99-153 | +48 | Attack
  2346. $A/154-167 | +60 | Attack
  2347. $A/168-184 | +72 | Attack
  2348. $A/185-185 | +84 | Attack
  2349. $A/186-193 | +96 | Attack
  2350. $A/194-205 | +84 | Attack
  2351. $A/206-217 | +72 | Attack
  2352. $A/218-218 | +60 | Attack
  2353. $A/219-229 | +72 | Infermost
  2354. $A/230-241 | +60 | Infermost
  2355. $A/242-253 | +48 | Infermost
  2356. $A/254-255 | +36 | Infermost
  2357. $B/ 0- 8 | +39 | Infermost
  2358. $B/ 9- 10 | +26 | Infermost
  2359. $B/ 11- 14 | +26 | Attack
  2360. $B/ 15- 20 | +26 | Sleep
  2361. $B/ 21- 38 | +26 | Attack
  2362. $B/ 39- 45 | +65 | Attack
  2363. $B/ 46- 58 | +52 | Attack
  2364. $B/ 59- 64 | +52 | Sleep
  2365. $B/ 65- 91 | +39 | Sleep
  2366. $B/ 92- 95 | +39 | Attack
  2367. $B/ 96-149 | +52 | Attack
  2368. $B/150-165 | +65 | Attack
  2369. $B/166-178 | +78 | Attack
  2370. $B/179-182 | +91 | Attack
  2371. $B/183-186 | +104 | Attack
  2372. $B/187-199 | +91 | Attack
  2373. $B/200-212 | +78 | Attack
  2374. $B/213-214 | +65 | Attack
  2375. $B/215-225 | +78 | Infermost
  2376. $B/226-238 | +65 | Infermost
  2377. $B/239-251 | +52 | Infermost
  2378. $B/252-255 | +39 | Infermost
  2379. $C/ 0- 7 | +42 | Infermost
  2380. $C/ 8- 9 | +28 | Infermost
  2381. $C/ 10- 13 | +28 | Attack
  2382. $C/ 14- 19 | +28 | Sleep
  2383. $C/ 20- 37 | +28 | Attack
  2384. $C/ 38- 43 | +70 | Attack
  2385. $C/ 44- 55 | +56 | Attack
  2386. $C/ 56- 63 | +56 | Sleep
  2387. $C/ 64- 89 | +42 | Sleep
  2388. $C/ 90- 92 | +42 | Attack
  2389. $C/ 93-145 | +56 | Attack
  2390. $C/146-163 | +70 | Attack
  2391. $C/164-172 | +84 | Attack
  2392. $C/173-193 | +98 | Attack
  2393. $C/194-207 | +84 | Attack
  2394. $C/208-210 | +70 | Attack
  2395. $C/211-221 | +84 | Infermost
  2396. $C/222-235 | +70 | Infermost
  2397. $C/236-249 | +56 | Infermost
  2398. $C/250-255 | +42 | Infermost
  2399. $D/ 0- 6 | +45 | Infermost
  2400. $D/ 7- 8 | +30 | Infermost
  2401. $D/ 9- 12 | +30 | Attack
  2402. $D/ 13- 18 | +30 | Sleep
  2403. $D/ 19- 36 | +30 | Attack
  2404. $D/ 37- 41 | +75 | Attack
  2405. $D/ 42- 52 | +60 | Attack
  2406. $D/ 53- 62 | +60 | Sleep
  2407. $D/ 63- 87 | +45 | Sleep
  2408. $D/ 88- 89 | +45 | Attack
  2409. $D/ 90-141 | +60 | Attack
  2410. $D/142-161 | +75 | Attack
  2411. $D/162-166 | +90 | Attack
  2412. $D/167-187 | +105 | Attack
  2413. $D/188-202 | +90 | Attack
  2414. $D/203-206 | +75 | Attack
  2415. $D/207-217 | +90 | Infermost
  2416. $D/218-232 | +75 | Infermost
  2417. $D/233-247 | +60 | Infermost
  2418. $D/248-255 | +45 | Infermost
  2419.  
  2420. Ortega action table (with Healall):
  2421. $6A68/$A4_in | $A4_add | Action
  2422. --------------+---------+--------
  2423. $7/ 0- 12 | +9 | Healall
  2424. $7/ 13- 14 | +18 | Infermost
  2425. $7/ 15- 18 | +18 | Attack
  2426. $7/ 19- 24 | +18 | Sleep
  2427. $7/ 25- 42 | +18 | Attack
  2428. $7/ 43-255 | +9 | Healall
  2429. $8/ 0- 11 | +10 | Healall
  2430. $8/ 12- 13 | +20 | Infermost
  2431. $8/ 14- 17 | +20 | Attack
  2432. $8/ 18- 23 | +20 | Sleep
  2433. $8/ 24- 41 | +20 | Attack
  2434. $8/ 42-255 | +10 | Healall
  2435. $9/ 0- 10 | +11 | Healall
  2436. $9/ 11- 12 | +22 | Infermost
  2437. $9/ 13- 16 | +22 | Attack
  2438. $9/ 17- 22 | +22 | Sleep
  2439. $9/ 23- 40 | +22 | Attack
  2440. $9/ 41-255 | +11 | Healall
  2441. $A/ 0- 9 | +12 | Healall
  2442. $A/ 10- 11 | +24 | Infermost
  2443. $A/ 12- 15 | +24 | Attack
  2444. $A/ 16- 21 | +24 | Sleep
  2445. $A/ 22- 39 | +24 | Attack
  2446. $A/ 40-255 | +12 | Healall
  2447. $B/ 0- 8 | +13 | Healall
  2448. $B/ 9- 10 | +26 | Infermost
  2449. $B/ 11- 14 | +26 | Attack
  2450. $B/ 15- 20 | +26 | Sleep
  2451. $B/ 21- 38 | +26 | Attack
  2452. $B/ 39-255 | +13 | Healall
  2453. $C/ 0- 7 | +14 | Healall
  2454. $C/ 8- 9 | +28 | Infermost
  2455. $C/ 10- 13 | +28 | Attack
  2456. $C/ 14- 19 | +28 | Sleep
  2457. $C/ 20- 37 | +28 | Attack
  2458. $C/ 38-255 | +14 | Healall
  2459. $D/ 0- 6 | +15 | Healall
  2460. $D/ 7- 8 | +30 | Infermost
  2461. $D/ 9- 12 | +30 | Attack
  2462. $D/ 13- 18 | +30 | Sleep
  2463. $D/ 19- 36 | +30 | Attack
  2464. $D/ 37-255 | +15 | Healall
  2465.  
  2466. Turn 1 $A4 table:
  2467. $6A68| Entry |@Ortega|@Hydra |Hydra-1|Hydra-2|@Resolv|EntryOK| ResOK
  2468. -----+-------+-------+-------+-------+-------+-------+-------+-------
  2469. $7|127-130| 15- 18| 33- 36| 42- 45| 60- 63| 69- 72|127-130| 69- 72
  2470. $7|137-154| 25- 42| 43- 60| 52- 69| 70- 87| 79- 96|137-154| 79- 96
  2471. $7|155-165| 43- 53| 88- 98| 97-107|115-125|124-134|155-165|124-134
  2472. $7|166-166| 54- 54| 90- 90| 99- 99|117-117|126-126|166-166|126-126
  2473. $7|167-169| 55- 57|100-102|109-111|127-129|136-138|167-167|136-136
  2474. $7|170-180| 58- 68| 96-107|105-116|123-134|132-143| --- | ---
  2475. $7|212-219|100-107|127-134|136-143|154-161|163-170| --- | ---
  2476. $7|220- 21|108-165|144-201|153-210|171-228|180-237|227-240|187-200
  2477. $7| 22- 29|166-173|211-218|220-227|238-245|247-254| --- | ---
  2478. $7| 30- 50|174-194|228-248|237- 1|255- 19| 8- 28| 49- 50| 27- 28
  2479. $7| 51- 70|195-214| 11- 30| 20- 39| 38- 57| 47- 66| 51- 70| 47- 66
  2480. $7| 71- 79|215-223| 22- 30| 31- 39| 49- 57| 58- 66| 71- 79| 58- 66
  2481. $7| 80- 86|224-230| 22- 28| 31- 37| 49- 55| 58- 64| 80- 86| 58- 64
  2482. $8|110-113| 14- 17| 34- 37| 44- 47| 64- 67| 74- 77|110-113| 74- 77
  2483. $8|120-137| 24- 41| 44- 61| 54- 71| 74- 91| 84-101|120-137| 84-101
  2484. $8|138-147| 42- 51| 92-101|102-111|122-131|132-141|138-143|132-137
  2485. $8|148-149| 52- 53| 92- 93|102-103|122-123|132-133|148-149|132-133
  2486. $8|150-151| 54- 55|104-105|114-115|134-135|144-145| --- | ---
  2487. $8|152-163| 56- 67| 96-107|106-117|126-137|136-147|152-153|136-137
  2488. $8|194-200| 98-104|128-134|138-144|158-164|168-174|196-200|170-174
  2489. $8|201- 1|105-161|145-201|155-211|175-231|185-241|201-217|185-201
  2490. $8| 2- 11|162-171|212-221|222-231|242-251|252- 5| --- | ---
  2491. $8| 12- 31|172-191|232-251|242- 5| 6- 25| 16- 35| 12- 31| 16- 35
  2492. $8| 32- 47|192-207| 16- 31| 26- 41| 46- 61| 56- 71| 32- 47| 56- 71
  2493. $8| 48- 57|208-217| 22- 31| 32- 41| 52- 61| 62- 71| 48- 57| 62- 71
  2494. $8| 58- 66|218-226| 22- 30| 32- 40| 52- 60| 62- 70| 58- 66| 62- 70
  2495. $9| 93- 96| 13- 16| 35- 38| 46- 49| 68- 71| 79- 82| 93- 96| 79- 82
  2496. $9|103-120| 23- 40| 45- 62| 56- 73| 78- 95| 89-106|103-120| 89-106
  2497. $9|121-129| 41- 49| 96-104|107-115|129-137|140-148| --- | ---
  2498. $9|130-132| 50- 52| 94- 96|105-107|127-129|138-140|130-130|138-138
  2499. $9|133-133| 53- 53|108-108|119-119|141-141|152-152| --- | ---
  2500. $9|134-144| 54- 64| 98-108|109-119|131-141|142-152| --- | ---
  2501. $9|176-181| 96-101|129-134|140-145|162-167|173-178| --- | ---
  2502. $9|182-237|102-157|146-201|157-212|179-234|190-245|185-194|193-202
  2503. $9|238-249|158-169|213-224|224-235|246- 1| 1- 12| --- | ---
  2504. $9|250- 12|170-188|236-254|247- 9| 13- 31| 24- 42| 3- 12| 33- 42
  2505. $9| 13- 24|189-200| 21- 32| 32- 43| 54- 65| 65- 76| 13- 24| 65- 76
  2506. $9| 25- 35|201-211| 22- 32| 33- 43| 55- 65| 66- 76| 25- 35| 66- 76
  2507. $9| 36- 46|212-222| 22- 32| 33- 43| 55- 65| 66- 76| 36- 46| 66- 76
  2508. $A| 76- 79| 12- 15| 36- 39| 48- 51| 72- 75| 84- 87| 76- 79| 84- 87
  2509. $A| 86-103| 22- 39| 46- 63| 58- 75| 82- 99| 94-111| 86-103| 94-111
  2510. $A|104-111| 40- 47|100-107|112-119|136-143|148-155| --- | ---
  2511. $A|112-125| 48- 61| 96-109|108-121|132-145|144-157| --- | ---
  2512. $A|158-162| 94- 98|130-134|142-146|166-170|178-182|158-162|178-182
  2513. $A|163-217| 99-153|147-201|159-213|183-237|195-249|163-171|195-203
  2514. $A|218-231|154-167|214-227|226-239|250- 7| 6- 19|224-231| 12- 19
  2515. $A|232-248|168-184|240- 0|252- 12| 20- 36| 32- 48|232-248| 32- 48
  2516. $A|249-249|185-185| 13- 13| 25- 25| 49- 49| 61- 61|249-249| 61- 61
  2517. $A|250- 1|186-193| 26- 33| 38- 45| 62- 69| 74- 81|250- 1| 74- 81
  2518. $A| 2- 13|194-205| 22- 33| 34- 45| 58- 69| 70- 81| 2- 13| 70- 81
  2519. $A| 14- 25|206-217| 22- 33| 34- 45| 58- 69| 70- 81| 14- 25| 70- 81
  2520. $A| 26- 26|218-218| 22- 22| 34- 34| 58- 58| 70- 70| 26- 26| 70- 70
  2521. $B| 59- 62| 11- 14| 37- 40| 50- 53| 76- 79| 89- 92| 59- 62| 89- 92
  2522. $B| 69- 86| 21- 38| 47- 64| 60- 77| 86-103| 99-116| 69- 86| 99-116
  2523. $B| 87- 93| 39- 45|104-110|117-123|143-149|156-162| --- | ---
  2524. $B| 94-106| 46- 58| 98-110|111-123|137-149|150-162| --- | ---
  2525. $B|140-143| 92- 95|131-134|144-147|170-173|183-186|140-143|183-186
  2526. $B|144-197| 96-149|148-201|161-214|187-240|200-253|144-148|200-204
  2527. $B|198-213|150-165|215-230|228-243|254- 13| 11- 26|200-213| 13- 26
  2528. $B|214-226|166-178|244- 0| 1- 13| 27- 39| 40- 52|214-226| 40- 52
  2529. $B|227-230|179-182| 14- 17| 27- 30| 53- 56| 66- 69|227-230| 66- 69
  2530. $B|231-234|183-186| 31- 34| 44- 47| 70- 73| 83- 86|231-234| 83- 86
  2531. $B|235-247|187-199| 22- 34| 35- 47| 61- 73| 74- 86|235-247| 74- 86
  2532. $B|248- 4|200-212| 22- 34| 35- 47| 61- 73| 74- 86|248- 4| 74- 86
  2533. $B| 5- 6|213-214| 22- 23| 35- 36| 61- 62| 74- 75| 5- 6| 74- 75
  2534. $C| 42- 45| 10- 13| 38- 41| 52- 55| 80- 83| 94- 97| 42- 45| 94- 97
  2535. $C| 52- 69| 20- 37| 48- 65| 62- 79| 90-107|104-121| 52- 69|104-121
  2536. $C| 70- 75| 38- 43|108-113|122-127|150-155|164-169| --- | ---
  2537. $C| 76- 87| 44- 55|100-111|114-125|142-153|156-167| --- | ---
  2538. $C|122-124| 90- 92|132-134|146-148|174-176|188-190|122-124|188-190
  2539. $C|125-177| 93-145|149-201|163-215|191-243|205- 1|125-125|205-205
  2540. $C|178-195|146-163|216-233|230-247| 2- 19| 16- 33|178-195| 16- 33
  2541. $C|196-204|164-172|248- 0| 6- 14| 34- 42| 48- 56|196-204| 48- 56
  2542. $C|205-225|173-193| 15- 35| 29- 49| 57- 77| 71- 91|205-225| 71- 91
  2543. $C|226-239|194-207| 22- 35| 36- 49| 64- 77| 78- 91|226-239| 78- 91
  2544. $C|240-242|208-210| 22- 24| 36- 38| 64- 66| 78- 80|240-242| 78- 80
  2545. $D| 25- 28| 9- 12| 39- 42| 54- 57| 84- 87| 99-102| 25- 28| 99-102
  2546. $D| 35- 52| 19- 36| 49- 66| 64- 81| 94-111|109-126| 35- 52|109-126
  2547. $D| 53- 57| 37- 41|112-116|127-131|157-161|172-176| --- | ---
  2548. $D| 58- 68| 42- 52|102-112|117-127|147-157|162-172| --- | ---
  2549. $D|104-105| 88- 89|133-134|148-149|178-179|193-194| --- | ---
  2550. $D|106-157| 90-141|150-201|165-216|195-246|210- 5| --- | ---
  2551. $D|158-177|142-161|217-236|232-251| 6- 25| 21- 40| --- | ---
  2552. $D|178-182|162-166|252- 0| 11- 15| 41- 45| 56- 60|178-182| 56- 60
  2553. $D|183-203|167-187| 16- 36| 31- 51| 61- 81| 76- 96|183-203| 76- 96
  2554. $D|204-218|188-202| 22- 36| 37- 51| 67- 81| 82- 96|204-218| 82- 96
  2555. $D|219-222|203-206| 22- 25| 37- 40| 67- 70| 82- 85|219-222| 82- 85
  2556.  
  2557. Turn 2 $A4 table:
  2558. $6A68|Resolv1| End-1 |@Ortega|Ortg-OK|@Hydra |Hydra-1|Hydra-2| Entry
  2559. -----+-------+-------+-------+-------+-------+-------+-------+-------
  2560. $7| 27- 28| 17- 18|125-126| --- | | | |
  2561. $7| 47- 66| 37- 56|145-164| --- | | | |
  2562. $7| 58- 66| 48- 56|156-164| --- | | | |
  2563. $7| 58- 64| 48- 54|156-162| --- | | | |
  2564. $7| 69- 72| 59- 62|167-170| --- | | | |
  2565. $7| 79- 96| 69- 86|177-194| --- | | | |
  2566. $7|124-134|114-124|222-232| --- | | | |
  2567. $7|126-126|116-116|224-224| --- | | | |
  2568. $7|136-136|126-126|234-234| --- | | | |
  2569. $7|187-200|177-190| 29- 42| 29- 42| 47- 60| 56- 69| 74- 87|227-240
  2570. $8| 16- 35| 12- 31|132-151| --- | | | |
  2571. $8| 56- 71| 52- 67|172-187| --- | | | |
  2572. $8| 74- 77| 70- 73|190-193| --- | | | |
  2573. $8| 84-101| 80- 97|200-217| --- | | | |
  2574. $8|132-137|128-133|248-253| --- | | | |
  2575. $8|170-174|166-170| 30- 34| 30- 34| 50- 54| 60- 64| 80- 84|194-200
  2576. $8|185-201|181-197| 45- 61| --- | | | |
  2577. $9| 33- 42| 35- 44|167-176| --- | | | |
  2578. $9| 65- 76| 67- 78|199-210| --- | | | |
  2579. $9| 66- 76| 68- 78|200-210| --- | | | |
  2580. $9| 66- 76| 68- 78|200-210| --- | | | |
  2581. $9| 79- 82| 81- 84|213-216| --- | | | |
  2582. $9| 89-106| 91-108|223-240| --- | | | |
  2583. $9|138-138|140-140| 16- 16| 16- 16| 38- 38| 49- 49| 71- 71|130-130
  2584. $9|193-202|195-204| 71- 80| --- | | | |
  2585. $A| 12- 19| 20- 27|164-171| --- | | | |
  2586. $A| 32- 48| 40- 56|184-200| --- | | | |
  2587. $A| 61- 61| 69- 69|213-213| --- | | | |
  2588. $A| 70- 81| 78- 89|222-233| --- | | | |
  2589. $A| 84- 87| 92- 95|236-239| --- | | | |
  2590. $A| 94-111|102-119|246- 7| --- | | | |
  2591. $A|178-182|186-190| 74- 78| --- | | | |
  2592. $A|195-203|203-211| 91- 99| --- | | | |
  2593. $B| 13- 26| 27- 40|183-196| --- | | | |
  2594. $B| 40- 52| 54- 66|210-222| --- | | | |
  2595. $B| 66- 69| 80- 83|236-239| --- | | | |
  2596. $B| 74- 86| 88-100|244- 0| --- | | | |
  2597. $B| 89- 92|103-106| 3- 6| --- | | | |
  2598. $B| 99-116|113-130| 13- 30| 13- 30| 39- 56| 52- 69| 78- 95| 69- 86
  2599. $B|183-186|197-200| 97-100| --- | | | |
  2600. $B|200-204|214-218|114-118| --- | | | |
  2601. $C| 16- 33| 36- 53|204-221| --- | | | |
  2602. $C| 48- 56| 68- 76|236-244| --- | | | |
  2603. $C| 71- 91| 91-111| 3- 23| 8- 23| 36- 51| 50- 65| 78- 93|205-242
  2604. $C| 94- 97|114-117| 26- 29| 26- 29| 54- 57| 68- 71| 96- 99| 42- 45
  2605. $C|104-121|124-141| 36- 53| 36- 37| 64- 65| 78- 79|106-107| 52- 53
  2606. $C|188-190|208-210|120-122| --- | | | |
  2607. $C|205-205|225-225|137-137| --- | | | |
  2608. $D| 56- 60| 82- 86| 6- 10| 9- 10| 39- 40| 54- 55| 84- 85|181-182
  2609. $D| 76- 96|102-122| 26- 46| 26- 36| 56- 66| 71- 81|101-111|183-193
  2610. $D| 82- 96|108-122| 32- 46| 32- 36| 62- 66| 77- 81|107-111|204-208
  2611. $D| 82- 85|108-111| 32- 35| 32- 35| 62- 65| 77- 81|107-111|219-222
  2612. $D| 99-102|125-128| 49- 52| --- | | | |
  2613. $D|109-126|135-152| 59- 76| --- | | | |
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620. [Appendix: Boss rush]
  2621. (assumes Magic Armor, but we ended up not needing it)
  2622.  
  2623. Plan, in reverse turn order:
  2624. - Zoma turn 2: 4 high Herb hits before Zoma acts
  2625. - Zoma turn 1: low breath damage, possibly some Herb hits
  2626. - Gonus turn 4: high damage
  2627. - Gonus turn 3: high damage, Surround evade
  2628. - Gonus turn 2: high damage, Surround evade
  2629. - Gonus turn 1: high damage, Surround hit, Surround evade
  2630. - Bomus turn 2: high damage before Bomus acts
  2631. - Bomus turn 1: high damage
  2632. - Hydra turn 2: high damage before Hydra acts
  2633. - Hydra turn 1: high damage
  2634.  
  2635. Let B0 = $6A68+2 at beginning of turn, B1 = $6A68+2 after party menu
  2636. $A4_0/$6A68_0, $A4_1/$6A68_1 similarly
  2637.  
  2638. Zoma turn 2:
  2639. - HP regen: 90 + multi_random(20)
  2640. - Turn order: 22-6*B0 <= $A4_0 < 22-5*B0
  2641. - B1-2 = ($A4_0+13*B0-21) & 15
  2642. - Zoma actions: $A4 += 4*B1
  2643. - High Herb hits: $A4_next2-22 <= 36 so $A4_next2 <= 58
  2644. - 4 high Herb hits: $A4_0 + 13*B0+1 + 12*B1 <= 58
  2645. - Max B0 (if B1 = 2):
  2646. - 22-6*B0 <= $A4_0 < 22-5*B0
  2647. - $A4_0 + 13*B0+1 + 24 <= 58 --> $A4_0 <= 33-13*B0
  2648. - 22-6*B0 <= 33-13*B0 --> 7*B0 <= 11 --> no solutions :(
  2649. - If we only need 1 herb, B0=2 $A4_0=11 gives B1=2 and damage=252
  2650. *** How about letting Zoma go first with Freezing Wave?
  2651. - Turn order: anything goes
  2652. - B1-2 = ($A4_0+13*B0-21) & 15
  2653. - For B1=2: B0=2 -> $A4_0=$xB; B0=3 -> $A4_0=$xE; etc.
  2654. - Zoma actions - Freezing Wave: $A4_next-22 >= 224 so $A4_next >= 246
  2655. - $A4_0 + 13*B0+1 + 1*B1 >= 246
  2656. - $A4_0 + 13*B0+1 + 3*B1 <= 277 (21)
  2657. - 4 high Herb hits: $A4_0 + 13*B0+1 + 12*B1 <= 58
  2658. - Limits for B1: k + 1*B1 >= 246, k + 3*B1 <= 277, k + 12*B1 <= 314
  2659. - k + 1*B1 >= 246 and k + 3*B1 <= 277 --> B1 < 16
  2660. - k + 1*B1 >= 246 and k + 12*B1 <= 314 --> 11*B1 <= 68 --> B1 <= 6
  2661. - k + 3*B1 <= 277 and k + 12*B1 <= 314 --> 9*B1 <= 37 --> B1 <= 4
  2662. - Final: B1 <= 4
  2663. - $A4_0 + 13*B0+1 + 1*B1 >= 246 --> $A4_0 >= 245 - 13*B0 - 1*B1
  2664. - $A4_0 + 13*B0+1 + 3*B1 <= 277 --> $A4_0 <= 277 - 13*B0 - 3*B1
  2665. - $A4_0 + 13*B0+1 + 13*B1 <= 314 --> $A4_0 <= 313 - 13*B0 - 13*B1
  2666. - Table of valid $A4_0:
  2667. B0 | $A4_0, B1=2 | $A4_0, B1=3 | $A4_0, B1=4 | Valid B1:$A4_0
  2668. ----+-------------+-------------+-------------+-----------------
  2669. 2 | $D9,$F5,$05 | $D8,$F2,$F8 | $D7,$EF,$EB | 2:DB,EB 3:DC,EC 4:DD
  2670. 3 | $CC,$E8,$F8 | $CB,$E5,$EB | $CA,$E2,$DE | 2:CE,DE 3:CF,DF 4:D0
  2671. 4 | $BF,$DB,$EB | $BE,$D8,$DE | $BD,$D5,$D1 | 2:C1,D1 3:C2,D2 4:C3
  2672. etc.
  2673. - For any $6A68_0, $A4_0 can be (in order of best to worst Herb damage):
  2674. - $EC=236-13*$6A68_0 (236+241+246+252 = 975)
  2675. - $DD=221-13*$6A68_0 (230+237+244+251 = 962)
  2676. - $EB=235-13*$6A68_0 (229+232+235+239 = 935)
  2677. - $DC=220-13*$6A68_0 (186+191+233+238 = 848)
  2678. - $DB=219-13*$6A68_0 (178+181+185+188 = 732)
  2679. - Solved!
  2680.  
  2681. Zoma turn 1:
  2682. - Party max HP on entry: 114+[0,8], 93+[0,4], 90+[0,4], 85+[0,4]
  2683. - Initial HP and focus target: whatever (initial HP is constant anyway)
  2684. - Turn order: whatever (Zoma speed = 255 and party speed < 65 so can't win)
  2685. - B1-2 = ($A4_0+14*B0-21) & 15
  2686. - Zoma breath damage: +1..4*B1
  2687. - Zoma Snowstorm target: +5*B1 (whatever)
  2688. - Zoma Snowstorm damage: +6..9*B1
  2689. - Zoma status reset (Sphere of Light): +10,11*B1
  2690. - [P1] herb damage: +13*B1
  2691. - [Hr] herb damage & end of turn: +15*B1
  2692. - Most important to keep breath damage down (100-139); Snowstorm 55-66 is meh
  2693. (and cut by equipment)
  2694. - [Wz] must parry (no herb) (Pilgrims use Parry bug)
  2695. - Assuming Snowstorm=45 (parry=22), max allowable breath damage:
  2696. - [P2]: 86-22 = 64, max breath damage = 63*2+1 = 127
  2697. - [Hr]: 114-45 = 69, max breath damage = 68*3/2-1 = 101... uh oh
  2698. - How low can we go?
  2699. - 0 <= $A4-22 <= 12
  2700. - 22 <= $A4 <= 34
  2701. - Can we get to turn 2 from there?
  2702. - [22,34] + 14*B1 + 13*(B1-2) = 236
  2703. - [22,34] + 27*B1 = 262
  2704. - floor((262-22)/27) = 8
  2705. - 22 + 27*8 = 238
  2706. - 34 + 27*8 = 250
  2707. - Nope, no solution :( Need at least 1 more HP
  2708. - If hero has 1 more HP:
  2709. - 0 <= $A4-22 <= 25
  2710. - 22 <= $A4 <= 47
  2711. - 262 - 27*8 = 46 (B1 = 8)
  2712. - 46 - B1 = 38
  2713. - (38 - 22) & 15 = 0 => B1 = 2 => contradiction :(
  2714.  
  2715. ========== Let's try again! ==========
  2716.  
  2717. Zoma turn 3:
  2718. - $6A68_0 = 1 (B0 = 3), $A4_0 = 46
  2719. - HP regen = 90 + (46+3-22)*20/256 = 92
  2720. - After turn order, $A4 = 85
  2721. - B1 = 2 + ((86-22) & 15) = 2
  2722. - Zoma actions: Attack [Hr] x 2
  2723. - Herb users are [P1] and [P2]
  2724.  
  2725. Zoma turn 2:
  2726. - As above, $A4 = 236 - 13*$6A68 on entry
  2727. - $A4_end = $A4_0 + 13*B0+1 + 13*B1 = 236 + 13*2+1 + 13*3 = 302 = 46
  2728. - B1 = 3
  2729.  
  2730. Zoma turn 1:
  2731. - Revive hero; [Hr] can act as needed to consume RNG output
  2732. - Let N = number of multi-randoms consumed by [Hr]
  2733. - Optimal end state into turn 2: $A4_end = 236 - 13*(B1-2) = 262 - 13*B1
  2734. - Breath reqs:
  2735. - 0 <= $A4_end - (8+N)*B1 <= 89
  2736. - 0 <= $A4_end - (9+N)*B1 <= 121 (always true unless wraparound)
  2737. - Table for optimal $A4_end: (middle columns are N=0,1,2,5)
  2738. B1 | $A4_end | -11*B1 | -12*B1 | -13*B1 | -16*B1 | Solutions
  2739. ----+---------+--------+--------+--------+--------+-----------
  2740. 5 | 197=$C5 | 142=8E | 137=89 | 132=84 | 117=75 | ---
  2741. 6 | 184=$B8 | 118=76 | 112=70 | 106=6A | 88=58 | ---
  2742. 7 | 171=$AB | 94=5E | 87=57 | 80=50 | 59=3B | 59=$3B (N=5)
  2743. 8 | 158=$9E | 70=46 | 62=3E | 54=36 | 30=1E | ---
  2744. 9 | 145=$91 | 46=2E | 37=25 | 28=1C | 1=01 | ---
  2745. - $A4_0 = $A4_end - (11+N)*B1 - (14*B0+1) -- for $A4_end=171, B1=7, N=5:
  2746. - $A4_0 = 171 - 16*7 - 14*B0 - 1
  2747. - $A4_0 = 58 - 14*B0
  2748. - Keep $A4_0 >= 22 or <= 21-B0*6 so party turn order isn't inverted
  2749. - Possible values:
  2750. - $A4_0 = 30, $6A68_0 = $0
  2751. - $A4_0 = 202, $6A68_0 = $6
  2752. - $A4_0 = 188, $6A68_0 = $7
  2753. - $A4_0 = 174, $6A68_0 = $8
  2754. - ...
  2755. - $A4_0 = 76, $6A68_0 = $F
  2756. - Hey, with $A4_0=30 [Hr] survives 1st round! Can we sneak back to the
  2757. 2-turn kill?
  2758. - Oops, attack is only 5*B1 when B1=16...
  2759.  
  2760. ========== Let's try again! ==========
  2761.  
  2762. Zoma turn 3:
  2763. - As above, if needed
  2764.  
  2765. Zoma turn 2:
  2766. - As above, $A4_0 = 236 - 13*$6A68
  2767.  
  2768. Zoma turn 1:
  2769. - Party max HP on entry: 114+[0,8], 93+[0,4], 90+[0,4], 85+[0,4]
  2770. - Initial HP and focus target: whatever (initial HP is constant anyway)
  2771. - Turn order: whatever (Zoma speed = 255 and party speed < 65 so can't win)
  2772. - B1-2 = ($A4_0+14*B0-21) & 15
  2773. - Zoma breath damage: +1..4*B1
  2774. - Zoma Snowstorm target: +5*B1 (whatever)
  2775. - Zoma Snowstorm damage: +6..9*B1
  2776. - Zoma status reset (Sphere of Light): +10,11*B1
  2777. - [P1] herb damage: +13*B1
  2778. - [Hr] herb damage & end of turn: +15*B1 = $A4_end = 236-13*$6A68_1 = 262-13*B1
  2779. - $A4_1 = 262-28*B1
  2780. B1 | $A4_1
  2781. ----+-------
  2782. 2 | $CE (invalid)
  2783. 3 | $B2 (invalid)
  2784. 4 | $96 (invalid)
  2785. 5 | $7A (invalid)
  2786. 6 | $5E (invalid)
  2787. 7 | $42 (invalid)
  2788. 8 | $26 (invalid)
  2789. 9 | $0A (invalid)
  2790. 10 | $EE
  2791. 11 | $D2 (invalid)
  2792. 12 | $B6 (invalid)
  2793. 13 | $9A (invalid)
  2794. 14 | $7E (invalid)
  2795. 15 | $62 (invalid)
  2796. 16 | $46 (invalid)
  2797. 17 | $2A (invalid)
  2798. - So $A4_1 = $EE, B1 = 10
  2799. - Damage limit: [Hr] 113 (everyone else survives with Parry)
  2800. - Breath damage: $A4_1+1*B1, (100 + multi_random(40)) * 2/3 + 1 = 91
  2801. - Snowstorm damage: $A4_1+6*B1, (55 + multi_random(12)) * 2/3 + 1 = 37
  2802. - Total damage: 128 :(
  2803. - No double Herb, but we can actually get a 2-turn kill with a single Herb
  2804. if damage >= 1023-(975-regen)
  2805. - Wait, are there any valid B1/$A4_1 combos? ($A4_1 = 262-26*B1)
  2806. B1 | $A4_1
  2807. ----+-------
  2808. 2 | $D2 (invalid)
  2809. 3 | $B8 (invalid)
  2810. 4 | $9E (invalid)
  2811. 5 | $84 (invalid)
  2812. 6 | $6A
  2813. 7 | $50 (invalid)
  2814. 8 | $36 (invalid)
  2815. 9 | $1C (invalid)
  2816. 10 | $02 (invalid)
  2817. 11 | $E8 (invalid)
  2818. 12 | $CE (invalid)
  2819. 13 | $B4 (invalid)
  2820. 14 | $9A (invalid)
  2821. 15 | $80 (invalid)
  2822. 16 | $66 (invalid)
  2823. 17 | $4C (invalid)
  2824. - $A4_1 = $6A
  2825. - $A4_herb = $A4_1 + 13*B1 = $B8
  2826. - $A4_regen = $A4_herb + B1 = $C2
  2827. - HP regen = 90 + multi_random(20) = 103
  2828. - Required damage = 1023-(975-103) = 151
  2829. - Herb damage = (229 + multi_random(219)) & 255 = 111
  2830. - Oh well, no 2-turn kill so hero can do 0*B1, 1*B1 or Attack as well:
  2831. B1 | $A4_1/0 | $A4_1/1 | $A4_1/attack
  2832. ----+---------+---------+--------------
  2833. 2 | $D6** | $D4 | $B0
  2834. 3 | $BE | $BB | $95
  2835. 4 | $A6 | $A2 | $7A
  2836. 5 | $8E | $89** | $5F
  2837. 6 | $76 | $70 | $44
  2838. 7 | $5E | $57 | $29
  2839. 8 | $46 | $3E | $0E
  2840. 9 | $2E | $25 | $F3
  2841. 10 | $16 | $0C | $D8
  2842. 11 | $FE | $F3 | $BD
  2843. 12 | $E6 | $DA | $A2
  2844. 13 | $CE | $C1** | $87
  2845. 14 | $B6 | $A8 | $6C
  2846. 15 | $9E | $8F | $51
  2847. 16 | $86 | $76 | $36
  2848. 17 | $6E | $5D | $1B
  2849. - Solutions:
  2850. - $A4_1 = $6A, $A4_0 = 78 - $6A68_0*14 (hero 2*B1)
  2851. - To avoid party turn order wrap (ignoring [Wz]): no bad $6A68_0
  2852. - $A4_1 = $89, $A4_0 = 108 - $6A68_0*14 (hero 1*B1)
  2853. - To avoid party turn order wrap (ignoring [Wz]): $6A68_0 not $5
  2854. - $A4_1 = $C1, $A4_0 = 164 - $6A68_0*14 (hero 1*B1)
  2855. - To avoid party turn order wrap (ignoring [Wz]): $6A68_0 not $9
  2856. - $A4_1 = $D6, $A4_0 = 185 - $6A68_0*14 (hero 0*B1)
  2857. - To avoid party turn order wrap (ignoring [Wz]): $6A68_0 not $A, $B
  2858. - Well, hang on, can we get better luck with a different turn 2 seed?
  2859. B1 | $DD/2Herb | $DD/1Herb | $EB/2Herb | $EB/1Herb
  2860. ----+-----------+-----------+-----------+-----------
  2861. 2 | $BF | $C3 | $CD | $D1
  2862. 3 | $A3 | $A9 | $B1 | $B7 (ok)
  2863. 4 | $87 | $8F | $95 | $9D
  2864. 5 | $6B | $75 | $79 (ok) | $83
  2865. 6 | $4F | $5B | $5D | $69
  2866. 7 | $33 | $41 | $41 | $4F
  2867. 8 | $17 | $27 | $25 | $35
  2868. 9 | $FB | $0D (ok) | $09 | $1B
  2869. 10 | $DF | $F3 | $ED | $01
  2870. 11 | $C3 | $D9 | $D1 | $E7
  2871. 12 | $A7 | $BF | $B5 | $CD
  2872. 13 | $8B | $A5 | $99 | $B3
  2873. 14 | $6F | $8B | $7D | $99
  2874. 15 | $53 (ok) | $71 | $61 | $7F
  2875. 16 | $37 | $57 | $45 | $65
  2876. 17 | $1B | $3D | $29 | $4B
  2877. - Valid $A4_1: 15/$53, 9/$0D, 5/$79, 3/$B7
  2878. - Do 1-turn Herb seeds work?
  2879. - 9/$0D:
  2880. - $A4_herb = $A4_1 + 13*B1 = $82
  2881. - $A4_regen = $A4_herb + B1 = $C2
  2882. - HP regen = 90 + multi_random(20) = 99
  2883. - Required damage = 1023-(962-99) = 160
  2884. - Herb damage = (229 + multi_random(219)) & 255 = 65
  2885. - 3/$B7:
  2886. - $A4_herb = $A4_1 + 13*B1 = $DE
  2887. - $A4_regen = $A4_herb + B1 = $E1
  2888. - HP regen = 90 + multi_random(20) = 105
  2889. - Required damage = 1023-(935-105) = 193
  2890. - Herb damage = (229 + multi_random(219)) & 255 = 144
  2891. - No luck
  2892. - Damage for 15/$53:
  2893. - Breath damage: $A4_1+1*B1, (100 + multi_random(40)) * 2/3 + 1 = 75
  2894. - Snowstorm damage: $A4_1+6*B1, (55 + multi_random(12)) * 2/3 + 1 = 42
  2895. - Total damage: 117, might survive!
  2896. - $A4_0 = $36-14*$6A68_0, turn order can be anything if no death
  2897. - With this, we get 229+254 Herb damage so need only 3 Herbs next turn!
  2898. (Hero doesn't need a second Herb)
  2899. - Required HP at entry: [Hr]=118, [P1]=79, [P2]=80, [Wz]=61
  2900. - Damage for 3/$B7:
  2901. - Breath damage: $A4_1+1*B1, (100 + multi_random(40)) * 2/3 + 1 = 84
  2902. - Snowstorm damage: $A4_1+6*B1, (55 + multi_random(12)) * 2/3 + 1 = 43
  2903. - Total damage: 127 :(
  2904.  
  2905. Gonus turn 3:
  2906. - $A4_map = $36 - 14*$6A68_1 (possibly minus healing)
  2907. - Level spam = $54+B1 = $56+$6A68_1
  2908. - $A4_end = $36 - 3 - $56 - 15*$6A68_1
  2909. = $DD - 15*$6A68_1
  2910. - Can we work with B1=2, $A4_1=$86 to match up with old Gonus 2?
  2911. - $A4_end = $DD
  2912. - Attack+Attack+Blazemore: $86->$8A->$B0->$D6->$DA, need 1 WizRing
  2913. - But hero won't get any max HP
  2914. - May need map healing for max HP += 4
  2915. - Max HP += 4 requires $A4_map <= $18 or $A4_map >= $E6
  2916. - Possible $A4_1 = $A4_end - 2*B1 - N*B1 - M*(B1+1) - A*(32+3*B1), assuming
  2917. at least 2 high attacks (hero attack + spell or 2 spells):
  2918. B1 | $A4_end | maxHP+4 | A=0/N/M | A=1/N/M | A=2/N/M | A=3/N/M
  2919. ----+---------+---------+---------+---------+---------+---------
  2920. 2 | $DD | $BF/15 | $96/14/3| $66/1/15| $46/7/9 | $26/13/3
  2921. 3 | $CE | $BC/6 | $97/5/4 | $77/6/1 | $47/3/5 | $17/4/6
  2922. 4 | $BF | $BB/1 | $98/3/3 | $68/4/3 | $48/1/3 | $18/2/3
  2923. 5 | $B0 | $B0/0 | $79/3/5 | $59/6/0 | $39/3/0 | $09/2/1
  2924. 6 | $A1 | $A1/0 | $6A/6/1 | $4A/3/1 | $0A/3/3 | $DA/5/1
  2925. 7 | $92 | $92/0 | $4B/7/1 | $2B/4/1 | $0B/1/1 | $BB/6/0
  2926. 8 | $83 | $B3/26 | $BC/21/7| $8C/20/7| $4C/12/15| $1C/20/7
  2927. 9 | $74 | $B7/21 | $CD/14/9| $9D/15/7| $5D/10/12| $2D/21/1
  2928. 10 | $65 | $B1/18 | $CE/13/7| $9E/16/3| $5E/14/5| $1E/12/7
  2929. 11 | $56 | $B1/15 | $DF/16/1| $9F/5/11| $5F/6/10| $1F/7/9
  2930. 12 | $47 | $AB/13 | $D0/13/3| $A0/7/7 | $60/11/3| $10/12/3
  2931. 13 | $38 | $A9/11 | $E1/8/5 | $A1/1/11| $61/8/4 | $11/13/0
  2932. 14 | $29 | $AB/9 | $F2/8/3 | $B2/3/7 | $52/11/1| $22/7/3
  2933. 15 | $1A | $B1/7 | $A3/16/0| $83/13/0| $63/10/0| $33/7/1
  2934. 16 | $0B | $AB/6 | $F4/2/7 | $B4/1/7 | $64/1/7 | $14/1/7
  2935. 17 | $FC | $A7/5 | $E5/2/7 | $B5/1/6 | $75/2/4 | $25/5/1
  2936. - Nice-looking options:
  2937. - $2B (7/A=1, Infermost*2 + Blazemore, 1 WizRing on map)
  2938. - $4B (7/A=0, can use all spells, 2+ heals + 1 WizRing on map)
  2939. - $59 (5/A=1, Infermost*2 + Blazemore, 2 heals on map)
  2940. - $6A (6/A=0, can use all spells, 1+ heals + 1 WizRing on map)
  2941. - Will cause party turn order split after [Hr] in Zoma turn 1
  2942. - $4A, $77 might also be feasible
  2943.  
  2944. [scratched] Gonus turn 2.5: (to heal in place of Bomus turn 2 Healus)
  2945. - HP regen = 44 + multi_random(12)
  2946. - Turn order = whatever
  2947. - $A4_1 = $6A, B1 = 6
  2948. - So $A4_2 - $A4_end = $4F
  2949. - Party B1 budget: 4-8, 7-10+32, 10-12+64, 13+96 (174 = $AE)
  2950. - Gonus B1 consumption: 2*B1 (action/target) + 32 + 2*B1
  2951. - So $A4_party is effectively $A2, or $F1 with respect to $A4_2
  2952. - Can we get to a turn 3 input?
  2953. - Nice-looking ones are all wrong parity
  2954. - $BB might work (WizRing+3*B1 here, 6 heals on map)
  2955. - Nope, [P1] dies and we can't spare a Revive next turn
  2956. - Target should be in [$16,$B5] for Surround
  2957. - Skip [Wz] Blazemore in turn 2?
  2958. - $A4_1 = $64, B1 = 16
  2959. - $A4_2 - $A4_end = $E1
  2960. - $A4_party = $B4 / $95
  2961. - Nothing decent in range (nothing decent in $x5/$x6 in the first place)
  2962. - [Wz] Blazemore -> Snowblast in turn 2?
  2963. - $A4_1 = $67, B1 = 3
  2964. - $A4_2 - $A4_end = $28
  2965. - $A4_party = $93 / $BB
  2966. - Nuttin
  2967. - Infermost -> Healus in turn 2?
  2968. - $A4_1 = $73, B1 = 15
  2969. - $A4_2 - $A4_end = $C4
  2970. - $A4_party = $CF / $93
  2971. - $2B with 1*attack + 5*B1
  2972. - Not enough damage
  2973. - $4A with 1*attack + 6*B1 + WizRing
  2974. - Even less damage
  2975. - $59 with 1*attack + 7*B1 + WizRing (not reachable)
  2976. - $6A with 2*attack + 3*B1 + WizRing (not reachable)
  2977. - Infermost -> Healus and [Wz] Blazemore -> Snowblast in turn 2?
  2978. - $A4_1 = $70, B1 = 12
  2979. - $A4_2 - $A4_end = $9D
  2980. - $A4_party = $C0 / $5D
  2981. - $6A with a single WizRing, but we'll be way short on damage
  2982. - Infermost -> Healus and skip [Wz] Blazemore in turn 2?
  2983. - Losing too much damage, this isn't going to work
  2984. - Scratch this, let's try between turns 1 and 2
  2985.  
  2986. Gonus turn 2:
  2987. - HP regen = 44 + multi_random(12)
  2988. - Turn order = whatever
  2989. - Party B1 consumption:
  2990. - Attacks = A*(32+3*B1)
  2991. - Spells = S*B1 (Infermost=[0,3], Blazemore={0,2}, Firebane=1)
  2992. - Gonus B1 consumption: 2*B1 (action/target) + 32 + 2*B1
  2993. - Gonus standard evade check: $A4_end - 1*B1
  2994. - Assume check fails ($A4 not in [22,25])
  2995. - Gonus Surround evade check: $A4_end
  2996. - $A4_end = $4B - (1+13*B1): evade OK if B1 <= 4
  2997. - $A4_end = $59 - (1+13*B1): evade OK if B1 <= 5
  2998. - $A4_end = $6A - (1+13*B1): evade OK if B1 <= 6
  2999. - Table: (omitting trivial dupes of S>=3 where S-=3, A+=1)
  3000. B1 | $A4_2 | $A4_end | $A4_Gonus | $A4_1 | A/S
  3001. ----+-------+---------+-----------+-------+-----
  3002. 2 | $4B | $30 | $08 | $B6 | 2/3
  3003. 2 | $59 | $3E | $16 | $C6 | 2/2
  3004. 2 | $6A | $4F | $27 | --- | ---
  3005. 3 | $4B | $23 | $F7 | --- | ---
  3006. 3 | $59 | $31 | $05 | $C7 | 3/1
  3007. 3 | $6A | $42 | $16 | $07 | 0/5 (2x low spell damage)
  3008. 4 | $4B | $16 | $E6 | --- | ---
  3009. 4 | $59 | $24 | $F4 | --- | ---
  3010. 4 | $6A | $35 | $05 | --- | ---
  3011. 5 | $59 | $17 | $E3 | $D9 | 0/2
  3012. 5 | $6A | $28 | $F4 | --- | ---
  3013. 6 | $6A | $1B | $E3 | --- | ---
  3014. - No real good options... maybe we can pull it off with $07?
  3015.  
  3016. [scratched] Gonus turn 1.5: (to heal in place of Bomus turn 2 Healus)
  3017. - HP regen = 44 + multi_random(12)
  3018. - Turn order = whatever
  3019. - $A4_1 = $07, B1 = 3
  3020. - So $A4_2 - $A4_end = $28
  3021. - Party B1 budget: 4-8, 7-10+32, 10-12+64, 13+96 (174 = $AE)
  3022. - Gonus B1 consumption: 2*B1 (action/target) + 32 + 2*B1
  3023. - So $A4_party is effectively $33, or $5B with respect to $A4_2
  3024. - Target should be in [$16,$B5] for Surround
  3025. - Can we get to a turn 2 input?
  3026. - Nope, too far away
  3027. - [Wz] Blazemore -> Snowblast in turn 1?
  3028. - $A4_1 = $F9, B1 = 5
  3029. - $A4_2 - $A4_end = $42
  3030. - $A4_party = $2D / $6F
  3031. - $C6: 1*attack + 8*B1 (2*Healus?)
  3032. - $C7: 1*attack + 7*B1 + WizRing (unreachable)
  3033. - Skip [Wz] Blazemore in turn 1?
  3034. - $A4_1 = $EB, B1 = 7
  3035. - $A4_2 - $A4_end = $5C
  3036. - $A4_party = $27 / $83
  3037. - $C6: 1*attack + 2*B1 (2*Healmore?)
  3038. - Not enough damage
  3039. - I think we just need to go and re-solve Hydra or Bomus...
  3040. - Never mind, we can just Snowblast in turn 3 and get an extra map heal!
  3041.  
  3042. Gonus turn 1:
  3043. - Party max HP on entry: 114+[0,4], 93+[0,4], 90+[0,4], 85+[0,4]
  3044. - Gonus initial HP = whatever
  3045. - Gonus focus target = whatever
  3046. - Turn order = whatever (Gonus speed is 0 so always goes last)
  3047. - Surround resistance is 70% so RNG output must be >=179 for it to hit
  3048. - Gonus action = multi_random() // always Attack
  3049. - Gonus target = ubound(multi_random()/63, 3)
  3050. - [P2] Surround check: $A4_1 + 3*B1
  3051. - [P1] Infermost damage: $A4_1 + 4*B1
  3052. - Could move Surround here if needed for RNG
  3053. - [Hr] Infermost damage: $A4_1 + 5*B1
  3054. - [Wz] Blazemore damage: $A4_1 + 7*B1
  3055. - Gonus standard evade check: $A4 + 7*B1 + 32 + 1*B1
  3056. - Gonus Surround evade check: $A4 + 7*B1 + 32 + 2*B1 (= $A4_end)
  3057. - Surround: $A4_1 + 4B1 - 22 >= 179 --> $A4_1 >= 201 - 4*B1
  3058. - Party damage: $A4_1 + 7*B1 - 22 <= 255 --> $A4_1 <= 277 - 7*B1
  3059. - Evade: $A4_1 + 9*B1 + 32 - 22 >= 256 --> $A4_1 >= 246 - 9*B1
  3060. - Table:
  3061. B1 | $A4_1 range | Valid $A4_1 | $A4_end | $A4_2
  3062. ----+---------------+---------------+---------------+--------------
  3063. 2 | 228/E4-263/07 | $E6, $F6, $06 | $18, $28, $38 | $33, $43, $53
  3064. 3 | 219/DB-256/00 | $E7, $F7 | $22, $32 | $4A, $5A
  3065. 4 | 210/D2-249/F9 | $D8, $E8, $F8 | $1C, $2C, $3C | $51, $61, $71
  3066. 5 | 201/C9-242/F2 | $C9, $D9, $E9 | $16, $26, $36 | $58, $68, $78
  3067. 6 | 192/C0-235/EB | $CA, $DA, $EA | $20, $30, $40 | $6F, $7F, $8F
  3068. 7 | 183/B7-228/E4 | $BB, $CB, $DB | $1A, $2A, $3A | $76, $86, $96
  3069. 8 | 174/AE-221/DD | $BC, $CC, $DC | $24, $34, $44 | $8D, $9D, $AD
  3070. 9 | 165/A5-214/D6 | $AD, $BD, $C | $1E, $2E, $3E | $94, $A4, $B4
  3071. 10 | 161/A1-207/CF | $AE, $BE, $CE | $28, $38, $48 | $AB, $BB, $CB
  3072. 11 | 157/9D-200/C8 | $9F, $AF, $BF | $22, $32, $42 | $B2, $C2, $D2
  3073. 12 | 153/99-193/C1 | $A0, $B0, $C0 | $2C, $3C, $4C | $C9, $D9, $E9
  3074. 13 | 149/95-186/BA | $A1, $B1 | $36, $46 | $E0, $F0
  3075. 14 | 145/91-179/B3 | $92, $A2, $B2 | $30, $40, $50 | $E7, $F7, $07
  3076. 15 | 141/8D-172/AC | $93, $A3 | $3A, $4A | $FE, $0E
  3077. 16 | 137/89-165/A5 | $94, $A4 | $44, $54 | $15, $25
  3078. 17 | 133/85-158/9E | $85, $95 | $3E, $4E | $1C, $2C
  3079. - $07 matches with turn 2
  3080. - $A4_1 = $B2
  3081. - We have enough damage output, yay!
  3082. - We actually have to use plain Infernos once in turn 3 to avoid early kill
  3083. - MP use through end: [Hr] 3, [P1] 27, [P2] 17, [Wz] 18
  3084.  
  3085. Bomus turn 2:
  3086. - HP regen = 44 + multi_random(12)
  3087. - Turn order:
  3088. - If party first, $A4_0 + 5*B0 - 22 <= 255, $A4_0 + 6*B0 - 22 >= 256
  3089. - Bomus action count: 1 action --> 86 <= $A4_1 + 1*B1 - 22 <= 170
  3090. - $6C <= $A4_1 + 1*B1 <= $C0
  3091. - Bomus action: attack = 32 + (2+n)*B1 (depending on target),
  3092. breath = 4*B1, Explodet = 5*B1
  3093. - Infermost 1 resist check: $A4_1 + Bomus + 1*B1 - 22 >= 77
  3094. - $A4_1 + 1*B1 >= 99
  3095. - Level spam: +($106+6*B1) = 6+6*B1
  3096. - $A4_map = $A4_1 + Bomus + 2n(Infermost)*B1 + 2 + (6+6*B1) + 1
  3097. - $A4_map = $B2 - 1 - 14*B1
  3098. - $A4_end = $A4_map - (2 + (6+6*B1) + 1) = $B2 - 10 - 20*B1
  3099. - For $A4_1 = $A4_end - N*B1:
  3100. B1 | $A4_end | $A4_1/N
  3101. ----+---------+---------
  3102. 2 | $80 | $76/5
  3103. 3 | $6C | $97/71, $67/87
  3104. 4 | $58 | $B8/40, $A8/44, $98/48, $88/52, $78/56
  3105. 5 | $44 | $A9/31
  3106. 6 | $30 | $9A/25
  3107. 7 | $1C | $7B/23
  3108. 8 | $08 | -----
  3109. 9 | $F4 | $6D/15
  3110. 10 | $E0 | $AE/5
  3111. 11 | $CC | $7F/7
  3112. 12 | $B8 | $A0/2, $70/6
  3113. 13 | $A4 | $71/63
  3114. 14 | $90 | $82/1
  3115. 15 | $7C | $73/++
  3116. 16 | $68 | -----
  3117. 17 | $54 | $B5/++
  3118. - For $A4_1 = $A4_end - N*B1 - 32 (1 attack, N >= 3):
  3119. B1 | $A4_end | $A4_1/N
  3120. ----+---------+---------
  3121. 2 | $80 | $B6/++
  3122. 3 | $6C | $A7/55, $77/71
  3123. 4 | $58 | $B8/32, $A8/36, $98/40, $88/44, $78/48
  3124. 5 | $44 | $89/31
  3125. 6 | $30 | $AA/17, $7A/25
  3126. 7 | $1C | $7B/55
  3127. 8 | $08 | -----
  3128. 9 | $F4 | $BD/31
  3129. 10 | $E0 | $8E/5
  3130. 11 | $CC | $AF/23
  3131. 12 | $B8 | $C0/18
  3132. 13 | $A4 | $81/79
  3133. 14 | $90 | $82/17
  3134. 15 | $7C | $73/++
  3135. 16 | $68 | -----
  3136. 17 | $54 | $B5/++
  3137. - Party acts first:
  3138. - Can use 2/$76 (5), 10/$AE (5), 11/$7F (7), 12/$70 (6)
  3139. - Valid B0 and corresponding $A4_0 for turn order:
  3140. B0 | $70 | $76 | $7F | $AE
  3141. ----+-----+-----+-----+-----
  3142. 12 | $D3 | $D9 | --- | ---
  3143. 13 | --- | $CC | --- | ---
  3144. 14 | --- | --- | $C8 | ---
  3145. - Damage (Infermost+Infermost+Blazemore+Infermost)
  3146. - 12/$70: 83+89+82+103 = 357
  3147. - 2/$76: 82+83+78+ 86 = 329
  3148. - 11/$7F: 87+92+83+105 = 367
  3149. - Bomus attack:
  3150. - Requires $A4_1 + 2*B1 - 22 < 96 (consequently B1 < 10 for 1 action)
  3151. - $A4_1 + 2*B1 < $76
  3152. - No solutions
  3153. - Bomus Explodet/breath:
  3154. - Consumes 7*B1 (Explodet), 6*B1 (breath)
  3155. - Only 9/$6D (15) looks feasible; allows Healus
  3156. - Bomus action with $A4_1=$6D, B1=9:
  3157. - count = $76-$16 = $60, ok
  3158. - action = $7F-$16 = $69 = Explodet, ok
  3159. - Solution: $A4_1 = $6D, $A4_0 = $6C-13*B0
  3160. - Party B1 budget 8, Infermost+Healus+Infermost+Parry (damage 206)
  3161. - To avoid party turn order split: B0 <= 7 or B0 >= 13
  3162. - MP use through end: [Hr] 3, [P1] 45, [P2] 26, [Wz] 18
  3163. - To get more damage, swap Healus for Infermost and add 2x Heal on map
  3164.  
  3165. Bomus turn 1:
  3166. - Party max HP on entry: 114+[0,4], 93, 90, 85
  3167. - Bomus initial HP = whatever
  3168. - Bomus focus target = whatever
  3169. - Turn order: whatever (assume Bomus goes first)
  3170. - Bomus action count: multi_random(3)
  3171. - For 1 action: 86 <= $A4_1+1*B1-22 <= 170, $6C <= $A4_1+1*B1 <= $C0
  3172. - Bomus action: whatever
  3173. - Bomus target: whatever
  3174. - Turn 2 solutions for party acting first:
  3175. - B1 = 12, $A4_end = $D3
  3176. - B1 = 12, $A4_end = $D9
  3177. - B1 = 13, $A4_end = $CC
  3178. - B1 = 14, $A4_end = $C8
  3179. - Assume full spell press, so party consumes 5*B1
  3180. - What is Bomus action? $A4 after action selection for each action
  3181. B1 | $A4_end | $A4_party | Attack |Explodet| Breath
  3182. ----+---------+-----------+--------+--------+--------
  3183. 12 | $D3 | $97 | $5F ok | $5B | $67
  3184. 12 | $D9 | $9D | $65 ok | $61 | $6D
  3185. 13 | $CC | $8B | $5A ok | $4A ok | $57
  3186. 14 | $C8 | $82 | $46 | $3C ok | $4A
  3187. - But all of these imply 2 actions... need >=$6C+B1 after action selection
  3188. - Attack is bad, would target and kill hero
  3189. - We do have a lot of damage available on turn 2; can we get away
  3190. with 2*Infermost here?
  3191. B1 | $A4_end | $A4_party | Attack |Explodet| Breath
  3192. ----+---------+-----------+--------+--------+--------
  3193. 12 | $D3 | $BB | --- | $7F ok | $8B
  3194. 12 | $D9 | $C1 | $7D | $85 ok | $91
  3195. 13 | $CC | $B2 | $78 | $71 | $7E
  3196. 14 | $C8 | $AC | $70 ok | $66 | $74
  3197. - The two Explodets work, $A4_1 = $67 or $6D
  3198. - But those don't give the proper B1 :(
  3199. - Okay, I guess Bomus gets to go first on turn 2 ($A4_2 = $6D)
  3200. - Bomus action count: 1 action --> $6C <= $A4_1 + 1*B1 <= $C0
  3201. - Bomus action ($A4 after action selection):
  3202. - Attack: [$6C+B1,$75]
  3203. - Explodet: [lbound($76,$6C+B1),$95], [$B6,$C0+B1]
  3204. - Breath: [$96,$B5]
  3205. - Last spell(s) will fail unless $6D-1-13*B1 < 0 --> B1 >= 9
  3206. - Required $A4_1/N in $A4_1+N*B1+1 = $A4_2: (including +32 for Bomus attack)
  3207. (2 damage spells: N>=27 for Explodet, N>=26 for breath)
  3208. B1 | Attack |Explodet| Breath
  3209. ----+--------+--------+--------
  3210. 9 | ------ | $7D/55 | $8D/167
  3211. 10 | ------ | $6E/51 | $8E/99
  3212. 11 | ------ | $AF/87 | $9F/135
  3213. 12 | ------ | $60/65 | $80/41
  3214. 13 | ------ | $A1/55 | $91/135
  3215. 14 | ------ | $A2/51 | $82/35
  3216. 15 | ------ | $63/103| $83/135
  3217. 16 | ------ | ------ | ------
  3218. 17 | ------ | $A5/87 | $95/103
  3219. - No usable options :(
  3220. - What if [Hr] attacks? (32+3*B1, 39 damage)
  3221. B1 | Attack |Explodet| Breath
  3222. ----+--------+--------+--------
  3223. 2 | ------ | $B6/75 | $A6/83
  3224. 3 | ------ | $77/71 | $A7/55
  3225. 4 | $68/49 | $B8/37 | $A8/41
  3226. 5 | $69/39 | $89/39 | $99/87
  3227. 6 | ------ | $7A/35 | $8A/75
  3228. 7 | ------ | $AB/23 | $9B/135
  3229. 8 | ------ | $6C/28 | $9C/54
  3230. 9 | ------ | $AD/103| $8D/135
  3231. 10 | ------ | $AE/67 | $9E/43
  3232. 11 | ------ | $6F/43 | $9F/155
  3233. 12 | ------ | $60/41 | $90/37
  3234. 13 | ------ | $71/135| $81/55
  3235. 14 | ------ | $62/35 | $82/51
  3236. 15 | ------ | $63/135| $83/167
  3237. 16 | ------ | ------ | ------
  3238. 17 | ------ | $A5/55 | $95/71
  3239. - Only usable option is 8/$6C (28, party budget = 8)
  3240. - Attack+Infermost+Infermost+Herb, 232 damage
  3241. - MP use through end: [Hr] 3, [P1] 54, [P2] 35, [Wz] 18
  3242. - HP regen = 44
  3243. - Required initial HP for turn 2 Healus = 206+232-44 = 383 or less
  3244. - $A4-22 at initial HP calculation >= 174
  3245. - $A4_1 - 1 - 13*B0 < 22
  3246. - -13*B0 < 22 + 1 - 108
  3247. - 13*B0 > 85
  3248. - B0 >= 7
  3249. - To avoid [Wz]/Bomus turn order split: B0 < 11 or B0 > 12
  3250. - Valid inputs:
  3251. B0 | $A4_0
  3252. ----+-------
  3253. 7 | $09
  3254. 8 | $FB
  3255. 9 | $ED
  3256. 10 | $DF
  3257. 13 | $B5
  3258. 14 | $A7
  3259. 15 | $99
  3260. 16 | $8B
  3261. 17 | $7D
  3262. - Actually, high B0 won't work because $A4 gets too low, oops
  3263. - $A4_1+256 - 1 - 13*B0 - 22 >= 174
  3264. - -13*B0 >= 174 - (108 + 255 - 22)
  3265. - 13*B0 <= 167
  3266. - B0 <= 12
  3267. - Splits party turn order, oops ([Hr] Infermost damage goes low)
  3268.  
  3269. Hydra turn 4:
  3270. - HP regen = 90 + multi_random(20)
  3271. - Turn order:
  3272. - Don't need [Wz] to act
  3273. - $A4_0 + 4*B0 - 22 <= 255, $A4_0 + 6*B0 - 22 >= 256
  3274. - Level spam: +($53+B1)
  3275. - Bomus preconditions:
  3276. - $A4_map = $4F - 14*$6A68_1
  3277. - $6A68_1 in {$5, $6, $7, $8, $B, $C, $D, $E, $F}
  3278. - $A4_end = $4F - 14*$6A68_1 - (2 + $53+($6A68_1+2) + 1)
  3279. - 3*Infermost (+ Hydra AI), Nx Heal and Mx WizRing on map:
  3280. $A4_1 = $A4_end - (7+N)*B1 - M*(B1+1)
  3281. - Can add 3*B1 with IceBolt (if [Wz] acts and Hydra HP allows),
  3282. 3*B1 with Healus
  3283. - Will need at least 3x WizRing for [P1] MP
  3284. - Minimum N/M for valid $A4_1:
  3285. B1 | $A4_end | N | M | $A4_1
  3286. ----+---------+---+---+-------
  3287. 7 | $AC | 0 | 4 | $5B
  3288. 8 | $9D | 1 | 9 | $0C
  3289. 9 | $8E | 4 | 3 | $0D
  3290. | | 0 | 5 | $1D
  3291. 10 | $7F | 1 | 3 | $0E
  3292. 13 | $52 | 0 | 5 | $B1
  3293. 14 | $43 | 7 | 3 | $52
  3294. 15 | $34 | 8 | 3 | $23
  3295. 16 | $25 | 0 |17 | $C4
  3296. 17 | $16 | 0 | 5 | $45
  3297. - To satisfy turn order:
  3298. - $A4_1 - 1 - 9*B0 < 22, $A4_1 - 1 - 7*B0 >= 22
  3299. - 9*B0 > $A4_1 - 23, 7*B0 <= $A4_1 - 23
  3300. - Table:
  3301. $A4_1 | B0_min | B0_max
  3302. -------+--------+--------
  3303. $5B | 8 | 9
  3304. $0C | 28 | 35
  3305. $0D | 28 | 35
  3306. $1D | 30 | 37
  3307. $0E | 28 | 35
  3308. $B1 | 18 | 22
  3309. $52 | 7 | 8
  3310. $23 | 30 | 38
  3311. $C4 | 20 | 24
  3312. $45 | 6 | 6
  3313. - Damage table:
  3314. $A4_1 | B1 | 3*Infermost
  3315. -------+----+----------------
  3316. $45 | 17 | 90+94+98 = 282
  3317. $52 | 14 | 90+93+97 = 280
  3318. $5B | 7 | 84+86+87 = 257
  3319. - Solutions:
  3320. B0 | $A4_1 | $A4_0 | N/M | Wz? | Regen
  3321. ----+-------+-------+-----+-----+-------
  3322. 6 | $45 | $F6 | 0/5 | Y | 107
  3323. 7 | $52 | $F6 | 7/3 | N | 108
  3324. 8 | $52 | $E9 | 7/3 | Y | 107
  3325. 8 | $5B | $F2 | 0/4 | N | 107
  3326. 9 | $5B | $E5 | 0/4 | Y | 106
  3327. - MP use through Hydra: [Hr] 0, [P1] 9, [P2] 9, [Wz] 0
  3328.  
  3329. Hydra turn 3:
  3330. - HP regen = 90 + multi_random(20)
  3331. - Turn order: whatever (assume Hydra goes first)
  3332. - Note: Hydra resolution consumes 4*B1 for breath, 1*B1+32 for attack
  3333. - Valid outputs:
  3334. B1 | $A4_end | Damage (damage - regen for rest of battle)
  3335. ----+---------+--------
  3336. 6 | $F6 | 175
  3337. 7 | $F6 | 172
  3338. 8 | $E9 | 173
  3339. 8 | $F2 | 150
  3340. 9 | $E5 | 151
  3341. - B1=8 has wrong parity (even with WizRing) so we can scratch it off right now
  3342. - Assuming 3*Infermost, pre-party $A4 is:
  3343. B1 | $A4_end | $A4_party
  3344. ----+---------+-----------
  3345. 6 | $F6 | $E4
  3346. 7 | $F6 | $E1
  3347. 9 | $E5 | $CA
  3348. - How much more party B1 needed to make it double breath?
  3349. B1 |$A4_party|Max Breath2|Breath1|Target2|Action2|Target1|Action1
  3350. ----+---------+-----------+-------+-------+-------+-------+-------
  3351. 6 | $E4 | $E4 | $CC | $AE | $A8 | $A2 | $9C
  3352. 7 | $E1 | $4E | $33 | $17 | $10 | $09 | $02
  3353. 9 | $CA | $5E | $3A | $16 | $0D | $04 | $FB
  3354. - Let's see if we can make B1=6 work, because the others are horrible
  3355. - $A4_1 table:
  3356. B1 | $A4_end | $A4_1/N
  3357. ----+---------+---------
  3358. 6 | $F6 | $9C/16 (off by +2)
  3359. - No luck, guess we need to have some attacks...
  3360. - $A4_1 table again, without and with WizRing:
  3361. B1 | $A4_end | M=0 | M=1
  3362. ----+---------+-------+-------
  3363. 6 | $F6 | $EA/2 | -----
  3364. 7 | $F6 | $9B/13| $9B/4
  3365. 9 | $E5 | $9D/8 | $5D/14
  3366. - What sort of action sequences can we get? (N excluding action selection)
  3367. B1 | $A4_1 |Action1|Target1|Action2|Target2| N/A |$A4_party|PartyB1
  3368. ----+-------+-------+-------+-------+-------+-----+---------+-------
  3369. 6 | $9A | $A0 | $A6 | $AC | $B2 | 8/0 | $E2 | --
  3370. 6 | $8A | $90 | $96 | $9C | $A2 | 5/1 | $EC | --
  3371. 6 | $7A | $80 | $86 | $8C | $92 | 5/1 | $DE | 4
  3372. 7 | $9B | $A2 | $A9 | $B0 | $B7 | 8/0 | $EF | 1
  3373. 7 | $5B | $62 | $69 | $70 | $77 | 2/2 | $C5 | 7
  3374. 9 | $9D | $A6 | $AF | $B8 | $C1 | 5/1 | $0E | --
  3375. 9 | $7D | $86 | $8F | $98 | $A1 | 5/1 | $EE | --
  3376. 9 | $5D | $66 | $6F | $78 | $81 | 2/2 | $D3 | 2
  3377. - I like 6/$7A, can we make that work?
  3378. - Party B1 = 4, so Infermost+Infermost+Infermost+Herb
  3379. - Damage: 108+109+112 = 329, to end of battle = 504
  3380. - Hey, can we get back down to 3 turns? or even 2?
  3381. - Erp, wait, this is a double attack death... why did I think otherwise?
  3382. - Can still do Revive+Infermost+Infermost+Blaze
  3383. - Damage: 108+112 = 220, to end of battle = 395
  3384. - MP use through Hydra: [Hr] 0, [P1] 18, [P2] 29, [Wz] 2
  3385. - Other possibilities need Revive:
  3386. - 7/$5B would give a Healus: Revive+Healus+Infermost+Blaze
  3387. - Damage: 112, just barely outdamages regen; total = 284
  3388. - MP use through Hydra: [Hr] 0, [P1] 27, [P2] 29, [Wz] 2
  3389. - Vivify doesn't work here
  3390. - Only 3 WizRings after battle, this is probably not enough
  3391. - 9/$5D: Revive+Infermost+Infermost+Parry
  3392. - Damage: 106+108 = 214, total = 365
  3393. - MP use through end: [Hr] 0, [P1] 18, [P2] 29, [Wz] 0
  3394. - B0 required to avoid turn order split:
  3395. - 7/$5B: B0 <= 6 or B0 >= 10
  3396. - 9/$5D: B0 <= 6 or B0 >= 11
  3397. - 6/$7A: B0 <= 9 or B0 >= 15
  3398. - $A4_0 table:
  3399. B0 | $5B | $5D | $7A
  3400. ----+-----+-----+-----
  3401. 2 | $40 | $42 | $5F
  3402. 3 | $33 | $35 | $52
  3403. 4 | $26 | $28 | $45
  3404. 5 | $19 | $1B | $38
  3405. 6 | $0C | $0E | $2B
  3406. 7 | --- | --- | $1E
  3407. 8 | --- | --- | $11
  3408. 9 | --- | --- | $04
  3409. 10 | $D8 | --- | ---
  3410. 11 | $CB | $CD | ---
  3411. 12 | $BE | $C0 | ---
  3412. 13 | $B1 | $B3 | ---
  3413. 14 | $A4 | $A6 | ---
  3414. 15 | $97 | $99 | $B6
  3415. 16 | $8A | $8C | $A9
  3416. 17 | $7D | $7F | $9C
  3417.  
  3418. Hydra turn 2:
  3419. - HP regen = 90 + multi_random(20)
  3420. - Turn order: whatever (assume Hydra goes first)
  3421. - Valid outputs:
  3422. B1 | $A4_end | Damage (damage - regen for rest of battle)
  3423. ----+---------+--------
  3424. 2 | $40 | 194
  3425. 2 | $42 | 296
  3426. 2 | $5F | 300
  3427. 3 | $33 | 195
  3428. 3 | $35 | 297
  3429. 3 | $52 | 300
  3430. 4 | $26 | 196
  3431. 4 | $28 | 298
  3432. 4 | $45 | 301
  3433. 5 | $19 | 197
  3434. 5 | $1B | 299
  3435. 5 | $38 | 302
  3436. 6 | $0C | 178
  3437. 6 | $0E | 280
  3438. 6 | $2B | 303
  3439. 7 | $1E | 304
  3440. 8 | $11 | 305
  3441. 9 | $04 | 286
  3442. 10 | $D8 | 181
  3443. 11 | $CB | 182
  3444. 11 | $CD | 284
  3445. 12 | $BE | 183
  3446. 12 | $C0 | 285
  3447. 13 | $B1 | 184
  3448. 13 | $B3 | 286
  3449. 14 | $A4 | 185
  3450. 14 | $A6 | 287
  3451. 15 | $97 | 186
  3452. 15 | $99 | 288
  3453. 15 | $B6 | 292
  3454. 16 | $8A | 187
  3455. 16 | $8C | 289
  3456. 16 | $A9 | 293
  3457. 17 | $7D | 188
  3458. 17 | $7F | 290
  3459. 17 | $9C | 294
  3460. - B1=8, B1=16 have wrong parity in all cases
  3461. - Ignoring WizRing since we already have so many cases (hopefully at least
  3462. one of them will work...)
  3463. - Valid $A4_1 with N*B1 + A*32 (N >= 15-3*A):
  3464. B1 | $A4_end | A=0 | A=1 | A=2
  3465. ----+---------+--------+--------+--------
  3466. 2 | $40 | $16/21 | $06/13 | $E6/13 (low MP recovery)
  3467. 2 | $42 | $16/22 | $06/14 | $E6/14
  3468. 2 | $5F | ------ | ------ | ------
  3469. 3 | $33 | $F7/20 | $D7/20 | $B7/20 (low MP recovery)
  3470. 3 | $35 | $E7/26 | $C7/26 | $D7/10
  3471. 3 | $52 | $07/25 | $E7/25 | $F7/ 9
  3472. 4 | $26 | ------ | ------ | ------ (low MP recovery)
  3473. 4 | $28 | $E8/16 | $D8/12 | $B8/12
  3474. 4 | $45 | ------ | ------ | ------
  3475. 5 | $19 | $C9/16 | $A9/16 | $89/16 (low MP recovery)
  3476. 5 | $1B | $99/26 | $79/26 | $A9/10
  3477. 5 | $38 | $D9/19 | $B9/19 | $99/19
  3478. 6 | $0C | $9A/19 | $7A/19 | $8A/11 (low MP recovery)
  3479. 6 | $0E | $8A/22 | $9A/14 | $7A/14
  3480. 6 | $2B | ------ | ------ | ------
  3481. 7 | $1E | $8B/21 | $6B/21 | $4B/21
  3482. 9 | $04 | $7D/15 | $5D/15 | $3D/15
  3483. 10 | $D8 | $2E/17 | $0E/17 | $3E/ 9 (low MP recovery)
  3484. 11 | $CB | $EF/20 | $CF/20 | $AF/20 (low MP recovery)
  3485. 11 | $CD | $AF/26 | $8F/26 | $1F/10
  3486. 12 | $BE | ------ | ------ | ------ (low MP recovery)
  3487. 12 | $C0 | $00/16 | $10/12 | $F0/12
  3488. 13 | $B1 | $E1/16 | $C1/16 | $A1/16 (low MP recovery)
  3489. 13 | $B3 | $61/26 | $41/26 | $F1/10
  3490. 14 | $A4 | $D2/15 | $B2/15 | $92/15 (low MP recovery)
  3491. 14 | $A6 | $C2/30 | $C2/14 | $A2/14
  3492. 15 | $97 | $F3/28 | $C3/12 | $A3/12 (low MP recovery)
  3493. 15 | $99 | $13/26 | $F3/26 | $C3/10
  3494. 15 | $B6 | $03/29 | $D3/13 | $B3/13
  3495. 17 | $7D | $E5/24 | $C5/24 | $A5/24 (low MP recovery)
  3496. 17 | $7F | $C5/26 | $A5/26 | $95/10
  3497. 17 | $9C | $15/23 | $F5/23 | $D5/23
  3498. - Any A=0 with N in [18,21] (for Healus) that will give us double breath?
  3499. B1 |$A4_end| $A4_1/N |Action1|Target1|Action2|Target2|Breath1|Breath2
  3500. ----+-------+---------+-------+-------+-------+-------+-------+-------
  3501. 3 | $33 | $F7/20 | $FA | $FD | $00 | $03 | $0F | $1B
  3502. 4 | $28 | $D8/20 | $DC | $E0 | $E4 | $E8 | $F8 | $08
  3503. 5 | $38 | $D9/19 | $DE | $E3 | $E8 | $ED | $01 | $15
  3504. 6 | $0C | $9A/19 | $A0 | $A6 | $AC | $B2 | $CA | $E2
  3505. 7 | $1E | $8B/21 | $92 | not breath
  3506. 11 | $CB | $EF/20 | $FA | $05 | $10 | $1B | $47 | $73
  3507. - Options:
  3508. - 3/$F7: N=8, Healus+2*Infermost+Blaze
  3509. - Damage: 64+66 = 130 (total = 325)
  3510. - Turn order split impossible
  3511. - 4/$D8: N=8, Healus+2*Infermost+Blaze
  3512. - Damage: 117+62 = 189 (total = 487) (Healus 2nd for high Infermost dmg)
  3513. - Turn order split impossible
  3514. - 5/$D9: N=7, Healus+2*Infermost+Firebal
  3515. - Damage: 65+66 = 131 (total = 433)
  3516. - Turn order split impossible
  3517. - 6/$9A: N=7, Healus+2*Infermost+Firebal
  3518. - Damage: 114+116 = 230 (total = 408)
  3519. - To avoid turn order split: B0 <= 11
  3520. - 11/$EF: N=8, Healus+2*Infermost+Blaze
  3521. - Damage: 94+97 = 191 (total = 406)
  3522. - Turn order split impossible
  3523. - No turn 1 solution for any of those, sigh. How about we skip the Healus?
  3524. B1 |$A4_end| $A4_1/N |Action1|Target1|Action2|Target2|Breath1|Breath2
  3525. ----+-------+---------+-------+-------+-------+-------+-------+-------
  3526. 4 | $28 | $E8/16 | $EC | $F0 | $F4 | $F8 | $08 | $18
  3527. 5 | $19 | $C9/16 | $CE | not breath
  3528. 9 | $04 | $7D/15 | $86 | $8F | $98 | not breath
  3529. 10 | $D8 | $2E/17 | $38 | not breath
  3530. 12 | $C0 | $00/16 | $0C | $18 | $24 | not breath
  3531. 13 | $B1 | $E1/16 | $EE | $FB | $08 | $15 | $49 | $7D
  3532. 14 | $A4 | $D2/15 | $E0 | $EE | $FC | $0A | $42 | $7A
  3533. - Options:
  3534. - 4/$E8: N=4, 3*Infermost+Herb
  3535. - Damage: 61+62+63 = 186 (total = 484)
  3536. - Turn order split impossible
  3537. - MP use through Hydra: [Hr] 0, [P1] 27, [P2] 38, [Wz] 0
  3538. - 13/$E1: N=4, 3*Infermost+Herb
  3539. - Damage: 87+90+93 = 270 (total = 454)
  3540. - Turn order split impossible
  3541. - MP use through end: [Hr] 0, [P1] 36, [P2] 38, [Wz] 2
  3542. - 14/$D2: N=4, 3*Infermost+Parry
  3543. - Damage: 86+90+93 = 269 (total = 454)
  3544. - Turn order split impossible
  3545. - Won't work because [P1] dies to the first hit next turn
  3546. - Still no luck! Guess we need to look into attack options... can we
  3547. find one with an evade?
  3548. - If first action: $16 <= $A4_1+5*B1+32 < $1A, $F6 <= $A4_1+5*B1 < $FA
  3549. - 14/$B2
  3550. - If after breath: $16 <= $A4_1+9*B1+32 < $1A, $F6 <= $A4_1+9*B1 < $FA
  3551. - None
  3552. - If after attack: $16 <= $A4_1+6*B1+64 < $1A, $D6 <= $A4_1+6*B1 < $DA
  3553. - None
  3554. - Well, let's see what we have...
  3555. - 14/$B2: N=6
  3556. - 2*Infermost+IceBolt+Infermost: 76+80+29+93 = 278 (total = 463)
  3557. - MP use through Hydra: [Hr] 0, [P1] 36, [P2] 38, [Wz] 5
  3558. - Healus+2*Infermost+Parry: 90+93 = 183 (total = 368)
  3559. - MP use through Hydra: [Hr] 0, [P1] 36, [P2] 47, [Wz] 2
  3560. - To avoid turn order split: B1 <= 14
  3561. - Come to think of it, we might be able to squeeze out another
  3562. evade somewhere by forcing a turn order split
  3563. - Sigh, $A4_2=$5B is unusable due to not enough MP recovery
  3564. - Any evade from turn order split?
  3565. - If first action:
  3566. - 4/$D8 (split after [P1])
  3567. - If after breath:
  3568. - None
  3569. - If after attack:
  3570. - 4/$B8 (split after [Hr])
  3571. - 5/$A9 (split after [P2])
  3572. - Do actions match up?
  3573. B1 |$A4_end| $A4_1/N | Party |Action1|Target1|Action2|Target2
  3574. ----+-------+---------+-------+-------+-------+-------+-------
  3575. 4 | $28 | $D8/12 | $E0 | $E4 | not attack
  3576. 4 | $28 | $B8/12 | $BC | $C0 | $C4 | $C8 | $CC
  3577. 5 | $1B | $A9/10 | $B8 | $BD | $C2 | $C7 | $CC
  3578. - Will we have enough MP recovery?
  3579. - All three lead into $5D, which gets us to 4 WizRings... just
  3580. barely enough if we distribute MP correctly?
  3581. - Do any of those work?
  3582. - 4/$D8: N=3, but can't force turn order split
  3583. - 4/$B8: N=6, requires B0=15 or B0=16
  3584. - 5/$A9: N=4, requires B0=17
  3585. - I guess look at options with non-evaded attacks in them? (skipping low MP)
  3586. B1 |$A4_end| $A4_1/A/N |Action1|Target1|Action2|Target2|Resolv1|Resolv2
  3587. ----+-------+-----------+-------+-------+-------+-------+-------+-------
  3588. 4 | $28 | $B8/2/12 | $BC | $C0 | $C4 | $C8 = 2x attack death
  3589. 6 | $0E | $7A/2/14 | $80 | $86 | $8C | $92 = 2x attack death
  3590. 9 | $04 | $5D/1/15 | $66 | $6F | $78 | $81 = 2x attack death
  3591. 9 | $04 | $3D/2/15 | $46 | $4F | $58 | $61 | $8A | $B3
  3592. 11 | $CD | $1F/2/10 | $2A | $35 | $40 | $4B = 2x attack death
  3593. 12 | $C0 | $10/1/12 | $1C | $28 | $34 | $40 = 2x attack death
  3594. - Well, let's look at 9/$3D...
  3595. - 9/$3D: N=9
  3596. - Healus+Infermost+IceBolt+Infermost: 107+33+115 = 255 (total = 541)
  3597. - MP use through Hydra: [Hr] 0, [P1] 27, [P2] 47, [Wz] 2
  3598. - Put Healus on [P2] for better MP balance (avoids being just 2 MP
  3599. short after Hydra); also gives higher Infermost damage, which
  3600. looks nicer even though we don't need it
  3601. - To avoid turn order split: B1 <= 3 or B1 >= 6
  3602.  
  3603. Hydra turn 1:
  3604. - Party max HP on entry: 114, 93, 90, 85
  3605. - Party max MP on entry: 32, 63, 71, 92
  3606. - Hydra initial HP = whatever (if $A4_0 = $EC, then 435)
  3607. - Hydra focus target = whatever
  3608. - $6A68_0 = $C (B0 = 14), $A4_0 >= $EC (on entering Charlock B5)
  3609. - $A4_1 = ($A4_0 + 14*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  3610. - $A4_1 = $A4_0 - $3B ($A4_0=$EC: $A4_1=$B1)
  3611. - Probably need 2 Infermosts, so we can't expect to spend >9*B1
  3612. - Need [Wz] parry if attacked
  3613. - Table through Hydra action resolution: (odd $A4_0 = with WizRing use)
  3614. $A4_0 | $A4_1 | B1 | HydA1 |HydT1| HydA2 |HydT2|HyRes
  3615. -------+-------+----+-------+-----+-------+-----+-----
  3616. $EC | $B1 | 13 | $BE/A | $CB | $D8/B | $E5 | $46
  3617. $EE | $B3 | 15 | $C2/A | $D1 | $E0/B | $EF | $5A
  3618. $F0 | $B5 | 17 | $C6/A | $D7 | $E8/B | $F9 | $6E
  3619. $F2 | $B7 | 3 | $BA/A | $BD | $C0/A | double attack death
  3620. $F4 | $B9 | 5 | $BE/A | $C3 | $C8/A | double attack death
  3621. $F6 | $BB | 7 | $C2/A | $C9 | $D0/A | $D7 | $25
  3622. $F8 | $BD | 9 | $C6/A | $CF | $D8/B | $E1 | $2E
  3623. $FA | $BF | 11 | $CA/A | $D5 | $E0/B | $EB | $42
  3624. $FB | $C0 | 12 | $CC/A | $D8 | $E4/B | $F0 | $4C
  3625. $FC | $C1 | 13 | $CE/A | $DB | $E8/B | $F5 | $56
  3626. $FD | $C2 | 14 | $D0/A | $DE | $EC/B | $FA | $60
  3627. $FE | $C3 | 15 | $D2/A | $E1 | $F0/B | $FF | $6A
  3628. $FF | $C4 | 16 | $D4/A | $E4 | $F4/B | $04 | $74
  3629. $00 | $C5 | 17 | $D6/B | $E7 | $F8/B | $09 | $91
  3630. $01 | $C6 | 2 | $C8/A | $CA | $CC/A | double attack death
  3631. $02 | $C7 | 3 | $CA/A | $CD | $D0/A | double attack death
  3632. $03 | $C8 | 4 | $CC/A | $D0 | $D4/A | $D8 | $20
  3633. $04 | $C9 | 5 | $CE/A | $D3 | $D8/A | $DD | $27
  3634. $05 | $CA | 6 | $D0/A | $D6 | $DC/B | $E2 | $20
  3635. $06 | $CB | 7 | $D2/A | $D9 | $E0/B | $E7 | $2A
  3636. $07 | $CC | 8 | $D4/A | $DC | $E4/B | $EC | $34
  3637. $08 | $CD | 9 | $D6/B | $DF | $E8/B | $F1 | $39
  3638. $09 | $CE | 10 | $D8/B | $E2 | $EC/B | $F6 | $46
  3639. $0A | $CF | 11 | $DA/B | $E5 | $F0/B | $FB | $53
  3640. $0B | $D0 | 12 | $DC/B | $E8 | $F4/B | $00 | $60
  3641. $0C | $D1 | 13 | $DE/B | $EB | $F8/B | $05 | $6D
  3642. $0D | $D2 | 14 | $E0/B | $EE | $FC/B | $0A | $7A
  3643. $0E | $D3 | 15 | $E2/B | $F1 | $00/B | $0F | $87
  3644. $0F | $D4 | 16 | $E4/B | $F4 | $04/B | $14 | $94
  3645. $10 | $D5 | 17 | $E6/B | $F7 | $08/B | $19 | $A1
  3646. $11 | $D6 | 2 | $D8/B | $DA | $DC/B | $DE | $EE
  3647. $12 | $D7 | 3 | $DA/B | $DD | $E0/B | $E3 | $FB
  3648. $13 | $D8 | 4 | $DC/B | $E0 | $E4/B | $E8 | $08
  3649. $14 | $D9 | 5 | $DE/B | $E3 | $E8/B | $ED | $15
  3650. $15 | $DA | 6 | $E0/B | $E6 | $EC/B | $F2 | $22
  3651. $16 | $DB | 7 | $E2/B | $E9 | $F0/B | $F7 | $2F
  3652. $17 | $DC | 8 | $E4/B | $EC | $F4/B | $FC | $3C
  3653. $18 | $DD | 9 | $E6/B | $EF | $F8/B | $01 | $49
  3654. $19 | $DE | 10 | $E8/B | $F2 | $FC/B | $06 | $56
  3655. $1A | $DF | 11 | $EA/B | $F5 | $00/B | $0B | $63
  3656. $1B | $E0 | 12 | $EC/B | $F8 | $04/B | $10 | $70
  3657. $1C | $E1 | 13 | $EE/B | $FB | $08/B | $15 | $7D
  3658. $1D | $E2 | 14 | $F0/B | $FE | $0C/B | $1A | $8A
  3659. $1E | $E3 | 15 | $F2/B | $01 | $10/B | $1F | $97
  3660. $1F | $E4 | 16 | $F4/B | $04 | $14/B | $24 | $A4
  3661. $20 | $E5 | 17 | $F6/B | $07 | $18/A | hero attack death
  3662. $21 | $E6 | 2 | $E8/B | $EA | $EC/B | $EE | $FE
  3663. $22 | $E7 | 3 | $EA/B | $ED | $F0/B | $F3 | $0B
  3664. $23 | $E8 | 4 | $EC/B | $F0 | $F4/B | $F8 | $18
  3665. $24 | $E9 | 5 | $EE/B | $F3 | $F8/B | $FD | $25
  3666. $25 | $EA | 6 | $F0/B | $F6 | $FC/B | $02 | $32
  3667. $26 | $EB | 7 | $F2/B | $F9 | $00/B | $07 | $3F
  3668. $27 | $EC | 8 | $F4/B | $FC | $04/B | $0C | $4C
  3669. $28 | $ED | 9 | $F6/B | $FF | $08/B | $11 | $59
  3670. $29 | $EE | 10 | $F8/B | $02 | $0C/B | $16 | $66
  3671. $2A | $EF | 11 | $FA/B | $05 | $10/B | $1B | $73
  3672. $2B | $F0 | 12 | $FC/B | $08 | $14/B | $20 | $80
  3673. - Possible $A4_2: $9A (B1<=11), $D8, $D9, $EF, $F7
  3674. - Table of differences:
  3675. $A4_0 | B1 | HyRes | $9A | $D8 | $D9 | $EF | $F7
  3676. -------+----+-------+---------+---------+---------+---------+---------
  3677. $EC | 13 | $46 | ------- |$E8=17+11|$E9=17+12|$FF=19+ 8|$07= 0+ 7
  3678. $EE | 15 | $5A | ------- |$BA=12+ 6|$BB=12+ 7|$D1=13+14|$D9=14+ 7
  3679. $F0 | 17 | $6E | ------- |$8C= 8+ 4|$8D= 8+ 5|$A3= 9+10|$AB=10+ 1
  3680. $F2 | double attack death
  3681. $F4 | double attack death
  3682. $F6 | 7 | $25 |$19= 3+ 4|$57=12+ 3|$58=12+ 4|$6E=15+ 5|$76=16+ 6
  3683. $F8 | 9 | $2E |$F6=27+ 3|$34= 5+ 7|$35= 5+ 8|$4B= 8+ 3|$53= 9+ 2
  3684. $FA | 11 | $42 |$C8=18+ 2|$06= 0+ 6|$07= 0+ 7|$1D= 2+ 7|$25= 3+ 4
  3685. $FB | 12 | $4C | ------- |$EF=19+11|$F0=20+ 0|$06= 0+ 6|$0E= 1+ 2
  3686. $FC | 13 | $56 | ------- |$D8=16+ 8|$D9=16+ 9|$EF=18+ 5|$F7=19+ 0
  3687. $FD | 14 | $60 | ------- |$C1=13+11|$C2=13+12|$D8=15+ 6|$E0=16+ 0
  3688. $FE | 15 | $6A | ------- |$AA=11+ 5|$AB=11+ 6|$C1=12+13|$C9=13+ 6
  3689. $FF | 16 | $74 | ------- |$93= 9+ 3|$94= 9+ 4|$AA=10+10|$B2=11+ 2
  3690. $00 | 17 | $91 | ------- |$69= 6+ 3|$6A= 6+ 4|$80= 7+ 9|$88= 8+ 0
  3691. $01 | double attack death
  3692. $02 | double attack death
  3693. $03 | 4 | $20 |$45=17+ 1|$83=32+ 3|$84=33+ 0|$9A=38+ 2|$A2=40+ 2
  3694. $04 | 5 | $27 |$31= 9+ 4|$6F=22+ 1|$70=22+ 2|$86=26+ 4|$8E=28+ 2
  3695. $05 | 6 | $20 |$2B= 7+ 1|$69=17+ 3|$6A=17+ 4|$80=21+ 2|$88=22+ 4
  3696. $06 | 7 | $2A |$14= 2+ 6|$52=11+ 5|$53=11+ 6|$69=15+ 0|$71=16+ 1
  3697. $07 | 8 | $34 |$FD=31+ 5|$3B= 7+ 3|$3C= 7+ 4|$52=10+ 2|$5A=11+ 2
  3698. $08 | 9 | $39 |$EB=26+ 1|$29= 4+ 5|$2A= 4+ 6|$40= 7+ 1|$48= 8+ 0
  3699. $09 | 10 | $46 |$D1=20+ 9|$0F= 1+ 5|$10= 1+ 6|$26= 3+ 8|$2E= 4+ 6
  3700. $0A | 11 | $53 |$B7=16+ 7|$F5=22+ 3|$F6=22+ 4|$0C= 1+ 1|$14= 1+ 9
  3701. $0B | 12 | $60 | ------- |$DB=18+ 3|$DC=18+ 4|$F2=20+ 2|$FA=20+10
  3702. $0C | 13 | $6D | ------- |$C1=14+11|$C2=14+12|$D8=16+ 8|$E0=17+ 3
  3703. $0D | 14 | $7A | ------- |$A7=11+13|$A8=12+ 0|$BE=13+ 8|$C6=14+ 2
  3704. $0E | 15 | $87 | ------- |$8D= 9+ 6|$8E= 9+ 7|$A4=10+14|$AC=11+ 7
  3705. $0F | 16 | $94 | ------- |$73= 7+ 3|$74= 7+ 4|$8A= 8+10|$92= 9+ 2
  3706. $10 | 17 | $A1 | ------- |$59= 5+ 4|$5A= 5+ 5|$70= 6+10|$78= 7+ 1
  3707. $11 | 2 | $EE |$91=72+ 1|$CF=**+ 1|$D0=**+ 0|$E6=**+ 0|$EE=**+ 0
  3708. $12 | 3 | $FB |$77=39+ 2|$B5=60+ 1|$B6=60+ 2|$CC=68+ 0|$D4=70+ 2
  3709. $13 | 4 | $08 |$5D=23+ 1|$9B=38+ 3|$9C=39+ 0|$B2=44+ 2|$BA=46+ 2
  3710. $14 | 5 | $15 |$43=13+ 2|$81=25+ 4|$82=26+ 0|$98=30+ 2|$A0=32+ 0
  3711. $15 | 6 | $22 |$29= 6+ 5|$67=17+ 1|$68=17+ 2|$7E=21+ 0|$86=22+ 2
  3712. $16 | 7 | $2F |$0F= 2+ 1|$4D=11+ 0|$4E=11+ 1|$64=14+ 2|$6C=15+ 3
  3713. $17 | 8 | $3C |$F5=30+ 5|$33= 6+ 3|$34= 6+ 4|$4A= 9+ 2|$52=10+ 2
  3714. $18 | 9 | $49 |$DB=24+ 3|$19= 2+ 7|$1A= 2+ 8|$30= 5+ 3|$38= 6+ 2
  3715. $19 | 10 | $56 |$C1=19+ 3|$FF=25+ 5|$00= 0+ 0|$16= 2+ 2|$1E= 3+ 0
  3716. $1A | 11 | $63 |$A7=15+ 2|$E5=20+ 9|$E6=20+10|$FC=22+10|$04= 0+ 4
  3717. $1B | 12 | $70 | ------- |$CB=16+11|$CC=17+ 0|$E2=18+10|$EA=19+ 6
  3718. $1C | 13 | $7D | ------- |$B1=13+ 8|$B2=13+ 9|$C8=15+ 5|$D0=16+ 0
  3719. $1D | 14 | $8A | ------- |$97=10+11|$98=10+12|$AE=12+ 6|$B6=13+ 0
  3720. $1E | 15 | $97 | ------- |$7D= 8+ 5|$7E= 8+ 6|$94= 9+13|$9C=10+ 6
  3721. $1F | 16 | $A4 | ------- |$63= 6+ 3|$64= 6+ 4|$7A= 7+10|$82= 8+ 2
  3722. $20 | hero attack death
  3723. $21 | 2 | $FE |$81=64+ 1|$BF=95+ 1|$C0=96+ 0|$D6=**+ 0|$DE=**+ 0
  3724. $22 | 3 | $0B |$67=34+ 1|$A5=55+ 0|$A6=55+ 1|$BC=62+ 2|$C4=65+ 1
  3725. $23 | 4 | $18 |$4D=19+ 1|$8B=34+ 3|$8C=35+ 0|$A2=40+ 2|$AA=42+ 2
  3726. $24 | 5 | $25 |$33=10+ 1|$71=22+ 3|$72=22+ 4|$88=27+ 1|$90=28+ 4
  3727. $25 | 6 | $32 |$19= 4+ 1|$57=14+ 3|$58=14+ 4|$6E=18+ 2|$76=19+ 4
  3728. $26 | 7 | $3F |$FF=36+ 3|$3D= 8+ 5|$3E= 8+ 6|$54=12+ 0|$5C=13+ 1
  3729. $27 | 8 | $4C |$E5=28+ 5|$23= 4+ 3|$24= 4+ 4|$3A= 7+ 2|$42= 8+ 2
  3730. $28 | 9 | $59 |$CB=22+ 5|$09= 1+ 0|$0A= 1+ 1|$20= 3+ 5|$28= 4+ 4
  3731. $29 | 10 | $66 |$B1=17+ 7|$EF=23+ 9|$F0=24+ 0|$06= 0+ 6|$0E= 1+ 4
  3732. $2A | 11 | $73 |$97=13+ 8|$D5=19+ 4|$D6=19+ 5|$EC=21+ 5|$F4=22+ 2
  3733. $2B | 12 | $80 | ------- |$BB=15+ 7|$BC=15+ 8|$D2=17+ 6|$DA=18+ 2
  3734. - First usable entry looks like $00
  3735. - Initial HP = 550 - ($00+14-$16)*138/256 = 417
  3736. - Turn 2 regen = 91, subsequent damage-regen = 325, so need 183 damage
  3737. - Healus + Infermost*2 + Blaze?
  3738. - Damage: 92+60 = 152 (Healus second) or 108+60 = 168 (Healus first)
  3739. - Not enough damage
  3740. - $08, required B1 is 8 so same story (plus initial HP rolls over)
  3741. - How about $08 as 7+1?
  3742. - Need 6*B1 from 3 chars
  3743. - Won't work, not enough damage for initial HP = 550
  3744. - $05 has 7+1 for $9A
  3745. - Initial HP = 550 - ($05+14-$16)*138/256 = 414
  3746. - Turn 2 regen = 94, subsequent damage-regen = 408, so need 100 damage
  3747. - WizRing + Healus + Infermost + Firebal
  3748. - Infermost damage = 63 if before Healus, 69 if after
  3749. - Not enough damage
  3750. - Are there no viable solutions out of all those possibilities?!
  3751. - Let's go back and look at those double attack deaths, Hydra has low HP
  3752. so we might be able to get away with a single Infermost...
  3753. $A4_0 | $A4_1 | B1 | HydA1 |HydT1| HydA2 |HydT2|HyRes
  3754. -------+-------+----+-------+-----+-------+-----+-----
  3755. $F2 | $B7 | 3 | $BA/A | $BD | $C0/A | $C3 | $09
  3756. $F4 | $B9 | 5 | $BE/A | $C3 | $C8/A | $CD | $17
  3757. $01 | $C6 | 2 | $C8/A | $CA | $CC/A | $CE | $12
  3758. $02 | $C7 | 3 | $CA/A | $CD | $D0/A | $D3 | $19
  3759. - Table of differences:
  3760. $A4_0 | B1 | HyRes | $9A | $D8 | $D9 | $EF | $F7
  3761. -------+----+-------+---------+---------+---------+---------+---------
  3762. $F2 | 3 | $09 |$69=35+ 0|$A7=55+ 2|$A8=56+ 0|$BE=63+ 1|$C6=66+ 0
  3763. $F4 | 5 | $17 |$41=13+ 0|$7F=25+ 2|$80=25+ 3|$96=30+ 0|$9E=31+ 3
  3764. $01 | 2 | $12 |$6D=54+ 1|$AB=85+ 1|$AC=86+ 0|$C2=97+ 0|$CA=**+ 0
  3765. $02 | 3 | $19 |$59=29+ 2|$97=50+ 1|$98=50+ 2|$AE=58+ 0|$B6=60+ 2
  3766. - Nope, too much B1 needed... sigh
  3767. - Okay, let's try with the non-Healus turn 2 options: (* double attack death)
  3768. $A4_0 | B1 | HyRes | $E1 | $E8
  3769. -------+----+-------+---------+---------
  3770. $EC | 13 | $46 |$F1=18+ 7|$F8=19+ 1
  3771. $EE | 15 | $5A |$C3=13+ 0|$CA=13+ 7
  3772. $F0 | 17 | $6E |$95= 8+13|$9C= 9+ 3
  3773. $F2* | 3 | $09 |$B0=58+ 2|$B7=61+ 0
  3774. $F4* | 5 | $17 |$88=27+ 1|$8F=28+ 3
  3775. $F6 | 7 | $25 |$60=13+ 5|$67=14+ 5
  3776. $F8 | 9 | $2E |$3D= 6+ 7|$44= 7+ 5
  3777. $FA | 11 | $42 |$0F= 1+ 4|$16= 2+ 0
  3778. $FB | 12 | $4C |$F8=20+ 8|$FF=21+ 3
  3779. $FC | 13 | $56 |$E1=17+ 4|$E8=17+11
  3780. $FD | 14 | $60 |$CA=14+ 6|$D1=14+13
  3781. $FE | 15 | $6A |$B3=11+14|$BA=12+ 6
  3782. $FF | 16 | $74 |$9C= 9+12|$A3=10+ 3
  3783. $00 | 17 | $91 |$72= 6+12|$79= 7+ 2
  3784. $01* | 2 | $12 |$B4=90+ 0|$BB=93+ 1
  3785. $02* | 3 | $19 |$A0=53+ 1|$A7=55+ 2
  3786. $03 | 4 | $20 |$8C=35+ 0|$93=36+ 3
  3787. $04 | 5 | $27 |$78=24+ 0|$7F=25+ 2
  3788. $05 | 6 | $20 |$72=19+ 0|$79=20+ 1
  3789. $06 | 7 | $2A |$5B=13+ 0|$62=14+ 0
  3790. $07 | 8 | $34 |$44= 8+ 4|$4B= 9+ 3
  3791. $08 | 9 | $39 |$32= 5+ 5|$39= 6+ 3
  3792. $09 | 10 | $46 |$18= 2+ 4|$1F= 3+ 1
  3793. $0A | 11 | $53 |$FE=23+ 1|$05= 0+ 5
  3794. $0B | 12 | $60 |$E4=19+ 0|$EB=19+ 7
  3795. $0C | 13 | $6D |$CA=15+ 7|$D1=16+ 1
  3796. $0D | 14 | $7A |$B0=12+ 8|$B7=13+ 1
  3797. $0E | 15 | $87 |$96=10+ 0|$9D=10+ 7
  3798. $0F | 16 | $94 |$7C= 7+12|$83= 8+ 3
  3799. $10 | 17 | $A1 |$62= 5+13|$69= 6+ 3
  3800. $11 | 2 | $EE |$D8=**+ 0|$DF=**+ 1
  3801. $12 | 3 | $FB |$BE=63+ 1|$C5=65+ 2
  3802. $13 | 4 | $08 |$A4=41+ 0|$AB=42+ 3
  3803. $14 | 5 | $15 |$8A=27+ 3|$91=29+ 0
  3804. $15 | 6 | $22 |$70=18+ 4|$77=19+ 5
  3805. $16 | 7 | $2F |$56=12+ 2|$5D=13+ 2
  3806. $17 | 8 | $3C |$3C= 7+ 4|$43= 8+ 3
  3807. $18 | 9 | $49 |$22= 3+ 7|$29= 4+ 5
  3808. $19 | 10 | $56 |$08= 0+ 8|$0F= 1+ 5
  3809. $1A | 11 | $63 |$EE=21+ 7|$F5=22+ 3
  3810. $1B | 12 | $70 |$D4=17+ 8|$DB=18+ 3
  3811. $1C | 13 | $7D |$BA=14+ 4|$C1=14+11
  3812. $1D | 14 | $8A |$A0=11+ 6|$A7=11+13
  3813. $1E | 15 | $97 |$86= 8+14|$8D= 9+ 6
  3814. $1F | 16 | $A4 |$6C= 6+12|$73= 7+ 3
  3815. $20 | hero attack death
  3816. $21 | 2 | $FE |$C8=**+ 0|$CF=**+ 1
  3817. $22 | 3 | $0B |$AE=58+ 0|$B5=60+ 1
  3818. $23 | 4 | $18 |$94=37+ 0|$9B=38+ 3
  3819. $24 | 5 | $25 |$7A=24+ 2|$81=25+ 4
  3820. $25 | 6 | $32 |$60=16+ 0|$67=17+ 1
  3821. $26 | 7 | $3F |$46=10+ 0|$4D=11+ 0
  3822. $27 | 8 | $4C |$2C= 5+ 4|$33= 6+ 3
  3823. $28 | 9 | $59 |$12= 2+ 0|$19= 2+ 7
  3824. $29 | 10 | $66 |$F8=24+ 8|$FF=25+ 5
  3825. $2A | 11 | $73 |$DE=20+ 2|$E5=20+ 9
  3826. $2B | 12 | $80 |$C4=16+ 4|$CB=16+11
  3827. - $FA?
  3828. - Initial HP = 550 - ($FA+14-$16)*138/256 = 420
  3829. - Turn 2 regen = 96, subsequent damage-regen = 484, so need 32 damage
  3830. - Infermost+Heal should do it
  3831. - Hydra attack is a dodge!!
  3832. - MP use through Hydra: [Hr] 0, [P1] 30, [P2] 38, [Wz] 0
  3833. - Oops, no luck because we don't have enough HP for Bomus and can't
  3834. Healall on the map
  3835. - $28?
  3836. - Initial HP = 550 - ($28+14-$16)*138/256 = 533
  3837. - Turn 2 regen = 97, subsequent damage-regen = 454, so need 176 damage
  3838. - 2*Infermost damage: 77+79 = 156, just short
  3839. - Can we do 2*Infermost on $FA and grab a Healmore somewhere else?
  3840. - 2*Infermost damage: 72+75 = 147, 115 overkill
  3841. - Won't work, need to heal both [Hr] and [Wz] and we can only replace
  3842. one Infermost
  3843. - Okay, found an evade (and it leads into turn 3 Healus), let's try that...
  3844. $A4_0 | B1 | HyRes | $B2
  3845. -------+----+-------+---------
  3846. $EC | 13 | $46 |$C2=14+12
  3847. $EE | 15 | $5A | -------
  3848. $F0 | 17 | $6E | -------
  3849. $F2* | 3 | $09 |$81=43+ 0
  3850. $F4* | 5 | $17 |$59=17+ 4
  3851. $F6 | 7 | $25 |$31= 7+ 0
  3852. $F8 | 9 | $2E |$0E= 1+ 5
  3853. $FA | 11 | $42 |$E0=20+ 4
  3854. $FB | 12 | $4C |$C9=16+ 9
  3855. $FC | 13 | $56 |$B2=13+ 9
  3856. $FD | 14 | $60 |$9B=11+ 1
  3857. $FE | 15 | $6A | -------
  3858. $FF | 16 | $74 | -------
  3859. $00 | 17 | $91 | -------
  3860. $01* | 2 | $12 |$85=66+ 1
  3861. $02* | 3 | $19 |$71=37+ 2
  3862. $03 | 4 | $20 |$5D=23+ 1
  3863. $04 | 5 | $27 |$49=14+ 3
  3864. $05 | 6 | $20 |$43=11+ 1
  3865. $06 | 7 | $2A |$2C= 6+ 2
  3866. $07 | 8 | $34 |$15= 2+ 5
  3867. $08 | 9 | $39 |$03= 0+ 3
  3868. $09 | 10 | $46 |$E9=23+ 3
  3869. $0A | 11 | $53 |$CF=18+ 9
  3870. $0B | 12 | $60 |$B5=15+ 1
  3871. $0C | 13 | $6D |$9B=11+12
  3872. $0D | 14 | $7A |$81= 9+ 3
  3873. $0E | 15 | $87 | -------
  3874. $0F | 16 | $94 | -------
  3875. $10 | 17 | $A1 | -------
  3876. $11 | 2 | $EE |$A9=84+ 1
  3877. $12 | 3 | $FB |$8F=47+ 2
  3878. $13 | 4 | $08 |$75=29+ 1
  3879. $14 | 5 | $15 |$5B=18+ 1
  3880. $15 | 6 | $22 |$41=10+ 5
  3881. $16 | 7 | $2F |$27= 5+ 4
  3882. $17 | 8 | $3C |$0D= 1+ 5
  3883. $18 | 9 | $49 |$F3=27+ 0
  3884. $19 | 10 | $56 |$D9=21+ 7
  3885. $1A | 11 | $63 |$BF=17+ 4
  3886. $1B | 12 | $70 |$A5=13+ 9
  3887. $1C | 13 | $7D |$8B=10+ 9
  3888. $1D | 14 | $8A |$71= 8+ 1
  3889. $1E | 15 | $97 | -------
  3890. $1F | 16 | $A4 | -------
  3891. $20 | hero attack death
  3892. $21 | 2 | $FE |$99=76+ 1
  3893. $22 | 3 | $0B |$7F=42+ 1
  3894. $23 | 4 | $18 |$65=25+ 1
  3895. $24 | 5 | $25 |$4B=15+ 0
  3896. $25 | 6 | $32 |$31= 8+ 1
  3897. $26 | 7 | $3F |$17= 3+ 2
  3898. $27 | 8 | $4C |$FD=31+ 5
  3899. $28 | 9 | $59 |$E3=25+ 2
  3900. $29 | 10 | $66 |$C9=20+ 1
  3901. $2A | 11 | $73 |$AF=15+10
  3902. $2B | 12 | $80 |$95=12+ 5
  3903. - $F6?
  3904. - Initial HP = 550 - ($F6+14-$16)*138/256 = 422
  3905. - Turn 2 regen = 95, subsequent damage-regen = 463, so need 54 damage
  3906. - Need 7*B0
  3907. - Infermost+Healus+Parry+Blaze?
  3908. - MP use through end: [Hr] 0, [P1] 54, [P2] 38, [Wz] 7
  3909. - Erp, [Wz] dies... but I guess we can Parry+Revive
  3910. - Infermost+Healus+Revive+Blaze?
  3911. - MP use through end: [Hr] 0, [P1] 54, [P2] 58, [Wz] 4
  3912. - Not enough MP, will Vivify work? Yes
  3913. - Infermost+Healus+Vivify+Firebal?
  3914. - MP use through end: [Hr] 0, [P1] 54, [P2] 48, [Wz] 6
  3915. - We're short [P1] 45 and [P2] 12 MP through the end, but we can
  3916. only recover 16+17+18 after the battle :(
  3917. - Found a few evades with turn splits:
  3918. $A4_0 | B1 | HyRes | $A9 | $B8
  3919. -------+----+-------+---------+---------
  3920. $EE | 15 | $5A | ------- |$E2=15+ 1
  3921. $F0 | 17 | $6E |$5D= 5+ 8| -------
  3922. $FE | 15 | $6A | ------- |$D2=14+ 0
  3923. $FF | 16 | $74 | ------- |$BB=11+11
  3924. $00 | 17 | $91 |$3A= 3+ 7| -------
  3925. $0E | 15 | $87 | ------- |$B5=12+ 1
  3926. $0F | 16 | $94 | ------- |$9B= 9+11
  3927. $10 | 17 | $A1 |$2A= 2+ 8| -------
  3928. $1E | 15 | $97 | ------- |$A5=11+ 0
  3929. $1F | 16 | $A4 | ------- |$8B= 8+11
  3930. - Nope, too much B1 to consume (could get a single Infermost with $1E,
  3931. but max HP rolls over)
  3932. - How about this one with two attacks?
  3933. $A4_0 | B1 | HyRes | $3D
  3934. -------+----+-------+---------
  3935. $EC | 13 | $46 |$4D= 5+12
  3936. $EE | 15 | $5A |$1F= 2+ 1
  3937. $F0 | 17 | $6E |$F1=14+ 3
  3938. $F2* | 3 | $09 |$0C= 4+ 0
  3939. $F4* | 5 | $17 | -------
  3940. $F6 | 7 | $25 |$BC=26+ 6
  3941. $F8 | 9 | $2E |$99=17+ 0
  3942. $FA | 11 | $42 |$6B= 9+ 8
  3943. $FB | 12 | $4C |$54= 7+ 0
  3944. $FC | 13 | $56 |$3D= 4+ 9
  3945. $FD | 14 | $60 |$26= 2+10
  3946. $FE | 15 | $6A |$0F= 1+ 0
  3947. $FF | 16 | $74 |$F8=15+ 8
  3948. $00 | 17 | $91 |$CE=12+ 2
  3949. $01* | 2 | $12 |$10= 8+ 0
  3950. $02* | 3 | $19 |$FC=84+ 0
  3951. $03 | 4 | $20 | -------
  3952. $04 | 5 | $27 | -------
  3953. $05 | 6 | $20 |$CE=34+ 2
  3954. $06 | 7 | $2A |$B7=26+ 1
  3955. $07 | 8 | $34 |$A0=20+ 0
  3956. $08 | 9 | $39 |$8E=15+ 7
  3957. $09 | 10 | $46 |$74=11+ 6
  3958. $0A | 11 | $53 |$5A= 8+ 2
  3959. $0B | 12 | $60 |$40= 5+ 4
  3960. $0C | 13 | $6D |$26= 2+12
  3961. $0D | 14 | $7A |$0C= 0+12
  3962. $0E | 15 | $87 |$F2=16+ 2
  3963. $0F | 16 | $94 |$D8=13+ 8
  3964. $10 | 17 | $A1 |$BE=11+ 3
  3965. $11 | 2 | $EE |$34=26+ 0
  3966. $12 | 3 | $FB |$1A= 8+ 2
  3967. $13 | 4 | $08 | -------
  3968. $14 | 5 | $15 | -------
  3969. $15 | 6 | $22 |$CC=34+ 0
  3970. $16 | 7 | $2F |$B2=25+ 3
  3971. $17 | 8 | $3C |$98=19+ 0
  3972. $18 | 9 | $49 |$7E=14+ 0
  3973. $19 | 10 | $56 |$64=10+ 0
  3974. $1A | 11 | $63 |$4A= 6+ 8
  3975. $1B | 12 | $70 |$30= 4+ 0
  3976. $1C | 13 | $7D |$16= 1+ 9
  3977. $1D | 14 | $8A |$FC=18+ 0
  3978. $1E | 15 | $97 |$E2=15+ 1
  3979. $1F | 16 | $A4 |$C8=12+ 8
  3980. $20 | hero attack death
  3981. $21 | 2 | $FE |$24=18+ 0
  3982. $22 | 3 | $0B |$0A= 3+ 1
  3983. $23 | 4 | $18 | -------
  3984. $24 | 5 | $25 | -------
  3985. $25 | 6 | $32 |$BC=31+ 2
  3986. $26 | 7 | $3F |$A2=23+ 1
  3987. $27 | 8 | $4C |$88=17+ 0
  3988. $28 | 9 | $59 |$6E=12+ 2
  3989. $29 | 10 | $66 |$54= 8+ 4
  3990. $2A | 11 | $73 |$3A= 5+ 3
  3991. $2B | 12 | $80 |$20= 2+ 8
  3992. - $FB?
  3993. - Initial HP = 550 - ($FB+14-$16)*138/256 = 420
  3994. - Turn 2 regen = 101, subsequent damage-regen = 541, so don't need damage
  3995. - Too bad we can't get that $A4_0 in turn 1... or can we?
  3996. - B0=14 gives $A4_0=$78, initial HP would be 490
  3997. - Requires +$8C from map entry = 10 heals = ~25 seconds >>> 1 turn, hmm
  3998. - Need 7*B0
  3999. - Infermost+Healus+Vivify+Firebal?
  4000. - Fails because 2nd attack is breath and doesn't hit dead [Wz]
  4001. - $FE?
  4002. - Initial HP = 550 - ($FE+14-$16)*138/256 = 418
  4003. - Need 1*B0
  4004. - Heal+Healall+2*Parry?
  4005. - Heal [Hr] because takes hit next turn
  4006. - Healall [Wz] because took hit this turn
  4007. - MP use through Hydra: [Hr] 0, [P1] 43, [P2] 38, [Wz] 2
  4008. - Would work, but...
  4009. - Oops, $3D leaves Bomus with too much HP
  4010. - Never mind, looks like we can fudge stuff to get 4 map heals
  4011. - DO YOU BELIEVE IN SOLUTIONS? YES!!
  4012.  
  4013.  
  4014.  
  4015.  
  4016.  
  4017.  
  4018.  
  4019. [OBSOLETE Appendix: Boss rush] (from before Zoma fix)
  4020.  
  4021. Gonus turn 3:
  4022. - $6A68 at end (for Zoma) can be anything except 1-5
  4023. - We get $E from $A4_1 = $94
  4024. - Battle stops after Blazemore + Infermost with $A4_end = 228+2
  4025. - Level-up: $A4_lvup = $A4_end + 84 + B1 = $A4_end + 100 = 74
  4026. - Required $A4_0 for Zoma 1 is 90
  4027. - OH NO! Map load puts us 1 step too far ahead, diff is only 15 so we
  4028. can't heal to the target
  4029. - How about attacking?
  4030. - B1 = 16, evade = 0, so each attack is effectively 5 multi_randoms
  4031. - Remaining HP is 142, so need at least one Blazemore or Infermost
  4032. - Options:
  4033. - Blazemore+Infermost = 3 = -15 (original result)
  4034. - Infermost+Infermost = 2 = -31
  4035. - Infermost+Attack = 6 = -223
  4036. - Blazemore+Attack = 7 = -209
  4037. - Infermost+Attack*2 = 11 = -143
  4038. - Blazemore+Attack*2 = 12 = -129
  4039. - Infermost+Attack*3 = 16 = -65
  4040. - Blazemore+Attack*3 = 17 = -47
  4041. - Our only options are adding +16 or +17, ie +0 or +1 mod 16, and
  4042. no matter what we do we need to get up to +15 mod 16
  4043. - Guess the only option is to go back to the last map...
  4044. - ... but we can't do that either because it resets the battles!!
  4045. ARGH!!
  4046. - Well, hang on a sec... we don't necessarily need max damage from
  4047. round 3, just enough to win the battle (and Surround is irrelevant)
  4048. - Postponed until we figure out how much healing we need after Bomus
  4049. --> will need 4*Healmore
  4050. - We can take any turn 1 match in turn 2 table, so possible incoming $A4
  4051. values are: ($A4_req = Zoma 1 $A4_0 requirement minus battle end,
  4052. level-up, and map load)
  4053. T1 $A4_1 | T2 $A4_1 | B0 | $A4_0 | $A4_1 | B1 | $A4_req
  4054. ----------+----------+----+-------+-------+----+---------
  4055. $DC | $AD | 9 | $1E | $94 | 16 | $F3
  4056. $BD | $A4 | 16 | $54 | $25 | 17 | $E4
  4057. $BE | $BB | 7 | $1A | $76 | 2 | $C5
  4058. $CE | $CB | 7 | $2A | $86 | 2 | $C5
  4059. $B0 | $D9 | 5 | $26 | $68 | 4 | ---
  4060. $C0 | $E9 | 5 | $36 | $78 | 4 | ---
  4061. $A2 | $F7 | 3 | $32 | $5A | 6 | ---
  4062. (How about that, turn 3 B1 = turn 1 B1 + constant!)
  4063. - B1=4, B1=6 fail Zoma turn 1 precondition
  4064. - B1=16 has a bad remainder (see above)
  4065. - Solutions:
  4066. - B1=17: $E4-($25+2*17) = 9*17+4 = Infermost x2 + Blazemore + Heal + 4*WizRing
  4067. - B1=2: $C5-($86+2*2) = $26+10*2+1 = Healus x2 + Attack ($26) + Firebane + WizRing
  4068. - If that's not enough damage, Healus + Attack + Infernos + Blazemore + 2*Heal + WizRing
  4069. - This gives hero a max HP boost of 4 (otherwise 0)
  4070.  
  4071. Gonus turn 2-3:
  4072. - HP regen = 44 + multi_random(12)
  4073. - Turn order = whatever
  4074. - $A4_1 = ($A4_0 + 13*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4075. - [P2] Infermost damage: $A4_1 + 3*B1
  4076. - [P1] Infermost damage: $A4_1 + 4*B1
  4077. - [Wz] Blazemore damage: $A4_1 + 6*B1
  4078. - [Hr] Infermost damage: $A4_1 + 7*B1
  4079. - Gonus standard evade check: $A4 + 7*B1 + 32 + 1*B1
  4080. - Gonus Surround evade check: $A4 + 7*B1 + 32 + 2*B1 (= $A4_end)
  4081. - [Hr] damage: $A4_1 + 7*B1 - 22 <= 255 --> $A4_1 <= 277 - 7*B1
  4082. - Evade: $A4_1 + 9*B1 + 32 - 22 >= 256 --> $A4_1 >= 246 - 9*B1
  4083. - Table:
  4084. B1 | $A4_1 range | Valid $A4_1 | $A4_end | $A4_2
  4085. ----+---------------+---------------+---------------+--------------
  4086. 2 | 228/E4-263/07 | $E6, $F6, $06 | $18, $28, $38 | $33, $43, $53
  4087. 3 | 219/DB-256/00 | $E7, $F7 | $22, $32 | $4A, $5A
  4088. 4 | 210/D2-249/F9 | $D8, $E8, $F8 | $1C, $2C, $3C | $51, $61, $71
  4089. 5 | 201/C9-242/F2 | $C9, $D9, $E9 | $16, $26, $36 | $58, $68, $78
  4090. 6 | 192/C0-235/EB | $CA, $DA, $EA | $20, $30, $40 | $6F, $7F, $8F
  4091. 7 | 183/B7-228/E4 | $BB, $CB, $DB | $1A, $2A, $3A | $76, $86, $96
  4092. 8 | 174/AE-221/DD | $BC, $CC, $DC | $24, $34, $44 | $8D, $9D, $AD
  4093. 9 | 165/A5-214/D6 | $AD, $BD, $CD | $1E, $2E, $3E | $94, $A4, $B4
  4094. 10 | 156/9C-207/CF | $9E ... $CE | $18 ... $48 | $9B ... $CB
  4095. 11 | 147/93-200/C8 | $9F, $AF, $BF | $22, $32, $42 | $B2, $C2, $D2
  4096. 12 | 138/8A-193/C1 | $90 ... $C0 | $1C ... $4C | $B9 ... $E9
  4097. 13 | 129/81-186/BA | $81 ... $B1 | $16 ... $46 | $C0 ... $F0
  4098. 14 | 120/78-179/B3 | $82 ... $B2 | $20 ... $50 | $D7 ... $07
  4099. 15 | 111/6F-172/AC | $73 ... $A3 | $1A ... $4A | $DE ... $0E
  4100. 16 | 102/66-165/A5 | $74 ... $A4 | $24 ... $54 | $F5 ... $25
  4101. 17 | 93/5D-158/9E | $65 ... $95 | $1E ... $4E | $FC ... $2C
  4102. - Any cyclable inputs?
  4103. - No, because of odd/even flip
  4104. - Any sequences?
  4105. - $A4_1 / $A4_2 matches: $94, $A4, $AD, $B2, $BB, $C0, $C9, $CB,
  4106. $D9, $E7, $E9, $F7
  4107. - Including turn 1: $A4, $AD, $BB, $CB, $D9, $E9, $F7
  4108. - Sequences: $AD -> $94, $C0 -> $E9
  4109. - (irrelevant, see new turn 1 notes)
  4110.  
  4111. Gonus turn 1:
  4112. - Party max HP on entry: 114+[0,4], 93+[0,4], 90+[0,4], 85+[0,4]
  4113. - Gonus initial HP = whatever
  4114. - Gonus focus target = whatever
  4115. - Turn order = whatever (Gonus speed is 0 so always goes last)
  4116. - Surround resistance is 70% so RNG output must be >=179 for it to hit
  4117. - $A4_1 = ($A4_0 + 14*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4118. - Gonus action = multi_random() // always Attack
  4119. - Gonus target = ubound(multi_random()/63, 3)
  4120. - [P2] Surround check: $A4_1 + 3*B1
  4121. - [P1] Infermost damage: $A4_1 + 4*B1
  4122. - [Hr] Infermost damage: $A4_1 + 5*B1
  4123. - [Wz] Blazemore damage: $A4_1 + 7*B1
  4124. - Gonus standard evade check: $A4 + 7*B1 + 32 + 1*B1
  4125. - Gonus Surround evade check: $A4 + 7*B1 + 32 + 2*B1 (= $A4_end)
  4126. - Surround: $A4_1 + 3*B1 - 22 >= 179 --> $A4_1 >= 201 - 3*B1
  4127. - [Wz] damage: $A4_1 + 7*B1 - 22 <= 255 --> $A4_1 <= 277 - 7*B1
  4128. - Evade: $A4_1 + 9*B1 + 32 - 22 >= 256 --> $A4_1 >= 246 - 9*B1
  4129. - Table:
  4130. B1 | $A4_1 range | Valid $A4_1 | $A4_end | $A4_2
  4131. ----+---------------+---------------+---------------+--------------
  4132. 2 | 228/E4-263/07 | $E6, $F6, $06 | $18, $28, $38 | $33, $43, $53
  4133. 3 | 219/DB-256/00 | $E7, $F7 | $22, $32 | $4A, $5A
  4134. 4 | 210/D2-249/F9 | $D8, $E8, $F8 | $1C, $2C, $3C | $51, $61, $71
  4135. 5 | 201/C9-242/F2 | $C9, $D9, $E9 | $16, $26, $36 | $58, $68, $78
  4136. 6 | 192/C0-235/EB | $CA, $DA, $EA | $20, $30, $40 | $6F, $7F, $8F
  4137. 7 | 183/B7-228/E4 | $BB, $CB, $DB | $1A, $2A, $3A | $76, $86, $96
  4138. 8 | 177/B1-221/DD | $BC, $CC, $DC | $24, $34, $44 | $8D, $9D, $AD
  4139. 9 | 174/AE-214/D6 | $BD, $CD | $2E, $3E | $A4, $B4
  4140. 10 | 171/AB-207/CF | $AE, $BE, $CE | $28, $38, $48 | $AB, $BB, $CB
  4141. 11 | 168/A8-200/C8 | $AF, $BF | $32, $42 | $C2, $D2
  4142. 12 | 165/A5-193/C1 | $B0, $C0 | $3C, $4C | $D9, $E9
  4143. 13 | 162/A2-186/BA | $B1 | $46 | $F0
  4144. 14 | 159/9F-179/B3 | $A2, $B2 | $40, $50 | $F7, $07
  4145. 15 | 156/9C-172/AC | $A3 | $4A | $0E
  4146. 16 | 153/99-165/A5 | $A4 | $54 | $25
  4147. 17 | 150/96-158/9E | (none) | (none) | (none)
  4148. - For turn 2, $A4_2 must be one of: $A4, $AD, $BB, $CB, $D9, $E9, $F7
  4149. - So $A4_1 must be one of (resp) $BD, $DC, $BE, $CE, $B0, $C0, $A2
  4150. - Solved! $DC -> $AD -> $94 ^W^W^W^W^W^W Postponed, see above
  4151. - Need only a sequence of 2, so we can use any of the following:
  4152. $DC/$AD, $BD/$A4, $BE/$BB, $CE/$CB, $B0/$D9, $C0/$E9, $A2/$F7
  4153. - Only matches to turn 2/3 table are $A4_1 = $BD or $CE
  4154. - Valid inputs:
  4155. B0 | $A4_1 | $A4_0 | Derived B0
  4156. ----+-------+-------+------------
  4157. 2 | $BD | $A0 | 12
  4158. | $CE | $B1 | 13
  4159. 3 | $BD | $92 | 14
  4160. | $CE | $A3 | 15
  4161. 4 | $BD | $84 | 16
  4162. | $CE | $95 | 17
  4163. 5 | $BD | $76 | 2
  4164. | $CE | $87 | 3
  4165. 6 | $BD | $68 | 4
  4166. | $CE | $79 | 5
  4167. 7 | $BD | $5A | 6
  4168. | $CE | $6B | 7
  4169. 8 | $BD | $4C | 8
  4170. | $CE | $5D | 9
  4171. 9 | $BD | $3E | 10
  4172. | $CE | $4F | 11
  4173. 10 | $BD | $30 | 12
  4174. | $CE | $41 | 13
  4175. 11 | $BD | $22 | 14
  4176. | $CE | $33 | 15
  4177. 12 | $BD | $14 | 16
  4178. | $CE | $25 | 17
  4179. 13 | $BD | $06 | 2
  4180. | $CE | $17 | 3
  4181. 14 | $BD | $F8 | 4
  4182. | $CE | $09 | 5
  4183. 15 | $BD | $EA | 6
  4184. | $CE | $FB | 7
  4185. 16 | $BD | $DC | 8
  4186. | $CE | $ED | 9
  4187. 17 | $BD | $CE | 10
  4188. | $CE | $DF | 11
  4189. - Solutions:
  4190. - $A4_0 = $6B, $6A68_0 = $5
  4191. - $A4_0 = $4C, $6A68_0 = $6
  4192.  
  4193. Bomus turn 2:
  4194. - HP regen = 44 + multi_random(12)
  4195. - Turn order:
  4196. - Don't need [Wz] to act
  4197. - $A4_0 + 4*B0 <= 21, $A4_0 + 6*B0 >= 22
  4198. - $A4_1 = ($A4_0 + 13*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4199. - Infermost 1 resist check: $A4_1 + 1*B1 - 22 >= 77
  4200. - $A4_1 + 1*B1 >= 99
  4201. - Level spam: +($106+6*B1)
  4202. - $A4_map = $A4_1 + 2n(Infermost)*B1 + 2 + (6+6*B1) + 1
  4203. - $6A68_1 = $5:
  4204. - B1 = 7
  4205. - $6B = $A4_1 + 2n(Infermost)*7 + 2 + (6+6*7) + 1
  4206. - $6B = $A4_1 + 2n(Infermost)*7 + 51
  4207. - $38 = $A4_1 + 2n(Infermost)*7
  4208. - Needs hero attacking last for the kill:
  4209. - $38 = $A4_1 + 2n(Infermost)*7 + 32 + 3*7
  4210. - $03 = $A4_1 + 2n(Infermost)*7
  4211. - n=1: $A4_1 = $F5 => $6A68_1 = $F --> invalid
  4212. - Need 10+16x with heals/WizRings on map
  4213. - x=3: 10+16x=42 = 6xHeal (could also use Healus)
  4214. - $03 - 42 = $A4_1 + 2*7
  4215. - $A4_1 = $03 - 56 = -53 = 203 ($CB)
  4216. - $A4_0 = 203 - 13*B0
  4217. - Can't satisfy turn order :(
  4218. - $6A68_1 = $6:
  4219. - B1 = 8
  4220. - $4C = $A4_1 + 2n(Infermost)*8 + 2 + (6+6*8) + 1
  4221. - $4C = $A4_1 + 2n(Infermost)*8 + 57
  4222. - $13 = $A4_1 + 2n(Infermost)*8
  4223. - n=1: $A4_1 = $03 => $6A68_1 = $D --> need 7x WizRing + 1x Heal to fix parity
  4224. - $A4_1 = $C6 (198)
  4225. - With B1=8, can use 2x Heal (or more Infermost) to shift high digit
  4226. - $A4_1 - 9*B0 < 22, $A4_1 - 7*B0 >= 22
  4227. - Table:
  4228. B0 | Heals | $A4_1 | $A4_0 | [P2] | [Wz] | Bomus
  4229. ----+-------+-------+-------+------+------+-------
  4230. 2 | 20 | $26 | $0C | $14 | $16 | $18
  4231. 3 | -- | --- | --- | --- | --- | ---
  4232. 4 | 18 | $36 | $02 | $12 | $16 | $1A
  4233. 5 | -- | --- | --- | --- | --- | ---
  4234. 6 | 16 | $46 | $F8 | $10 | $16 | $1C
  4235. 7 | -- | --- | --- | --- | --- | ---
  4236. 8 | 14 | $56 | $EE | $0E | $16 | $1E
  4237. 9 | 12 | $66 | $F1 | $15 | $1E | $27
  4238. 10 | 12 | $66 | $E4 | $0C | $16 | $20
  4239. 11 | 10 | $76 | $E7 | $13 | $1E | $29
  4240. 12 | 10 | $76 | $DA | $0A | $16 | $22
  4241. 13 | 8 | $86 | $DD | $11 | $1E | $2B
  4242. 14 | 8 | $86 | $D0 | $08 | $16 | $24
  4243. 15 | 6 | $96 | $D3 | $0F | $1E | $2D
  4244. 16 | 6 | $96 | $C6 | $06 | $16 | $26
  4245. 17 | 4 | $A6 | $C9 | $0D | $1E | $2F
  4246. - Solved! (sort of)
  4247.  
  4248. Bomus turn 1:
  4249. - Party max HP on entry: 114+[0,4], 93, 90, 85
  4250. - Bomus initial HP = whatever
  4251. - Bomus focus target = whatever
  4252. - Turn order: whatever (assume Bomus goes first)
  4253. - $A4_1 = ($A4_0 + 14*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4254. - Bomus action count: multi_random(3)
  4255. - For 1 action: 86 <= $A4_1 + 1*B1 - 22 <= 170
  4256. - Bomus action: whatever
  4257. - Bomus target: whatever
  4258. - From turn 2: $6A68_1 = $F --> B1 = 17
  4259. - 91 <= $A4_1 <= 175
  4260. - $A4_end = 201 ($C9); $A4_1 = $x5 (for 1 action: $65 $75 $85 $95 $A5)
  4261. - $A4_end - $A4_1 = 17x + 32y
  4262. - x = 4: Bomus attack + Heal (not very useful...)
  4263. - x = 20: Bomus Explodet + Healus + Infermost + critical + Blazemore
  4264. - critical will not occur
  4265. - or: Bomus Explodet x2 + Infermost x2 + attack
  4266. - will give $A4_1 = $55
  4267. - first action: $66 = Explodet, ok
  4268. - second action: $CC = Attack, bad
  4269. - $6A68_1 = $E --> B1 = 16
  4270. - Requires $A4_end = $C6 but $A4_1 = $x4, can't do that with B1=16
  4271. - $6A68_1 = $D --> B1 = 15
  4272. - $A4_end = $D3; $A4_1 = $x3
  4273. - $A4_end - $A4_1 = 15x + 32y
  4274. - x = 16: Bomus breath + Infermost x2 + Attack + Blazemore
  4275. - y = 1, $A4_1 = $C3
  4276. - Infermost 1: $A4_1 + 7*B1 = $2C, bad
  4277. - This is probably not going to work without an obscene number
  4278. of post-battle heals...
  4279. - $6A68_1 = $C --> B1 = 14
  4280. - $A4_end = $D0; $A4_1 = $x2
  4281. - $A4_end - $A4_1 = 14x + 32y
  4282. - x = 17: Bomus Explodet + Infermost x2 + Attack + Blazemore
  4283. - y = 1, $A4_1 = $C2
  4284. - Same story as above
  4285. - $6A68_1 = $B --> B1 = 13
  4286. - $A4_end = $DD; $A4_1 = $x1
  4287. - $A4_end - $A4_1 = 13x + 32y
  4288. - x = 5 + 16n, bad
  4289. - $6A68_1 = $A --> need 11x Heal @ 160 frames, 7x WizRing @ 190 frames
  4290. - Too slow, maybe we should let Bomus act on turn 2?
  4291.  
  4292. ========== Let's try again! ==========
  4293.  
  4294. Bomus turn 2:
  4295. - HP regen = 44 + multi_random(12)
  4296. - Turn order: whatever (assume Bomus goes first)
  4297. - $A4_1 = ($A4_0 + 13*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4298. - Bomus action count: 1 action --> 86 <= $A4_1 + 1*B1 - 22 <= 170
  4299. - Bomus action: attack = 32 + 2*B1, breath = 4*B1, Explodet = 5*B1
  4300. - Infermost 1 resist check: $A4_1 + Bomus + 1*B1 - 22 >= 77
  4301. - $A4_1 + 1*B1 >= 99
  4302. - Level spam: +($106+6*B1)
  4303. - $A4_map = $A4_1 + Bomus + 2n(Infermost)*B1 + 2 + (6+6*B1) + 1
  4304. - Take $6A68_1 = $5 ($6 has bad parity, from above)
  4305. - B1 = 7
  4306. - 101 <= $A4_1 <= 185 (for 1 Bomus action)
  4307. - $A4_map = $6B
  4308. - $A4_end = $6B - (2 + (6+6*7) + 1) = $6B - 51 = $38
  4309. - Needs hero attacking last b/c magic resistance, or heals on map
  4310. - Bomus attack:
  4311. - Requires $A4_1 + 2*B1 - 22 < 96 --> 101 ($65) <= $A4_1 < 104 ($68)
  4312. - None of those give $6A68_1 = $5
  4313. - Bomus Explodet:
  4314. - $38 = $A4_1 + 7*7 + n*7
  4315. - $07 = $A4_1 + n*7
  4316. - n=4 (2x Infermost): $A4_1 = $EB --> $6A68_1 = $5
  4317. - Need 8x Heal, 1x WizRing (sum = $40) for final magic success
  4318. - Must have at least 5 Heal/WizRing uses on map
  4319. - Can use 1 Healus in battle
  4320. - Bomus action with $A4_1 = $AB:
  4321. - count = $B2-$16 = $9C, ok
  4322. - action = $B9-$16 = $A3 = Explodet, ok
  4323. - $A4_0 = $AB - 13*B0
  4324. - Infermost damage (assume Healus first):
  4325. - #1 = $F8 = 112
  4326. - #2 = $06 = 116
  4327. - Total damage 228
  4328. - Table:
  4329. B0 | $A4_1 | $A4_0 | Derived B0
  4330. ----+-------+-------+------------
  4331. 2 | $AB | $90 | 2
  4332. 3 | $AB | $83 | 5
  4333. 4 | $AB | $76 | 8
  4334. 5 | $AB | $69 | 11
  4335. 6 | $AB | $5C | 14
  4336. 7 | $AB | $4F | 17
  4337. 8 | $AB | $42 | 4
  4338. 9 | $AB | $35 | 7
  4339. 10 | $AB | $28 | 10
  4340. 11 | $AB | $1B | 13
  4341. 12 | $AB | $0E | 16
  4342. 13 | $AB | $01 | 3
  4343. 14 | $AB | $F4 | 6
  4344. 15 | $AB | $E7 | 9
  4345. 16 | $AB | $DA | 12
  4346. 17 | $AB | $CD | 15
  4347. - Solved?
  4348. - $A4_0 = $90, B0 = 2
  4349. - $A4_0 = $28, B0 = 10
  4350.  
  4351. Bomus turn 1:
  4352. - Party max HP on entry: 114+[0,4], 93, 90, 85
  4353. - Bomus initial HP = whatever
  4354. - Bomus focus target = whatever
  4355. - Turn order: whatever (assume Bomus goes first)
  4356. - $A4_1 = ($A4_0 + 14*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4357. - Bomus action count: multi_random(3)
  4358. - For 1 action: 86 <= $A4_1 + 1*B1 - 22 <= 170
  4359. - Bomus action: whatever
  4360. - Bomus target: whatever
  4361. - From turn 2: $6A68_1 = $8 --> B1 = 10
  4362. - 98 <= $A4_1 <= 182
  4363. - $A4_end = $28; $A4_1 = $xE (for 1 action: $6E $7E $8E $9E $AE)
  4364. - Final spell will fail; could attack instead (x+3 y+1)
  4365. - $A4_end - $A4_1 = 10x + 32y
  4366. - If $6E, diff = 186 --> x=9 y=3, x too low
  4367. - If $7E, diff = 170 --> x=17 y=0
  4368. - x = 17: Bomus Explodet + Healus + Infermost x2 + Blazemore (1 fail)
  4369. - Bomus action: $7E + 2*10 = $92, -22 = $7C = Explodet, OK
  4370. - Can't get just 1 fail! [Wz] goes before [Hr], counter wraps
  4371. between Blazemore damage and resist check
  4372. - Need to end turn with [Hr] attack, so y must be >= 1
  4373. - If $8E, diff = 154 --> x=9 y=2, x too low
  4374. - If $9E, diff = 138 --> bad parity, can't get y=4
  4375. - If $AE, diff = 122 --> x=9 y=1, x too low
  4376. - Suppose we let Bomus attack twice?
  4377. - Can't happen... need an increment of at least 97, but worst case
  4378. (selected 4th party member) is 10 + 4*10 + 32 + 10 = 92
  4379. - Suppose Bomus does 2 other actions? (could survive w/Parry)
  4380. - $A4_1 = $BE, assume wrap: diff = 362, x=33 y=1, x too high
  4381. - $A4_1 = $CE: diff = 346, x=25 y=3
  4382. - Bomus action count = $D8-$16 = 2
  4383. - Bomus action 1 = $E2-$16 = Attack
  4384. - Bomus target 1 = $EC-$16 = not player 1
  4385. - Bomus target 1 = $F4-$16 = not player 1
  4386. - Bomus target 1 = $00-$16 = player 3
  4387. - Bomus damage 1 = $20
  4388. - Bomus attack 1 player evade = $2A
  4389. - Bomus action 2 = $34-$16 = breath
  4390. - Bomus damage 2 = $22, $2C, $34, $40
  4391. - x=11 so far, can't reach 25
  4392. - $A4_1 = $DE: diff = 314, x=25 y=2
  4393. - $A4_1 = $EE: diff = 298, x=17 y=4
  4394. - $A4_1 = $FE: diff = 282, x=25 y=1
  4395. - $A4_1 = $0E: diff = 266, x=17 y=3
  4396. - Bomus action count = $18-$16 = 2
  4397. - Bomus action 1 = $22-$16 = breath
  4398. - Bomus damage 1 = $2C, $36, $40, $4A
  4399. - Bomus action 2 = $54-$16 = Explodet, can't get to y=3
  4400. - $A4_1 = $1E: diff = 250, x=25 y=0
  4401. - $A4_1 = $2E: diff = 234, x=17 y=2
  4402. - Bomus action count = $38-$16 = 2
  4403. - Bomus action 1 = $42-$16 = Explodet
  4404. - Bomus target 1 = $4C (unused)
  4405. - Bomus damage 1 = $56, $60, $6A, $74
  4406. - Bomus action 2 = $7E-$16 = Explodet, [Wz] must parry so no y=2
  4407. - $A4_1 = $3E: diff = 218, x=9 y=4
  4408. - $A4_1 = $4E: diff = 202, x=17 y=1
  4409. - Bomus action count = $58-$16 = 2
  4410. - Bomus action 1 = $62-$16 = Attack
  4411. - Bomus target 1 = $6C-$16 = player 1, hero dies :(
  4412. - $A4_1 = $5E: diff = 186, x=9 y=3
  4413. - Okay, let's try $6A68_1 = $0 --> B1 = 2
  4414. - 106 <= $A4_1 <= 190
  4415. - $A4_end = $90; $A4_1 = $x6 (for 1 action: $76 $86 $96 $A6 $B6)
  4416. - All spells will pass resistance check
  4417. - $A4_end - $A4_1 = 2x + 32y
  4418. - Need $A4_1 to be reasonably close but not too close to $A4_end
  4419. - So $76 is the only remotely possible thing
  4420. - $A4_1 = $76: diff = 26, x=13 y=0
  4421. - Bomus action count = $78-$16 = 1
  4422. - Bomus action 1 = $7A-$16 = Explodet
  4423. - Bomus target 1 = $7C (ignored)
  4424. - Bomus damage 1 = $7E, $80, $82, $84
  4425. - Infermost 1 = $86, $88
  4426. - Infermost 2 = $8A, $8C
  4427. - Infermost 3 = $8E, $90
  4428. - Total damage = 86+87+88 = 261
  4429. - $A4_1 = $76 (118)
  4430. - $A4_0 = 118 - 1 - 14*B0 = 89 - 14*$6A68_0
  4431. - Table:
  4432. B0 | $A4_1 | $A4_0 | Derived B0
  4433. ----+-------+-------+------------
  4434. 2 | $76 | $59 | 3
  4435. 3 | $76 | $4B | 5
  4436. 4 | $76 | $3D | 7
  4437. 5 | $76 | $2F | 9
  4438. 6 | $76 | $21 | 11
  4439. 7 | $76 | $13 | 13
  4440. 8 | $76 | $05 | 15
  4441. 9 | $76 | $F7 | 17
  4442. 10 | $76 | $E9 | 3
  4443. 11 | $76 | $DB | 5
  4444. 12 | $76 | $CD | 7
  4445. 13 | $76 | $BF | 9
  4446. 14 | $76 | $B1 | 11
  4447. 15 | $76 | $A3 | 13
  4448. 16 | $76 | $95 | 15
  4449. 17 | $76 | $87 | 17
  4450. - Solved! (hopefully)
  4451. - $A4_0 = $87, $6468_0 = $F (initial HP = 393)
  4452. - Wait a sec, what is this "derived B0" I've been doing? B0 is determined
  4453. in the previous turn! Have I been overly limiting the possible solutions?
  4454. - Any $A4_0 and corresponding B0 in the table should work!
  4455. - Let's go back and try the other B1s...
  4456. - B1 = 3 ($6A68_1 = 1):
  4457. - 105 <= $A4_1 <= 189
  4458. - $A4_end = $83; $A4_1 = $x7 (for 1 action: $77 $87 $97 $A7 $B7)
  4459. - $A4_end - $A4_1 = 3x + 32y
  4460. - $A4_1 = $B7: x=huge, so this won't work, and probably other small B1 too
  4461. - B1 = 7 ($6A68_1 = 5):
  4462. - 101 <= $A4_1 <= 185
  4463. - $A4_end = $4F; $A4_1 = $xB (for 1 action: $6B $7B $8B $9B $AB)
  4464. - $A4_end - $A4_1 = 7x + 32y
  4465. - $A4_1 = $6B: diff = 228, x=28 y=1
  4466. - $A4_1 = $7B: diff = 212, x=12 y=4
  4467. - $A4_1 = $8B: diff = 196, x=28 y=0
  4468. - $A4_1 = $9B: diff = 180, x=12 y=3
  4469. - $A4_1 = $AB: diff = 164, x=-4 y=6
  4470. - B1 = 8 ($6A68_1 = 6):
  4471. - 100 <= $A4_1 <= 184
  4472. - $A4_end = $42; $A4_1 = $xC (for 1 action: $6C $7C $8C $9C $AC)
  4473. - $A4_end - $A4_1 = 8x + 32y
  4474. - Bad parity, no solution (for any B1=4n)
  4475. - B1 = 9 ($6A68_1 = 7):
  4476. - 99 <= $A4_1 <= 183
  4477. - $A4_end = $35; $A4_1 = $xD (for 1 action: $6D $7D $8D $9D $AD)
  4478. - $A4_end - $A4_1 = 9x + 32y
  4479. - $A4_1 = $6D: diff = 200, x=8 y=4
  4480. - $A4_1 = $7D: diff = 184, x=-8 y=8
  4481. - B1 = 11 ($6A68_1 = 9):
  4482. - 97 <= $A4_1 <= 181
  4483. - $A4_end = $1B; $A4_1 = $xF (for 1 action: $6F $7F $8F $9F $AF)
  4484. - $A4_end - $A4_1 = 11x + 32y
  4485. - $A4_1 = $6F: diff = 172, x=4 y=4
  4486. - $A4_1 = $7F: diff = 156, x-12 y=9
  4487. - B1 = 13 ($6A68_1 = 11):
  4488. - 95 <= $A4_1 <= 179
  4489. - $A4_end = $01; $A4_1 = $x1 (for 1 action: $61 $71 $81 $91 $A1 $B1)
  4490. - $A4_end - $A4_1 = 13x + 32y
  4491. - $A4_1 = $61: diff = 160, x=0 y=5
  4492. - $A4_1 = $71: diff = 144, x=-16 y=11
  4493. - B1 = 14 ($6A68_1 = 12):
  4494. - 94 <= $A4_1 <= 178
  4495. - $A4_end = $F4; $A4_1 = $x2 (for 1 action: $62 $72 $82 $92 $A2 $B2)
  4496. - $A4_end - $A4_1 = 14x + 32y
  4497. - $A4_1 = $62: diff = 146, x=-1 y=4
  4498. - $A4_1 = $62: diff = 130, x=7 y=1
  4499. - B1 = 15 ($6A68_1 = 13):
  4500. - 93 <= $A4_1 <= 177
  4501. - $A4_end = $E7; $A4_1 = $x3 (for 1 action: $63 $73 $83 $93 $A3)
  4502. - $A4_end - $A4_1 = 15x + 32y
  4503. - $A4_1 = $63: diff = 132, x=-4 y=6
  4504. - $A4_1 = $73: diff = 116, x=12 y=-2
  4505. - B1 = 17 ($6A68_1 = 15):
  4506. - 91 <= $A4_1 <= 175
  4507. - $A4_end = $CD; $A4_1 = $x5 (for 1 action: $65 $75 $85 $95 $A5)
  4508. - $A4_end - $A4_1 = 17x + 32y
  4509. - $A4_1 = $65: diff = 104, x=8 y=-1
  4510. - $A4_1 = $75: diff = 88, x=-8 y=7
  4511. - No other solutions. Oh well, we tried...
  4512. - Solution (for reference): $A4_0 = $87, $6468_0 = $F (initial HP = 393)
  4513.  
  4514. Hydra turn 2:
  4515. - HP regen = 44 + multi_random(12)
  4516. - Turn order:
  4517. - Don't need [Wz] to act
  4518. - $A4_0 + 4*B0 - 22 <= 255, $A4_0 + 6*B0 - 22 >= 256
  4519. - $A4_1 = ($A4_0 + 13*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4520. - Level spam: +($53+B1)
  4521. - Bomus preconditions:
  4522. - $A4_map = $59 - 14*$6A68_1
  4523. - $A4_end = $59 - 14*$6A68_1 - ($53+($6A68_1+2))
  4524. - Infermost*3, Nx Heal on map: $A4_1 = $A4_end - (6+N)*B1
  4525. - Minimum N for valid $A4_1:
  4526. B1 | $A4_end | N | $A4_1
  4527. ----+---------+---+-------
  4528. 2 | $04 | 1 | $F6
  4529. 3 | $F5 | 4 | $E7
  4530. 4 | $E6 | - | ---
  4531. 5 | $D7 | 0 | $B9
  4532. 6 | $C8 | 7 | $7A
  4533. 7 | $B9 |12 | $3B
  4534. 8 | $AA | - | ---
  4535. 9 | $9B | 8 | $1D
  4536. 10 | $8C | 5 | $1E
  4537. 11 | $7D | 4 | $0F
  4538. 12 | $6E | - | ---
  4539. 13 | $5F | 0 | $11
  4540. 14 | $50 | 3 | $D2
  4541. 15 | $41 |12 | $33
  4542. 16 | $32 | - | ---
  4543. 17 | $23 | 8 | $35
  4544. - To satisfy turn order:
  4545. - $A4_1 - 1 - 9*B0 < 22, $A4_1 - 1 - 7*B0 >= 22
  4546. - 9*B0 > $A4_1 - 23, 7*B0 <= $A4_1 - 23
  4547. - Table:
  4548. $A4_1 | B0_min | B0_max
  4549. -------+--------+--------
  4550. $F6 | 25 | 31
  4551. $E7 | 24 | 29
  4552. $B9 | 18 | 23
  4553. $7A | 11 | 14
  4554. $3B | 4 | 5
  4555. $1D | 30 | 37
  4556. $1E | 30 | 37
  4557. $0F | 28 | 35
  4558. $11 | 28 | 35
  4559. $D2 | 21 | 26
  4560. $33 | 4 | 4
  4561. $35 | 4 | 4
  4562. - Damage table:
  4563. $A4_1 | B1 | 3*Infermost
  4564. -------+----+-------------
  4565. $7A | 6 | 90+ 91+ 93
  4566. $3B | 7 | 76+ 78+ 80
  4567. $33 | 15 | 84+ 87+ 91
  4568. $35 | 17 | 87+ 91+ 95
  4569. - Solutions:
  4570. B0 | $A4_1 | $A4_0
  4571. ----+-------+-------
  4572. 4 | $33 | $FE
  4573. 4 | $35 | $00
  4574. 4 | $3B | $06
  4575. 5 | $3B | $F9
  4576. 11 | $7A | $EA
  4577. 12 | $7A | $DD
  4578. 13 | $7A | $D0
  4579. 14 | $7A | $C3
  4580.  
  4581. Hydra turn 1:
  4582. - Party max HP on entry: 114, 93, 90, 85
  4583. - Hydra initial HP = whatever
  4584. - Hydra focus target = whatever
  4585. - $6A68_0 = $C (B0 = 14), $A4_0 >= $EC (on entering Charlock B5)
  4586. - $A4_1 = ($A4_0 + 14*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4587. - $A4_1 = $A4_0 - $3B ($A4_0=$EC: $A4_1=$B1)
  4588. - Low B1 would be good for damage rolls
  4589. - ... well, actually not because Hydra attacks roll the counter over
  4590. - Table through Hydra action resolution: (odd $A4_0 = with WizRing use)
  4591. $A4_0 | $A4_1 | B1 | HydA1 | HydT1 | HydA2 | HydT2 | HyRes
  4592. -------+-------+----+-------+-------+-------+-------+-------
  4593. $EC | $B1 | 13 | $BE/A | $CB | $D8/B | $E5 | $46
  4594. $EE | $B3 | 15 | $C2/A | $D1 | $E0/B | $EF | $5A
  4595. $F0 | $B5 | 17 | $C6/A | $D7 | $E8/B | $F9 | $6E
  4596. $F2 | $B7 | 3 | $BA/A | $BD | $C0/A | double attack death
  4597. $F4 | $B9 | 5 | $BE/A | $C3 | $C8/A | double attack death
  4598. $F6 | $BB | 7 | $C2/A | $C9 | $D0/A | $D7 | $25
  4599. $F8 | $BD | 9 | $C6/A | $CF | $D8/B | $E1 | $2E
  4600. $FA | $BF | 11 | $CA/A | $D5 | $E0/B | $EB | $42
  4601. $FB | $C0 | 12 | $CC/A | $D8 | $E4/B | $F0 | $4C
  4602. $FD | $C2 | 14 | $D0/A | $DE | $EC/B | $FA | $60
  4603. $FF | $C4 | 16 | $D4/A | $E4 | $F4/B | $04 | $74
  4604. $01 | $C6 | 2 | $C8/A | $CA | $CC/A | double attack death
  4605. $03 | $C8 | 4 | $CC/A | $D0 | $D4/A | $D8 | $20
  4606. $04 | $C9 | 5 | $CD/A | $D3 | $D8/B | $DD | $16
  4607. $05 | $CA | 6 | $D0/A | $D6 | $DC/B | $E2 | $20
  4608. $07 | $CC | 8 | $D4/A | $DC | $E4/B | $EC | $34
  4609. $09 | $CE | 10 | $D8/B | $E2 | $EC/B | $F6 | $46
  4610. - B1=12, B1=14 don't work because of wrong parity
  4611. - Unless we swap an Infermost for a WizRing...
  4612. - B1=12 works if we can add $91 = 145 = 11*B1 + 1*WizRing... too much B1
  4613. - B1=14 works if we can add $63 = 99 = 6*B1 + 3*WizRing... too much WizRing
  4614. - B1=13: add $7D = 125... nope
  4615. - B1=11: add $A8 = 168... nope
  4616. - No solution? Maybe we need 3 turns...
  4617. - Well, let's look at double-breath cases:
  4618. $A4_0 | $A4_1 | B1 | HydA1 | HydT1 | HydA2 | HydT2 | HyRes
  4619. -------+-------+----+-------+-------+-------+-------+-------
  4620. $08 | $CD | 9 | $D6/B | $DF | $E8/B | $F1 | $39
  4621. $09 | $CE | 10 | $D8/B | $E2 | $EC/B | $F6 | $46
  4622. $0A | $CF | 11 | $DA/B | $E5 | $F0/B | $FB | $53
  4623. $0B | $D0 | 12 | $DC/B | $E8 | $F4/B | $00 | $60
  4624. $0C | $D1 | 13 | $DE/B | $EB | $F8/B | $05 | $6D
  4625. $0D | $D2 | 14 | $E0/B | $EE | $FC/B | $0A | $7A
  4626. $0E | $D3 | 15 | $E2/B | $F1 | $00/B | $0F | $87
  4627. $0F | $D4 | 16 | $E4/B | $F4 | $04/B | $14 | $94
  4628. $10 | $D5 | 17 | $E6/B | $F7 | $08/B | $19 | $A1
  4629. $11 | $D6 | 2 | $D8/B | $DA | $DC/B | $DE | $EE
  4630. $12 | $D7 | 3 | $DA/B | $DD | $E0/B | $E3 | $FB
  4631. $13 | $D8 | 4 | $DC/B | $E0 | $E4/B | $E8 | $08
  4632. $14 | $D9 | 5 | $DE/B | $E3 | $E8/B | $ED | $15
  4633. $15 | $DA | 6 | $E0/B | $E6 | $EC/B | $F2 | $22
  4634. $16 | $DB | 7 | $E2/B | $E9 | $F0/B | $F7 | $2F
  4635. $17 | $DC | 8 | $E4/B | $EC | $F4/B | $FC | $3C
  4636. $18 | $DD | 9 | $E6/B | $EF | $F8/B | $01 | $49
  4637. $19 | $DE | 10 | $E8/B | $F2 | $FC/B | $06 | $56
  4638. $1A | $DF | 11 | $EA/B | $F5 | $00/B | $0B | $63
  4639. $1B | $E0 | 12 | $EC/B | $F8 | $04/B | $10 | $70
  4640. $1C | $E1 | 13 | $EE/B | $FB | $08/B | $15 | $7D
  4641. $1D | $E2 | 14 | $F0/B | $FE | $0C/B | $1A | $8A
  4642. $1E | $E3 | 15 | $F2/B | $01 | $10/B | $1F | $97
  4643. $1F | $E4 | 16 | $F4/B | $04 | $14/B | $24 | $A4
  4644. $20 | $E5 | 17 | $F6/B | $07 | $18/A | not double breath
  4645. $21 | $E6 | 2 | $E8/B | $EA | $EC/B | $EE | $FE
  4646. $22 | $E7 | 3 | $EA/B | $ED | $F0/B | $F3 | $0B
  4647. $23 | $E8 | 4 | $EC/B | $F0 | $F4/B | $F8 | $18
  4648. $24 | $E9 | 5 | $EE/B | $F3 | $F8/B | $FD | $25
  4649. $25 | $EA | 6 | $F0/B | $F6 | $FC/B | $02 | $32
  4650. $26 | $EB | 7 | $F2/B | $F9 | $00/B | $07 | $3F
  4651. $27 | $EC | 8 | $F4/B | $FC | $04/B | $0C | $4C
  4652. $28 | $ED | 9 | $F6/B | $FF | $08/B | $11 | $59
  4653. $29 | $EE | 10 | $F8/B | $02 | $0C/B | $16 | $66
  4654. $2A | $EF | 11 | $FA/B | $05 | $10/B | $1B | $73
  4655. $2B | $F0 | 12 | $FC/B | $08 | $14/B | $20 | $80
  4656. - B1=11 (target $EA): $0A($53), $1A($63), $2A($73)
  4657. - B1=13 (target $D0): $0C($6D), $1C($7D)
  4658. - B1=4 (target $FE/$00/$06): $13($08), $23($18)
  4659. - B1=5 (target $F9): $14($15), $24($25)
  4660. - We got nuttin :(
  4661. - Turn 2 Infermost damage was low, so we might have needed 3 turns anyway
  4662.  
  4663. ========== Let's try again! ==========
  4664.  
  4665. Hydra turn 3:
  4666. - HP regen = 44 + multi_random(12)
  4667. - Turn order:
  4668. - Don't need [Wz] to act
  4669. - $A4_0 + 4*B0 - 22 <= 255, $A4_0 + 6*B0 - 22 >= 256
  4670. - $A4_1 = ($A4_0 + 13*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4671. - Level spam: +($53+B1)
  4672. - Bomus preconditions:
  4673. - $A4_map = $59 - 14*$6A68_1
  4674. - $A4_end = $59 - 14*$6A68_1 - ($53+($6A68_1+2))
  4675. - Infermost*3, Nx Heal on map: $A4_1 = $A4_end - (6+N)*B1
  4676. - Can add 3*B1 with IceBolt (if [Wz] acts and Hydra HP allows),
  4677. 2*B1 with Healus
  4678. - Minimum N for valid $A4_1:
  4679. B1 | $A4_end | N | $A4_1
  4680. ----+---------+---+-------
  4681. 2 | $04 | 1 | $F6
  4682. 3 | $F5 | 4 | $E7
  4683. 4 | $E6 | - | ---
  4684. 5 | $D7 | 0 | $B9
  4685. 6 | $C8 | 7 | $7A
  4686. 7 | $B9 |12 | $3B
  4687. 8 | $AA | - | ---
  4688. 9 | $9B | 8 | $1D
  4689. 10 | $8C | 5 | $1E
  4690. 11 | $7D | 4 | $0F
  4691. 12 | $6E | - | ---
  4692. 13 | $5F | 0 | $11
  4693. 14 | $50 | 3 | $D2
  4694. 15 | $41 |12 | $33
  4695. 16 | $32 | - | ---
  4696. 17 | $23 | 8 | $35
  4697. - To satisfy turn order:
  4698. - $A4_1 - 1 - 9*B0 < 22, $A4_1 - 1 - 7*B0 >= 22
  4699. - 9*B0 > $A4_1 - 23, 7*B0 <= $A4_1 - 23
  4700. - Table:
  4701. $A4_1 | B0_min | B0_max
  4702. -------+--------+--------
  4703. $F6 | 25 | 31
  4704. $E7 | 24 | 29
  4705. $B9 | 18 | 23
  4706. $7A | 12 | 14
  4707. $3B | 5 | 5
  4708. $1D | 30 | 37
  4709. $1E | 30 | 37
  4710. $0F | 28 | 35
  4711. $11 | 28 | 35
  4712. $D2 | 21 | 26
  4713. $33 | 4 | 4
  4714. $35 | 4 | 4
  4715. - Damage table:
  4716. $A4_1 | B1 | 3*Infermost
  4717. -------+----+-------------
  4718. $7A | 6 | 90+ 91+ 93 = 274
  4719. $3B | 7 | 76+ 78+ 80 = 234
  4720. $33 | 15 | 84+ 87+ 91 = 262
  4721. $35 | 17 | 87+ 91+ 95 = 273
  4722. - Solutions:
  4723. B0 | $A4_1 | $A4_0 | N | Wz? | Regen
  4724. ----+-------+-------+----+-----+-------
  4725. 4 | $33 | $FE | 12 | Y | 55
  4726. 4 | $35 | $00 | 8 | Y | 55
  4727. 5 | $3B | $F9 | 12 | Y | 54
  4728. 12 | $7A | $DD | 7 | N | 53
  4729. 13 | $7A | $D0 | 7 | Y | 53
  4730. 14 | $7A | $C3 | 7 | Y | 52
  4731.  
  4732. Hydra turn 2:
  4733. - HP regen = 44 + multi_random(12)
  4734. - Turn order: whatever (assume Hydra goes first)
  4735. - $A4_1 = ($A4_0 + 13*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4736. - Let's aim for N <= 8 in turn 3 with [Wz] acting: 4/$35, 13/$D0, 14/$C3
  4737. - 4/$35 is bad, magic will fail
  4738. - (wait, never mind, Infermost never fails on Hydra, but this route is
  4739. wrong because of HP regen anyway)
  4740. - Assuming 3*Infermost, pre-party $A4 is:
  4741. B1 | $A4_end | $A4_party
  4742. ----+---------+-----------
  4743. 13 | $D0 | $A9
  4744. 14 | $C3 | $99
  4745. - How much party B1 needed to make it double breath?
  4746. B1 | Max Breath2 | Breath1 | Target2 | Action2 | Target1 | Action1
  4747. ----+-------------+---------+---------+---------+---------+---------
  4748. 13 | $82 | $4E | $1A | $0D | $00 | $F3
  4749. 14 | $8B | $53 | $1B | $0D | $FF | $F1
  4750. - B1=13 needs 6*B1, B1=14 needs 4*B1
  4751. - $A4_1 table:
  4752. B1 | $A4_end | $A4_1
  4753. ----+---------+-------
  4754. 13 | $D0 | $E6 (off by +5)
  4755. 14 | $C3 | $E3 (off by +1)
  4756. - B1=13 is smack in the middle of the parity sequence :(
  4757. - Would need additional 6*B1, which would push us out of double breath
  4758. - Might make it as far as the $80-$9F breath space, but 12*B1 is too
  4759. much for the party to handle
  4760. - B1=14 has wrong parity, but maybe we can WizRing out of it?
  4761. - Need WizRing + 3*B1
  4762. - Can't get 3*B1 from 2 pilgrims
  4763. - Let's assume we can keep [Wz] alive, then WizRing+Infermost*2+Firebal:
  4764. $A4_party (Breath2) = $8A, Breath1 = $52, Target2 = $1A, Action2 = $0C,
  4765. Target1 = $FE, Action1 = $F0, $A4_1 = $E2
  4766. - Infermost damage = $98 (90), $B4 (93) = total 183
  4767. - Might be 90+97 depending on turn order
  4768. - Total damage including turn 3 regen and damage: 405
  4769. - Let's run with that:
  4770. B0 | $A4_1 | $A4_0 | Regen
  4771. ----+-------+-------+-------
  4772. 2 | $E2 | $C7 | 52
  4773. 3 | $E2 | $BA | 51
  4774. 4 | $E2 | $AD | 51
  4775. 5 | $E2 | $A0 | 50
  4776. 6 | $E2 | $93 | 49
  4777. 7 | $E2 | $86 | 49
  4778. 8 | $E2 | $79 | 48
  4779. 9 | $E2 | $6C | 48
  4780. 10 | $E2 | $5F | 47
  4781. 11 | $E2 | $52 | 46
  4782. 12 | $E2 | $45 | 46
  4783. 13 | $E2 | $38 | 45
  4784. 14 | $E2 | $2B | 44
  4785. 15 | $E2 | $1E | 44
  4786. 16 | $E2 | $11 | 55
  4787. 17 | $E2 | $04 | 55
  4788.  
  4789. Hydra turn 1:
  4790. - Party max HP on entry: 114, 93, 90, 85
  4791. - Hydra initial HP = whatever (if $A4_0 = $EC, then 435)
  4792. - Hydra focus target = whatever
  4793. - $6A68_0 = $C (B0 = 14), $A4_0 >= $EC (on entering Charlock B5)
  4794. - $A4_1 = ($A4_0 + 14*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4795. - $A4_1 = $A4_0 - $3B ($A4_0=$EC: $A4_1=$B1)
  4796. - Probably need 2 Infermosts, so we can't expect to spend >9*B1
  4797. - Table through Hydra action resolution: (odd $A4_0 = with WizRing use)
  4798. (also including required $A4_end and offset)
  4799. $A4_0 | $A4_1 | B1 | HydA1 |HydT1| HydA2 |HydT2|HyRes| End | Offset
  4800. -------+-------+----+-------+-----+-------+-----+-----+-----+----------
  4801. $EC | $B1 | 13 | $BE/A | $CB | $D8/B | $E5 | $46 | $38 | $F2=18+6
  4802. $EE | $B3 | 15 | $C2/A | $D1 | $E0/B | $EF | $5A | $1E | $C4=13+1
  4803. $F0 | $B5 | 17 | $C6/A | $D7 | $E8/B | $F9 | $6E | $04 | $96= 8+14
  4804. $F2 | $B7 | 3 | $BA/A | $BD | $C0/A | double attack death
  4805. $F4 | $B9 | 5 | $BE/A | $C3 | $C8/A | double attack death
  4806. $F6 | $BB | 7 | $C2/A | $C9 | $D0/A | $D7 | $25 | $86 | $61=13+6
  4807. $F8 | $BD | 9 | $C6/A | $CF | $D8/B | $E1 | $2E | $6C | $3E= 6+8
  4808. $FA | $BF | 11 | $CA/A | $D5 | $E0/B | $EB | $42 | $52 | $10= 1+5
  4809. $FB | $C0 | 12 | $CC/A | $D8 | $E4/B | $F0 | $4C | $45 | $F9=20+9
  4810. $FC | $C1 | 13 | $CE/A | $DB | $E8/B | $F5 | $56 | $38 | $E2=17+5
  4811. $FD | $C2 | 14 | $D0/A | $DE | $EC/B | $FA | $60 | $2B | $CB=14+7
  4812. $FE | $C3 | 15 | $D2/A | $E1 | $F0/B | $FF | $6A | $1E | $B4=12+0
  4813. $FF | $C4 | 16 | $D4/A | $E4 | $F4/B | $04 | $74 | $11 | $9D= 9+13
  4814. $00 | $C5 | 17 | $D6/B | $E7 | $F8/B | $09 | $91 | $04 | $73= 6+13
  4815. $01 | $C6 | 2 | $C8/A | $CA | $CC/A | double attack death
  4816. $02 | $C7 | 3 | $CA/A | $CD | $D0/A | double attack death
  4817. $03 | $C8 | 4 | $CC/A | $D0 | $D4/A | $D8 | $20 | $AD | $8D=35+1
  4818. $04 | $C9 | 5 | $CE/A | $D3 | $D8/A | $DD | $27 | $A0 | $79=24+1
  4819. $05 | $CA | 6 | $D0/A | $D6 | $DC/B | $E2 | $20 | $93 | $73=19+1
  4820. $06 | $CB | 7 | $D2/A | $D9 | $E0/B | $E7 | $2A | $86 | $5C=13+1
  4821. $07 | $CC | 8 | $D4/A | $DC | $E4/B | $EC | $34 | $79 | $45= 8+5
  4822. $08 | $CD | 9 | $D6/B | $DF | $E8/B | $F1 | $39 | $6C | $33= 5+6
  4823. $09 | $CE | 10 | $D8/B | $E2 | $EC/B | $F6 | $46 | $5F | $19= 2+5
  4824. $0A | $CF | 11 | $DA/B | $E5 | $F0/B | $FB | $53 | $52 | $FF=23+2
  4825. - Any chance we can use $FE?
  4826. - Initial HP = 550 - ($0C-$16)*138/256 = 418, need just 64 damage
  4827. - Need 12*B0
  4828. - Healus + Healus + Infermost + IceBolt
  4829. - No good, [Wz] is attacked and dies :(
  4830. - Nothing usable, maybe we need to look a bit farther...
  4831. $A4_0 | $A4_1 | B1 | HydA1 |HydT1| HydA2 |HydT2|HyRes| End | Offset
  4832. -------+-------+----+-------+-----+-------+-----+-----+-----+----------
  4833. $0B | $D0 | 12 | $DC/B | $E8 | $F4/B | $00 | $60 | $45 | $E5=19+1
  4834. $0C | $D1 | 13 | $DE/B | $EB | $F8/B | $05 | $6D | $38 | $CB=15+8
  4835. $0D | $D2 | 14 | $E0/B | $EE | $FC/B | $0A | $7A | $2B | $B1=12+9
  4836. $0E | $D3 | 15 | $E2/B | $F1 | $00/B | $0F | $87 | $1E | $97=10+1
  4837. $0F | $D4 | 16 | $E4/B | $F4 | $04/B | $14 | $94 | $11 | $7D= 7+13
  4838. $10 | $D5 | 17 | $E6/B | $F7 | $08/B | $19 | $A1 | $04 | $63= 5+14
  4839. $11 | $D6 | 2 | $D8/B | $DA | $DC/B | $DE | $EE | $C7 | $D9=108+1
  4840. $12 | $D7 | 3 | $DA/B | $DD | $E0/B | $E3 | $FB | $BA | $BF=63+2
  4841. $13 | $D8 | 4 | $DC/B | $E0 | $E4/B | $E8 | $08 | $AD | $A5=41+1
  4842. $14 | $D9 | 5 | $DE/B | $E3 | $E8/B | $ED | $15 | $A0 | $8B=27+4
  4843. $15 | $DA | 6 | $E0/B | $E6 | $EC/B | $F2 | $22 | $93 | $71=18+5
  4844. $16 | $DB | 7 | $E2/B | $E9 | $F0/B | $F7 | $2F | $86 | $57=12+3
  4845. $17 | $DC | 8 | $E4/B | $EC | $F4/B | $FC | $3C | $79 | $3D= 7+5
  4846. $18 | $DD | 9 | $E6/B | $EF | $F8/B | $01 | $49 | $6C | $23= 3+8
  4847. $19 | $DE | 10 | $E8/B | $F2 | $FC/B | $06 | $56 | $5F | $09= 0+9
  4848. $1A | $DF | 11 | $EA/B | $F5 | $00/B | $0B | $63 | $52 | $EF=21+8
  4849. $1B | $E0 | 12 | $EC/B | $F8 | $04/B | $10 | $70 | $45 | $D5=17+9
  4850. $1C | $E1 | 13 | $EE/B | $FB | $08/B | $15 | $7D | $38 | $BB=14+5
  4851. $1D | $E2 | 14 | $F0/B | $FE | $0C/B | $1A | $8A | $2B | $A1=11+7
  4852. $1E | $E3 | 15 | $F2/B | $01 | $10/B | $1F | $97 | $1E | $87= 9+0
  4853. $1F | $E4 | 16 | $F4/B | $04 | $14/B | $24 | $A4 | $11 | $6D= 6+13
  4854. $20 | $E5 | 17 | $F6/B | $07 | $18/A | hero attack death
  4855. $21 | $E6 | 2 | $E8/B | $EA | $EC/B | $EE | $FE | $C7 | $C9=100+1
  4856. $22 | $E7 | 3 | $EA/B | $ED | $F0/B | $F3 | $0B | $BA | $AF=58+1
  4857. $23 | $E8 | 4 | $EC/B | $F0 | $F4/B | $F8 | $18 | $AD | $95=37+1
  4858. $24 | $E9 | 5 | $EE/B | $F3 | $F8/B | $FD | $25 | $A0 | $7B=24+3
  4859. $25 | $EA | 6 | $F0/B | $F6 | $FC/B | $02 | $32 | $93 | $61=16+1
  4860. $26 | $EB | 7 | $F2/B | $F9 | $00/B | $07 | $3F | $86 | $47=10+1
  4861. $27 | $EC | 8 | $F4/B | $FC | $04/B | $0C | $4C | $79 | $2D= 5+5
  4862. $28 | $ED | 9 | $F6/B | $FF | $08/B | $11 | $59 | $6C | $13= 2+1
  4863. $29 | $EE | 10 | $F8/B | $02 | $0C/B | $16 | $66 | $5F | $F9=24+9
  4864. $2A | $EF | 11 | $FA/B | $05 | $10/B | $1B | $73 | $52 | $DF=20+3
  4865. - Can we use $A4_0 = $1E?
  4866. - Initial HP = 550 - ($2C-$16)*138/256 = 539
  4867. - Turn 2 regen = 44, subsequent damage-regen = 405, so need 178 damage
  4868. - Need 9*B0
  4869. - Healus + Infermost + IceBolt + Infermost?
  4870. - Healus $A4: $B2
  4871. - Infermost: $E2 = 107
  4872. - IceBolt: $0F = 34
  4873. - Infermost: $1E = 61
  4874. - Total damage = 202
  4875. - WE HAVE A SOLUTION!
  4876.  
  4877. ... Wait, Hydra regen is 90-109, not 44-55 ...
  4878.  
  4879. ========== Let's try again! ==========
  4880.  
  4881. Hydra turn 4:
  4882. - HP regen = 90 + multi_random(20)
  4883. - Turn order:
  4884. - Don't need [Wz] to act
  4885. - $A4_0 + 4*B0 - 22 <= 255, $A4_0 + 6*B0 - 22 >= 256
  4886. - $A4_1 = ($A4_0 + 13*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4887. - Level spam: +($53+B1)
  4888. - Bomus preconditions:
  4889. - $A4_map = $59 - 14*$6A68_1
  4890. - $A4_end = $59 - 14*$6A68_1 - ($53+($6A68_1+2))
  4891. - Infermost*3, Nx Heal on map: $A4_1 = $A4_end - (6+N)*B1
  4892. - Can add 3*B1 with IceBolt (if [Wz] acts and Hydra HP allows),
  4893. 2*B1 with Healus
  4894. - Minimum N for valid $A4_1:
  4895. B1 | $A4_end | N | $A4_1
  4896. ----+---------+---+-------
  4897. 2 | $04 | 1 | $F6
  4898. 3 | $F5 | 4 | $E7
  4899. 4 | $E6 | - | ---
  4900. 5 | $D7 | 0 | $B9
  4901. 6 | $C8 | 7 | $7A
  4902. 7 | $B9 |12 | $3B
  4903. 8 | $AA | - | ---
  4904. 9 | $9B | 8 | $1D
  4905. 10 | $8C | 5 | $1E
  4906. 11 | $7D | 4 | $0F
  4907. 12 | $6E | - | ---
  4908. 13 | $5F | 0 | $11
  4909. 14 | $50 | 3 | $D2
  4910. 15 | $41 |12 | $33
  4911. 16 | $32 | - | ---
  4912. 17 | $23 | 8 | $35
  4913. - To satisfy turn order:
  4914. - $A4_1 - 1 - 9*B0 < 22, $A4_1 - 1 - 7*B0 >= 22
  4915. - 9*B0 > $A4_1 - 23, 7*B0 <= $A4_1 - 23
  4916. - Table:
  4917. $A4_1 | B0_min | B0_max
  4918. -------+--------+--------
  4919. $F6 | 25 | 31
  4920. $E7 | 24 | 29
  4921. $B9 | 18 | 23
  4922. $7A | 12 | 14
  4923. $3B | 5 | 5
  4924. $1D | 30 | 37
  4925. $1E | 30 | 37
  4926. $0F | 28 | 35
  4927. $11 | 28 | 35
  4928. $D2 | 21 | 26
  4929. $33 | 4 | 4
  4930. $35 | 4 | 4
  4931. - Damage table:
  4932. $A4_1 | B1 | 3*Infermost
  4933. -------+----+-------------
  4934. $7A | 6 | 90+ 91+ 93 = 274
  4935. $3B | 7 | 76+ 78+ 80 = 234
  4936. $33 | 15 | 84+ 87+ 91 = 262
  4937. $35 | 17 | 87+ 91+ 95 = 273
  4938. - Solutions:
  4939. B0 | $A4_1 | $A4_0 | N | Wz? | Regen
  4940. ----+-------+-------+----+-----+-------
  4941. 4 | $33 | $FE | 12 | Y | 108
  4942. 4 | $35 | $00 | 8 | Y | 108
  4943. 5 | $3B | $F9 | 12 | Y | 108
  4944. 12 | $7A | $DD | 7 | N | 106
  4945. 13 | $7A | $D0 | 7 | Y | 105
  4946. 14 | $7A | $C3 | 7 | Y | 104
  4947.  
  4948. Hydra turn 3:
  4949. - HP regen = 90 + multi_random(20)
  4950. - Turn order: whatever (assume Hydra goes first)
  4951. - $A4_1 = ($A4_0 + 13*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  4952. - Let's aim for N <= 8 in turn 3 with [Wz] acting: 4/$35, 13/$D0, 14/$C3
  4953. - 4/$35 is bad, magic will fail
  4954. - Assuming 3*Infermost, pre-party $A4 is:
  4955. B1 | $A4_end | $A4_party
  4956. ----+---------+-----------
  4957. 13 | $D0 | $A9
  4958. 14 | $C3 | $99
  4959. - How much party B1 needed to make it double breath?
  4960. B1 | Max Breath2 | Breath1 | Target2 | Action2 | Target1 | Action1
  4961. ----+-------------+---------+---------+---------+---------+---------
  4962. 13 | $82 | $4E | $1A | $0D | $00 | $F3
  4963. 14 | $8B | $53 | $1B | $0D | $FF | $F1
  4964. - B1=13 needs 6*B1, B1=14 needs 4*B1
  4965. - $A4_1 table:
  4966. B1 | $A4_end | $A4_1
  4967. ----+---------+-------
  4968. 13 | $D0 | $E6 (off by +5)
  4969. 14 | $C3 | $E3 (off by +1)
  4970. - B1=13 is smack in the middle of the parity sequence :(
  4971. - Would need additional 6*B1, which would push us out of double breath
  4972. - Might make it as far as the $80-$9F breath space, but 12*B1 is too
  4973. much for the party to handle
  4974. - B1=14 has wrong parity, but maybe we can WizRing out of it?
  4975. - Need WizRing + 3*B1
  4976. - Can't get 3*B1 from 2 pilgrims
  4977. - Let's assume we can keep [Wz] alive, then WizRing+Infermost*2+Firebal:
  4978. $A4_party (Breath2) = $8A, Breath1 = $52, Target2 = $1A, Action2 = $0C,
  4979. Target1 = $FE, Action1 = $F0, $A4_1 = $E2
  4980. - Infermost damage = $98 (90), $B4 (93) = total 183
  4981. - Might be 90+97 depending on turn order
  4982. - Total damage including turn 3 regen and damage: 352
  4983. - Let's run with that:
  4984. B0 | $A4_1 | $A4_0 | Regen
  4985. ----+-------+-------+-------
  4986. 2 | $E2 | $C7 | 103
  4987. 3 | $E2 | $BA | 103
  4988. 4 | $E2 | $AD | 102
  4989. 5 | $E2 | $A0 | 101
  4990. 6 | $E2 | $93 | 100
  4991. 7 | $E2 | $86 | 99
  4992. 8 | $E2 | $79 | 98
  4993. 9 | $E2 | $6C | 97
  4994. 10 | $E2 | $5F | 96
  4995. 11 | $E2 | $52 | 95
  4996. 12 | $E2 | $45 | 94
  4997. 13 | $E2 | $38 | 93
  4998. 14 | $E2 | $2B | 92
  4999. 15 | $E2 | $1E | 91
  5000. 16 | $E2 | $11 | 90
  5001. 17 | $E2 | $04 | 109
  5002.  
  5003. Hydra turn 2:
  5004. - HP regen = 90 + multi_random(20)
  5005. - Turn order: whatever (assume Hydra goes first)
  5006. - $A4_1 = ($A4_0 + 13*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  5007. - Double breath: (n = number of party B1 units needed)
  5008. B1 |$A4_end| n |Breath2|Breath1|Target2|Action2|Target1|Action1| $A4_1
  5009. ----+-------+---+-------+-------+-------+-------+-------+-------+-------
  5010. 2 | $C7 |<14| $C7 | $BF | $B7 | $B5 | $B3 | $B1 | $AF
  5011. 3 | $BA |0-1| $BA | $AE | $A2 | $9F | $9C | $99 | $96
  5012. 4 | $AD |29 | $39 | $29 | $19 | $15 | $11 | $0D | $09
  5013. 5 | $A0 |15 | $41 | $2D | $19 | $14 | $0F | $0A | $05
  5014. 6 | $93 |12 | $4B | $33 | $1B | $15 | $0F | $09 | $03
  5015. 7 | $86 | 8+| $4E | $32 | $16 | $0F | $08 | $01 | $FA
  5016. 8 | $79 | 4 | $59 | $39 | $19 | $11 | $09 | $01 | $F9
  5017. 9 | $6C |1-5| $63 | $3F | $1B | $12 | $09 | $00 | $F7
  5018. 10 | $5F |0-2| $5F | $37 | $0F | $05 | $FB | $F1 | $E7
  5019. 11 | $52 | 0 | $52 | $26 | $FA | $EF | $E4 | $D9 | $CE
  5020. 12 | $45 | 1 | $3D | $0D | $DD | $D1 | $C5 | $B9 | $AD
  5021. 13 | $38 |14 | $82 | $4E | $1A | $0D | $00 | $F3 | $E6
  5022. 14 | $2B |11 | $91 | $59 | $21 | $13 | $05 | $F7 | $E9
  5023. 15 | $1E | 9 | $97 | $5B | $1F | $10 | $01 | $F2 | $E3
  5024. 16 | $11 | 7 | $A1 | $61 | $21 | $11 | $01 | $F1 | $E1
  5025. 17 | $04 | 6 | $9E | $5A | $16 | $05 | $04 | $F3 | $E2
  5026. - Filtering to valid $A4_1: (* = requires WizRing use)
  5027. B1 |$A4_end| n |Breath2|Breath1|Target2|Action2|Target1|Action1| $A4_1
  5028. ----+-------+---+-------+-------+-------+-------+-------+-------+-------
  5029. 2*| $C7 | 4 | $BE | $B6 | $AE | $AC | $AA | $A8 | $A6
  5030. 2*| $C7 |12 | $AE | $A6 | $9E | $9C | $9A | $98 | $96
  5031. 4*| $AD |29 | $38 | $28 | $18 | $14 | $10 | $0C | $08
  5032. 4*| $AD |25 | $28 | $18 | $08 | $04 | $00 | $FC | $F8
  5033. 4*| $AD |21 | $18 | $08 | $F8 | $F4 | $F0 | $EC | $E8
  5034. 4*| $AD |17 | $08 | $F8 | $E8 | $E4 | $E0 | $DC | $D8
  5035. 6*| $93 |16 | $32 | $1A | $02 | $FC | $F6 | $F0 | $EA
  5036. 9*| $6C | 2 | $59 | $35 | $11 | $08 | $FF | $F6 | $ED
  5037. 15 | $1E | 9 | $97 | $5B | $1F | $10 | $01 | $F2 | $E3
  5038. - Assuming at least 2*Infermost:
  5039. - 2/$A6: 2*Infermost + WizRing + Firebal (can't heal)
  5040. - Infermost: $C0 = 99
  5041. - Infermost: $C2 = 100
  5042. - Next turn regen = 103
  5043. - Total damage to end of battle: 352 + 199 - 103 = 448
  5044. - But we can't heal so [Wz] will die next turn (if not this one)
  5045. - 15/$E3: 2*Infermost + Healus + IceBolt
  5046. - Healus: $A6, $B5, $C4, $D3
  5047. - Infermost: $E2 = 107
  5048. - IceBolt: $00 = 34
  5049. - Infermost: $1E = 61
  5050. - Next turn regen = 91
  5051. - Total damage to end of battle: 352 + 202 - 91 = 463
  5052. - B0 table:
  5053. B0 | $A4_1 | $A4_0 | Regen
  5054. ----+-------+-------+-------
  5055. 2 | $A6 | $8B | 99
  5056. 2 | $E3 | $C8 | 103
  5057. 3 | $A6 | $7E | 98
  5058. 3 | $E3 | $BB | 102
  5059. 4 | $A6 | $71 | 97
  5060. 4 | $E3 | $AE | 101
  5061. 5 | $A6 | $64 | 96
  5062. 5 | $E3 | $A1 | 100
  5063. 6 | $A6 | $57 | 95
  5064. 6 | $E3 | $94 | 99
  5065. 7 | $A6 | $4A | 94
  5066. 7 | $E3 | $87 | 98
  5067. 8 | $A6 | $3D | 93
  5068. 8 | $E3 | $7A | 97
  5069. 9 | $A6 | $30 | 92
  5070. 9 | $E3 | $6D | 96
  5071. 10 | $A6 | $23 | 91
  5072. 10 | $E3 | $60 | 95
  5073. 11 | $A6 | $16 | 90
  5074. 11 | $E3 | $53 | 94
  5075. 12 | $A6 | $09 | 109
  5076. 12 | $E3 | $46 | 93
  5077. 13 | $A6 | $FC | 108
  5078. 13 | $E3 | $39 | 92
  5079. 14 | $A6 | $EF | 108
  5080. 14 | $E3 | $2C | 91
  5081. 15 | $A6 | $E2 | 107
  5082. 15 | $E3 | $1F | 90
  5083. 16 | $A6 | $D5 | 106
  5084. 16 | $E3 | $12 | 109
  5085. 17 | $A6 | $C8 | 105
  5086. 17 | $E3 | $05 | 108
  5087.  
  5088. Hydra turn 1:
  5089. - Party max HP on entry: 114, 93, 90, 85
  5090. - Hydra initial HP = whatever (if $A4_0 = $EC, then 435)
  5091. - Hydra focus target = whatever
  5092. - $6A68_0 = $C (B0 = 14), $A4_0 >= $EC (on entering Charlock B5)
  5093. - $A4_1 = ($A4_0 + 14*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  5094. - $A4_1 = $A4_0 - $3B ($A4_0=$EC: $A4_1=$B1)
  5095. - Probably need 2 Infermosts, so we can't expect to spend >9*B1
  5096. - Need either [Wz] parry or a heal on [Wz]
  5097. - Let's use $A4_2 = $E3 since that both gives more damage and allows Healus
  5098. - Table through Hydra action resolution: (odd $A4_0 = with WizRing use)
  5099. (also including required $A4_end and offset)
  5100. $A4_0 | $A4_1 | B1 | HydA1 |HydT1| HydA2 |HydT2|HyRes| End | Offset
  5101. -------+-------+----+-------+-----+-------+-----+-----+-----+----------
  5102. $EC | $B1 | 13 | $BE/A | $CB | $D8/B | $E5 | $46 | $39 | $F3=18+7
  5103. $EE | $B3 | 15 | $C2/A | $D1 | $E0/B | $EF | $5A | $1F | $C5=13+2
  5104. $F0 | $B5 | 17 | $C6/A | $D7 | $E8/B | $F9 | $6E | $05 | $97= 8+15
  5105. $F2 | $B7 | 3 | $BA/A | $BD | $C0/A | double attack death
  5106. $F4 | $B9 | 5 | $BE/A | $C3 | $C8/A | double attack death
  5107. $F6 | $BB | 7 | $C2/A | $C9 | $D0/A | $D7 | $25 | $87 | $62=14+0
  5108. $F8 | $BD | 9 | $C6/A | $CF | $D8/B | $E1 | $2E | $6D | $3F= 7+0
  5109. $FA | $BF | 11 | $CA/A | $D5 | $E0/B | $EB | $42 | $53 | $11= 1+6
  5110. $FB | $C0 | 12 | $CC/A | $D8 | $E4/B | $F0 | $4C | $46 | $FA=20+10
  5111. $FC | $C1 | 13 | $CE/A | $DB | $E8/B | $F5 | $56 | $39 | $E3=17+6
  5112. $FD | $C2 | 14 | $D0/A | $DE | $EC/B | $FA | $60 | $2C | $CC=14+8
  5113. $FE | $C3 | 15 | $D2/A | $E1 | $F0/B | $FF | $6A | $1F | $B5=12+1
  5114. $FF | $C4 | 16 | $D4/A | $E4 | $F4/B | $04 | $74 | $12 | $9E= 9+14
  5115. $00 | $C5 | 17 | $D6/B | $E7 | $F8/B | $09 | $91 | $05 | $74= 6+14
  5116. $01 | $C6 | 2 | $C8/A | $CA | $CC/A | double attack death
  5117. $02 | $C7 | 3 | $CA/A | $CD | $D0/A | double attack death
  5118. $03 | $C8 | 4 | $CC/A | $D0 | $D4/A | $D8 | $20 | $AE | $8E=35+2
  5119. $04 | $C9 | 5 | $CE/A | $D3 | $D8/A | $DD | $27 | $A1 | $7A=24+2
  5120. $05 | $CA | 6 | $D0/A | $D6 | $DC/B | $E2 | $20 | $94 | $74=19+2
  5121. $06 | $CB | 7 | $D2/A | $D9 | $E0/B | $E7 | $2A | $87 | $5D=13+2
  5122. $07 | $CC | 8 | $D4/A | $DC | $E4/B | $EC | $34 | $7A | $46= 8+6
  5123. $08 | $CD | 9 | $D6/B | $DF | $E8/B | $F1 | $39 | $6D | $34= 5+7
  5124. $09 | $CE | 10 | $D8/B | $E2 | $EC/B | $F6 | $46 | $60 | $1A= 2+6
  5125. $0A | $CF | 11 | $DA/B | $E5 | $F0/B | $FB | $53 | $53 | $00= 0+0
  5126. - Can we use $A4_0 = $F8?
  5127. - Initial HP = 550 - ($F8+14-$16)*138/256 = 421
  5128. - Turn 2 regen = 96, subsequent damage-regen = 463, so need 42 damage
  5129. - Need 7*B0
  5130. - Healus + Parry + Blaze + Infermost
  5131. - Infermost damage is automatically >= 60, so solved?
  5132. - More stuff in case we need it...
  5133. $A4_0 | $A4_1 | B1 | HydA1 |HydT1| HydA2 |HydT2|HyRes| End | Offset
  5134. -------+-------+----+-------+-----+-------+-----+-----+-----+----------
  5135. $0B | $D0 | 12 | $DC/B | $E8 | $F4/B | $00 | $60 | $46 | $E6=19+2
  5136. $0C | $D1 | 13 | $DE/B | $EB | $F8/B | $05 | $6D | $39 | $CC=15+9
  5137. $0D | $D2 | 14 | $E0/B | $EE | $FC/B | $0A | $7A | $2C | $B2=12+10
  5138. $0E | $D3 | 15 | $E2/B | $F1 | $00/B | $0F | $87 | $1F | $98=10+2
  5139. $0F | $D4 | 16 | $E4/B | $F4 | $04/B | $14 | $94 | $12 | $7E= 7+14
  5140. $10 | $D5 | 17 | $E6/B | $F7 | $08/B | $19 | $A1 | $05 | $64= 5+15
  5141. $11 | $D6 | 2 | $D8/B | $DA | $DC/B | $DE | $EE | $C8 | $DA=109+0
  5142. $12 | $D7 | 3 | $DA/B | $DD | $E0/B | $E3 | $FB | $BB | $C0=64+0
  5143. $13 | $D8 | 4 | $DC/B | $E0 | $E4/B | $E8 | $08 | $AE | $A6=41+2
  5144. $14 | $D9 | 5 | $DE/B | $E3 | $E8/B | $ED | $15 | $A1 | $8C=28+0
  5145. $15 | $DA | 6 | $E0/B | $E6 | $EC/B | $F2 | $22 | $94 | $72=19+0
  5146. $16 | $DB | 7 | $E2/B | $E9 | $F0/B | $F7 | $2F | $87 | $58=12+4
  5147. $17 | $DC | 8 | $E4/B | $EC | $F4/B | $FC | $3C | $7A | $3E= 7+6
  5148. $18 | $DD | 9 | $E6/B | $EF | $F8/B | $01 | $49 | $6D | $24= 4+0
  5149. $19 | $DE | 10 | $E8/B | $F2 | $FC/B | $06 | $56 | $60 | $0A= 1+0
  5150. $1A | $DF | 11 | $EA/B | $F5 | $00/B | $0B | $63 | $53 | $F0=21+9
  5151. $1B | $E0 | 12 | $EC/B | $F8 | $04/B | $10 | $70 | $46 | $D6=17+10
  5152. $1C | $E1 | 13 | $EE/B | $FB | $08/B | $15 | $7D | $39 | $BC=14+6
  5153. $1D | $E2 | 14 | $F0/B | $FE | $0C/B | $1A | $8A | $2C | $A2=11+8
  5154. $1E | $E3 | 15 | $F2/B | $01 | $10/B | $1F | $97 | $1F | $88= 9+1
  5155. $1F | $E4 | 16 | $F4/B | $04 | $14/B | $24 | $A4 | $12 | $6E= 6+14
  5156. $20 | $E5 | 17 | $F6/B | $07 | $18/A | hero attack death
  5157. $21 | $E6 | 2 | $E8/B | $EA | $EC/B | $EE | $FE | $C8 | $CA=101+0
  5158. $22 | $E7 | 3 | $EA/B | $ED | $F0/B | $F3 | $0B | $BB | $B0=58+2
  5159. $23 | $E8 | 4 | $EC/B | $F0 | $F4/B | $F8 | $18 | $AE | $96=37+2
  5160. $24 | $E9 | 5 | $EE/B | $F3 | $F8/B | $FD | $25 | $A1 | $7C=24+4
  5161. $25 | $EA | 6 | $F0/B | $F6 | $FC/B | $02 | $32 | $94 | $62=16+2
  5162. $26 | $EB | 7 | $F2/B | $F9 | $00/B | $07 | $3F | $87 | $48=10+2
  5163. $27 | $EC | 8 | $F4/B | $FC | $04/B | $0C | $4C | $7A | $2E= 5+6
  5164. $28 | $ED | 9 | $F6/B | $FF | $08/B | $11 | $59 | $6D | $14= 2+2
  5165. $29 | $EE | 10 | $F8/B | $02 | $0C/B | $16 | $66 | $60 | $FA=25+0
  5166. $2A | $EF | 11 | $FA/B | $05 | $10/B | $1B | $73 | $53 | $E0=20+4
  5167. - SOLVED! For real this time!
  5168.  
  5169. ... Wait, turn 4 is assuming 2*B1 for Infermost ...
  5170. and post-battle count 2 and map count 1 is missing ...
  5171.  
  5172. ========== Let's try again! ========== (sigh)
  5173.  
  5174. Hydra turn 4:
  5175. - HP regen = 90 + multi_random(20)
  5176. - Turn order:
  5177. - Don't need [Wz] to act
  5178. - $A4_0 + 4*B0 - 22 <= 255, $A4_0 + 6*B0 - 22 >= 256
  5179. - $A4_1 = ($A4_0 + 13*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  5180. - Level spam: +($53+B1)
  5181. - Bomus preconditions:
  5182. - $A4_map = $59 - 14*$6A68_1
  5183. - $A4_end = $59 - 14*$6A68_1 - (2 + $53+($6A68_1+2) + 1)
  5184. - Infermost*3, Nx Heal/WizRing (incl. Mx WizRing) on map:
  5185. $A4_1 = $A4_end - (3+N)*B1 - M
  5186. - Can add 3*B1 with IceBolt (if [Wz] acts and Hydra HP allows),
  5187. 3*B1 with Healus
  5188. - Minimum N/M for valid $A4_1:
  5189. B1 | $A4_end | N | M | $A4_1
  5190. ----+---------+---+---+-------
  5191. 2 | $04 | 4 | 0 | $F6
  5192. 3 | $F5 | 2 | 2 | $E7
  5193. 4 | $E6 | 4 | 2 | $C8
  5194. 5 | $D7 | 3 | 0 | $B9
  5195. 6 | $C8 | 2 | 0 | $AA
  5196. 7 | $B9 | 8 | 1 | $6B
  5197. 8 | $AA | 6 | 6 | $5C
  5198. 9 | $9B | 2 | 1 | $6D
  5199. 10 | $8C | 0 | 0 | $6E
  5200. 11 | $7D | 4 | 1 | $2F
  5201. 12 | $6E | 2 | 2 | $30
  5202. 13 | $5F | 3 | 0 | $11
  5203. 14 | $50 | 6 | 0 | $D2
  5204. 15 | $41 |15 | 0 | $33
  5205. 16 | $32 |14 |14 | $44
  5206. 17 | $23 | 6 | 5 | $85
  5207. - To satisfy turn order:
  5208. - $A4_1 - 1 - 9*B0 < 22, $A4_1 - 1 - 7*B0 >= 22
  5209. - 9*B0 > $A4_1 - 23, 7*B0 <= $A4_1 - 23
  5210. - Table:
  5211. $A4_1 | B0_min | B0_max
  5212. -------+--------+--------
  5213. $F6 | 25 | 31
  5214. $E7 | 24 | 29
  5215. $C8 | 20 | 25
  5216. $B9 | 18 | 23
  5217. $AA | 17 | 21
  5218. $6B | 10 | 12
  5219. $5C | 8 | 9
  5220. $1D | 30 | 37
  5221. $6D | 10 | 12
  5222. $6E | 10 | 12
  5223. $2F | 3 | 3
  5224. $30 | 3 | 3
  5225. $11 | 28 | 35
  5226. $D2 | 21 | 26
  5227. $33 | 4 | 4
  5228. $44 | 6 | 6
  5229. $85 | 13 | 15
  5230. - Damage table:
  5231. $A4_1 | B1 | 3*Infermost
  5232. -------+----+-------------
  5233. $2F | 11 | 68+ 71+ 73 = 212
  5234. $30 | 12 | 68+ 71+ 74 = 213
  5235. $33 | 15 | 70+ 73+ 77 = 220
  5236. $44 | 16 | 74+ 78+ 82 = 234
  5237. $5C | 8 | 78+ 80+ 82 = 240
  5238. $6B | 7 | 81+ 83+ 84 = 248
  5239. $6D | 9 | 82+ 84+ 86 = 252
  5240. $6E | 10 | 82+ 85+ 87 = 254
  5241. $85 | 17 | 90+ 93+ 97 = 280
  5242. $AA | 6 | 96+ 97+ 98 = 291
  5243. - Solutions:
  5244. B0 | $A4_1 | $A4_0 | N/M | Wz? | Regen
  5245. ----+-------+-------+-----+-----+-------
  5246. 3 | $2F | $07 | 4/1 | N | 109
  5247. 3 | $30 | $08 | 2/2 | N | 109
  5248. 4 | $33 | $FE |15/0 | Y | 108
  5249. 6 | $44 | $F5 |14/14| Y | 107
  5250. 8 | $5C | $F3 | 6/6 | N | 107
  5251. 9 | $5C | $E6 | 6/6 | Y | 106
  5252. 10 | $6D | $EA | 2/1 | N | 107
  5253. 10 | $6E | $EB | 0/0 | N | 107
  5254. 11 | $6D | $DD | 2/1 | Y | 106
  5255. 11 | $6E | $DE | 0/0 | Y | 106
  5256. 12 | $6D | $D0 | 2/1 | Y | 105
  5257. 12 | $6E | $D1 | 0/0 | Y | 105
  5258. 13 | $85 | $DB | 6/5 | N | 106
  5259. 14 | $85 | $CE | 6/5 | Y | 105
  5260. 15 | $85 | $C1 | 6/5 | Y | 104
  5261. 17 | $AA | $CC | 2/0 | N | 102
  5262.  
  5263. (aborted due to Zoma fix)
  5264.  
  5265.  
  5266.  
  5267.  
  5268.  
  5269.  
  5270.  
  5271.  
  5272. [EVEN MORE OBSOLETE Appendix: Boss rush] (for $6A68 = 7 after Metal Babbles)
  5273.  
  5274. Reverse turn order:
  5275. - Zoma turn 2: 4 high Herb hits before Zoma acts
  5276. - Zoma turn 1: low breath damage, possibly some Herb hits
  5277. - Gonus turn 4: high damage
  5278. - Gonus turn 3: high damage, Surround evade
  5279. - Gonus turn 2: high damage, Surround evade
  5280. - Gonus turn 1: high damage, Surround hit, Surround evade
  5281. - Bomus turn 2: high damage before Bomus acts
  5282. - Bomus turn 1: high damage
  5283. - Hydra turn 2: high damage before Hydra acts
  5284. - Hydra turn 1: high damage
  5285.  
  5286. Let B0 = $6A68+2 at beginning of turn, B1 = $6A68+2 after party menu
  5287.  
  5288. Zoma turn 2:
  5289. - HP regen: 90 + multi_random(20)
  5290. - Turn order: 22-6*B0 <= $A4_0 < 22-5*B0
  5291. - B1-2 = ($A4_0+13*B0-21) & 15
  5292. - Zoma actions: $A4 += 4*B1
  5293. - High Herb hits: $A4_next2-22 <= 36 so $A4_next2 <= 58
  5294. - 4 high Herb hits: $A4_0 + 13*B0+1 + 12*B1 <= 58
  5295. - Max B0 (if B1 = 2):
  5296. - 22-6*B0 <= $A4_0 < 22-5*B0
  5297. - $A4_0 + 13*B0+1 + 24 <= 58 --> $A4_0 <= 33-13*B0
  5298. - 22-6*B0 <= 33-13*B0 --> 7*B0 <= 11 --> no solutions :(
  5299. - If we only need 1 herb, B0=2 $A4_0=11 gives B1=2 and damage=252
  5300. *** How about letting Zoma go first with Freezing Wave?
  5301. - Turn order: anything goes
  5302. - B1-2 = ($A4_0+13*B0-21) & 15
  5303. - For B1=2: B0=2 -> $A4_0=$xB; B0=3 -> $A4_0=$xE; etc.
  5304. - Zoma actions - Freezing Wave: $A4_next-22 >= 224 so $A4_next >= 246
  5305. - $A4_0 + 13*B0+1 + 1*B1 >= 246
  5306. - $A4_0 + 13*B0+1 + 3*B1 <= 277 (21)
  5307. - 4 high Herb hits: $A4_0 + 13*B0+1 + 12*B1 <= 58
  5308. - Limits for B1: k + 1*B1 >= 246, k + 3*B1 <= 277, k + 12*B1 <= 314
  5309. - k + 1*B1 >= 246 and k + 3*B1 <= 277 --> B1 < 16
  5310. - k + 1*B1 >= 246 and k + 12*B1 <= 314 --> 11*B1 <= 68 --> B1 <= 6
  5311. - k + 3*B1 <= 277 and k + 12*B1 <= 314 --> 9*B1 <= 37 --> B1 <= 4
  5312. - Final: B1 <= 4
  5313. - $A4_0 + 13*B0+1 + 1*B1 >= 246 --> $A4_0 >= 245 - 13*B0 - 1*B1
  5314. - $A4_0 + 13*B0+1 + 3*B1 <= 277 --> $A4_0 <= 277 - 13*B0 - 3*B1
  5315. - $A4_0 + 13*B0+1 + 13*B1 <= 314 --> $A4_0 <= 313 - 13*B0 - 13*B1
  5316. - Table of valid $A4_0:
  5317. B0 | $A4_0, B1=2 | $A4_0, B1=3 | $A4_0, B1=4 | Valid B1:$A4_0
  5318. ----+-------------+-------------+-------------+-----------------
  5319. 2 | $D9,$F5,$05 | $D8,$F2,$F8 | $D7,$EF,$EB | 2:DB,EB 3:DC,EC 4:DD
  5320. 3 | $CC,$E8,$F8 | $CB,$E5,$EB | $CA,$E2,$DE | 2:CE,DE 3:CF,DF 4:D0
  5321. 4 | $BF,$DB,$EB | $BE,$D8,$DE | $BD,$D5,$D1 | 2:C1,D1 3:C2,D2 4:C3
  5322. etc.
  5323. - For any $6A68_0, $A4_0 can be (in order of best to worst Herb damage):
  5324. - $EC=236-13*$6A68_0 (236+241+246+252)
  5325. - $DD=221-13*$6A68_0 (230+237+244+251)
  5326. - $EB=235-13*$6A68_0 (229+232+235+239)
  5327. - $DC=220-13*$6A68_0 (186+191+233+238)
  5328. - $DB=219-13*$6A68_0 (178+181+185+188)
  5329. - Solved!
  5330.  
  5331. Zoma turn 1:
  5332. - Party max HP on entry: 102+[0,8], 84+[0,4], 79+[0,4], 78+[0,4]
  5333. - Initial HP and focus target: whatever (initial HP is constant anyway)
  5334. - Turn order: whatever (Zoma speed = 255 and party speed < 65 so can't win)
  5335. - B1-2 = ($A4_0+14*B0-21) & 15
  5336. - Zoma breath damage: +1..4*B1
  5337. - Zoma Snowstorm target: +5*B1 (whatever)
  5338. - Zoma Snowstorm damage: +6..9*B1
  5339. - Zoma status reset (Sphere of Light): +10,11*B1
  5340. - [P2] herb damage: +13*B1
  5341. - [Hr] herb damage & end of turn: +15*B1
  5342. - Most important to keep breath damage down (100-139); Snowstorm 55-66 is meh
  5343. (and cut by equipment)
  5344. - [Wz] must parry (no herb) (other party members use Parry bug)
  5345. - Assuming Snowstorm=45 (parry=22), max allowable breath damage is on
  5346. [P2]: 56*2+1=113 ([Wz] has Water Flying Cloth and is safe)
  5347. - Thus 0 <= $A4_end - 8*B1 <= 89
  5348. - Also need to consider wraparound:
  5349. - 0 <= $A4_end - 9*B1 <= 121
  5350. - Hero is prooooobably okay? (damage reduction)
  5351. - Wait, hero can't parry... CRAP
  5352. - 110+ damage on required seed
  5353. - Well, wait, we can just Revive... but 1 herb is not enough to
  5354. outdamage HP regen... sigh
  5355.  
  5356. ========== Let's try again! ==========
  5357.  
  5358. Zoma turn 1:
  5359. - As above, Revive hero; [Hr] can act as needed to consume RNG output
  5360. - Let N = number of multi-randoms consumed by [Hr]
  5361. - Optimal end state into turn 2: $A4_end = 236 - 13*(B1-2) = 262 - 13*B1
  5362. - Breath reqs:
  5363. - 0 <= $A4_end - (8+N)*B1 <= 89
  5364. - 0 <= $A4_end - (9+N)*B1 <= 121 (always true unless wraparound)
  5365. - Table for optimal $A4_end: (middle columns are N=0,1,2,5)
  5366. B1 | $A4_end | -11*B1 | -12*B1 | -13*B1 | -16*B1 | Solutions
  5367. ----+---------+--------+--------+--------+--------+-----------
  5368. 5 | 197=$C5 | 142=8E | 137=89 | 132=84 | 117=75 | ---
  5369. 6 | 184=$B8 | 118=76 | 112=70 | 106=6A | 88=58 | ---
  5370. 7 | 171=$AB | 94=5E | 87=57 | 80=50 | 59=3B | 59=$3B
  5371. 8 | 158=$9E | 70=46 | 62=3E | 54=36 | 30=1E | ---
  5372. 9 | 145=$91 | 46=2E | 37=25 | 28=1C | 1=01 | ---
  5373. - $A4_0 = $A4_end - (11+N)*B1 - (14*B0+1) -- for $A4_end=171, B1=7, N=5:
  5374. - $A4_0 = 171 - 16*7 - 14*B0 - 1
  5375. - $A4_0 = 58 - 14*B0
  5376. - Keep $A4_0 >= 22 or <= 21-B0*6 so party turn order isn't inverted
  5377. - Possible values:
  5378. - $A4_0 = 30, $6A68_0 = $0
  5379. - $A4_0 = 202, $6A68_0 = $6
  5380. - $A4_0 = 188, $6A68_0 = $7
  5381. - $A4_0 = 174, $6A68_0 = $8
  5382. - ...
  5383. - $A4_0 = 76, $6A68_0 = $F
  5384.  
  5385. Zoma turn 2:
  5386. - As above, $A4 = 236 - 13*$6A68 on entry
  5387. - $A4_end = $A4_0 + 13*B0+1 + 13*B1 = 236 + 13*2+1 + 13*3 = 302 = 46
  5388. - B1 = 3
  5389.  
  5390. Zoma turn 3:
  5391. - $6A68_0 = 1 (B0 = 3), $A4_0 = 46
  5392. - HP regen = 90 + (46+3-22)*20/256 = 92
  5393. - After turn order, $A4 = 85
  5394. - B1 = 2 + ((86-22) & 15) = 2
  5395. - Zoma actions: Attack [Hr] x 2
  5396. - Trivially solved! [Hr] will die, but who cares
  5397. - Herb users are [P1] and [Wz]
  5398.  
  5399. Gonus turn 3:
  5400. - $6A68 at end (for Zoma) can be anything except 4, 5, or 6
  5401. - We get $E from $A4_1 = $94
  5402. - Battle stops after Blazemore + Infermost with $A4_end = 228+2
  5403. - Level-up: $A4_lvup = $A4_end + 100 = 74
  5404. - Required $A4_0 for Zoma 1 is 90
  5405. - OH NO! Map load puts us 1 step too far ahead, diff is only 15 so we
  5406. can't heal to the target
  5407. - How about attacking?
  5408. - B1 = 16, evade = 0, so each attack is effectively 5 multi_randoms
  5409. - Remaining HP is 142, so need at least one Blazemore or Infermost
  5410. - Options:
  5411. - Blazemore+Infermost = 3 = -15 (original result)
  5412. - Infermost+Infermost = 2 = -31
  5413. - Infermost+Attack = 6 = -223
  5414. - Blazemore+Attack = 7 = -209
  5415. - Infermost+Attack*2 = 11 = -143
  5416. - Blazemore+Attack*2 = 12 = -129
  5417. - Infermost+Attack*3 = 16 = -65
  5418. - Blazemore+Attack*3 = 17 = -47
  5419. - Our only options are adding +16 or +17, ie +0 or +1 mod 16, and
  5420. no matter what we do we need to get up to +15 mod 16
  5421. - Guess the only option is to go back to the last map...
  5422. - ... but we can't do that either because it resets the battles!!
  5423. ARGH!!
  5424. - Well, hang on a sec... we don't necessarily need max damage from
  5425. round 3, just enough to win the battle (and Surround is irrelevant)
  5426. - Postponed until we figure out how much healing we need after Bomus
  5427.  
  5428. Gonus turn 2-3:
  5429. - HP regen = 44 + multi_random(12)
  5430. - Turn order = whatever
  5431. - $A4_1 = ($A4_0 + 13*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  5432. - [P1] Infermost damage: $A4_1 + 3*B1
  5433. - [Wz] Blazemore damage: $A4_1 + 5*B1
  5434. - [P2] Infermost damage: $A4_1 + 6*B1
  5435. - [Hr] Infermost damage: $A4_1 + 7*B1
  5436. - Gonus standard evade check: $A4 + 7*B1 + 32 + 1*B1
  5437. - Gonus Surround evade check: $A4 + 7*B1 + 32 + 2*B1 (= $A4_end)
  5438. - [Hr] damage: $A4_1 + 7*B1 - 22 <= 255 --> $A4_1 <= 277 - 7*B1
  5439. - Evade: $A4_1 + 9*B1 + 32 - 22 >= 256 --> $A4_1 >= 246 - 9*B1
  5440. - Table:
  5441. B1 | $A4_1 range | Valid $A4_1 | $A4_end | $A4_2
  5442. ----+---------------+---------------+---------------+--------------
  5443. 2 | 228/E4-263/07 | $E6, $F6, $06 | $18, $28, $38 | $33, $43, $53
  5444. 3 | 219/DB-256/00 | $E7, $F7 | $22, $32 | $4A, $5A
  5445. 4 | 210/D2-249/F9 | $D8, $E8, $F8 | $1C, $2C, $3C | $51, $61, $71
  5446. 5 | 201/C9-242/F2 | $C9, $D9, $E9 | $16, $26, $36 | $58, $68, $78
  5447. 6 | 192/C0-235/EB | $CA, $DA, $EA | $20, $30, $40 | $6F, $7F, $8F
  5448. 7 | 183/B7-228/E4 | $BB, $CB, $DB | $1A, $2A, $3A | $76, $86, $96
  5449. 8 | 174/AE-221/DD | $BC, $CC, $DC | $24, $34, $44 | $8D, $9D, $AD
  5450. 9 | 165/A5-214/D6 | $AD, $BD, $CD | $1E, $2E, $3E | $94, $A4, $B4
  5451. 10 | 156/9C-207/CF | $9E ... $CE | $18 ... $48 | $9B ... $CB
  5452. 11 | 147/93-200/C8 | $9F, $AF, $BF | $22, $32, $42 | $B2, $C2, $D2
  5453. 12 | 138/8A-193/C1 | $90 ... $C0 | $1C ... $4C | $B9 ... $E9
  5454. 13 | 129/81-186/BA | $81 ... $B1 | $16 ... $46 | $C0 ... $F0
  5455. 14 | 120/78-179/B3 | $82 ... $B2 | $20 ... $50 | $D7 ... $07
  5456. 15 | 111/6F-172/AC | $73 ... $A3 | $1A ... $4A | $DE ... $0E
  5457. 16 | 102/66-165/A5 | $74 ... $A4 | $24 ... $54 | $F5 ... $25
  5458. 17 | 93/5D-158/9E | $65 ... $95 | $1E ... $4E | $FC ... $2C
  5459. - Any cyclable inputs?
  5460. - No, because of odd/even flip
  5461. - Any sequences?
  5462. - $A4_1 / $A4_2 matches: $94, $A4, $AD, $B2, $BB, $C0, $C9, $CB,
  5463. $D9, $E7, $E9, $F7
  5464. - Including turn 1: $A4, $AD, $BB, $CB, $D9, $E9, $F7
  5465. - Sequences: $AD -> $94, $C0 -> $E9
  5466.  
  5467. Gonus turn 1:
  5468. - Party max HP on entry: 102+[0,4], 84+[0,4], 79+[0,4], 78+[0,4]
  5469. - Turn order = whatever (Gonus speed is 0 so always goes last)
  5470. - Surround resistance is 70% so RNG output must be >=179 for it to hit
  5471. - $A4_1 = ($A4_0 + 14*B0 + 1); B1 = 2 + (($A4_1 - 22) & 15)
  5472. - Gonus action = multi_random() // always Attack
  5473. - Gonus target = ubound(multi_random()/63, 3)
  5474. - [P1] Surround check: $A4_1 + 3*B1
  5475. - [Wz] Blazemore damage: $A4_1 + 5*B1
  5476. - [P2] Infermost damage: $A4_1 + 6*B1
  5477. - [Hr] Infermost damage: $A4_1 + 7*B1
  5478. - Gonus standard evade check: $A4 + 7*B1 + 32 + 1*B1
  5479. - Gonus Surround evade check: $A4 + 7*B1 + 32 + 2*B1 (= $A4_end)
  5480. - Surround: $A4_1 + 3*B1 - 22 >= 179 --> $A4_1 >= 201 - 3*B1
  5481. - [Hr] damage: $A4_1 + 7*B1 - 22 <= 255 --> $A4_1 <= 277 - 7*B1
  5482. - Evade: $A4_1 + 9*B1 + 32 - 22 >= 256 --> $A4_1 >= 246 - 9*B1
  5483. - Table:
  5484. B1 | $A4_1 range | Valid $A4_1 | $A4_end | $A4_2
  5485. ----+---------------+---------------+---------------+--------------
  5486. 2 | 228/E4-263/07 | $E6, $F6, $06 | $18, $28, $38 | $33, $43, $53
  5487. 3 | 219/DB-256/00 | $E7, $F7 | $22, $32 | $4A, $5A
  5488. 4 | 210/D2-249/F9 | $D8, $E8, $F8 | $1C, $2C, $3C | $51, $61, $71
  5489. 5 | 201/C9-242/F2 | $C9, $D9, $E9 | $16, $26, $36 | $58, $68, $78
  5490. 6 | 192/C0-235/EB | $CA, $DA, $EA | $20, $30, $40 | $6F, $7F, $8F
  5491. 7 | 183/B7-228/E4 | $BB, $CB, $DB | $1A, $2A, $3A | $76, $86, $96
  5492. 8 | 177/B1-221/DD | $BC, $CC, $DC | $24, $34, $44 | $8D, $9D, $AD
  5493. 9 | 174/AE-214/D6 | $BD, $CD | $2E, $3E | $A4, $B4
  5494. 10 | 171/AB-207/CF | $AE, $BE, $CE | $28, $38, $48 | $AB, $BB, $CB
  5495. 11 | 168/A8-200/C8 | $AF, $BF | $32, $42 | $C2, $D2
  5496. 12 | 165/A5-193/C1 | $B0, $C0 | $3C, $4C | $D9, $E9
  5497. 13 | 162/A2-186/BA | $B1 | $46 | $F0
  5498. 14 | 159/9F-179/B3 | $A2, $B2 | $40, $50 | $F7, $07
  5499. 15 | 156/9C-172/AC | $A3 | $4A | $0E
  5500. 16 | 153/99-165/A5 | $A4 | $54 | $25
  5501. 17 | 150/96-158/9E | (none) | (none) | (none)
  5502. - For turn 2, $A4_2 must be one of: $A4, $AD, $BB, $CB, $D9, $E9, $F7
  5503. - So $A4_1 must be one of (resp) $BD, $DC, $BE, $CE, $B0, $C0, $A2
  5504. - Solved! $DC -> $AD -> $94 ^W^W^W^W^W^W Postponed, see above
  5505.  
  5506. Bomus turn 2:
  5507.  
  5508. Bomus turn 1:
  5509. - Party max HP on entry: 102+[0,4], 84, 79, 78
  5510.  
  5511. Hydra turn 2:
  5512.  
  5513. Hydra turn 1:
  5514. - Party max HP on entry: 102, 84, 79, 78
  5515. - $6A68_0 = $C (B0 = 14), $A4_0 >= $EC (on entering Charlock B5)
Add Comment
Please, Sign In to add comment