{"id":52602,"date":"2021-07-30T06:00:43","date_gmt":"2021-07-30T10:00:43","guid":{"rendered":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=52602"},"modified":"2021-07-30T06:50:16","modified_gmt":"2021-07-30T10:50:16","slug":"final-fantasy-cheat","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=52602","title":{"rendered":"Final Fantasy Cheat"},"content":{"rendered":"<p>Like I said <a href=\"?p=52591\">on Monday<\/a>, I spent the weekend dicking around with <em>Final Fantasy X<\/em> and Cheat Engine. I learned a few fun things, a few annoying things, and a few curious things. So let&#8217;s talk about it&#8230;<\/p>\n<p><!--more--><\/p>\n<p>For those who don&#8217;t know, Cheat Engine allows you to rummage around in the memory of a running program and change values at will. If you can find the memory location where the game stores (say) your hitpoints, then you can edit that value to be whatever you like, at any time.<\/p>\n<p>HOWEVER!<\/p>\n<p>You&#8217;re just changing single numbers in memory, which may or may not be helpful. It all depends on how the game was coded. If I just change my character level but I don&#8217;t change my hitpoints, strength, weapon damage, or other related values, then maybe I&#8217;ll be exactly as strong as I was before. Or perhaps I change my hitpoints from 300 to 1,000,000. Then someone hits me with a healing spell, which adds 50 hitpoints to my total, and in doing so the game ends up executing some code that pulls my hitpoints back down to where they belong. Maybe a boss fight is balanced so that the bad guy always has $MY_HITPOINTS \u00d7 2.25, so by giving myself a million hitpoints I&#8217;ve actually made myself weaker in a relative sense. So then maybe I change the HP of the boss to zero, and then the game does a calculation like $SOME_VALUE\u00a0 \/ $BOSS_HITPOINTS, which causes a divide by zero error and crashes the game.<\/p>\n<p>Some changes will have no effect. Some changes will have an effect but it may be undone at any moment. Other changes my have a huge effect but may also have unpredictable negative side-effects. And some changes might crash the game, corrupt your save, or cause inexplicable glitches. It all depends. Some games take these instantaneous modifications in stride and some malfunction.<\/p>\n<h3>Final Fantasy X<\/h3>\n<p><div class='imagefull'><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/ffx_cheat5.jpg' width=100% alt='The hard-shell foe on the left is for heavy-hitter Auron. The blue thing in the middle in an elemental for Lulu our Black Mage. The floating bat-thing on the right is for Wakka, who throws beach balls at flying creatures. Using the wrong character means you do little \/ no damage, and a bit of dialog to help the player to understand the intended match-ups.' title='The hard-shell foe on the left is for heavy-hitter Auron. The blue thing in the middle in an elemental for Lulu our Black Mage. The floating bat-thing on the right is for Wakka, who throws beach balls at flying creatures. Using the wrong character means you do little \/ no damage, and a bit of dialog to help the player to understand the intended match-ups.'\/><\/div><div class='mouseover-alt'>The hard-shell foe on the left is for heavy-hitter Auron. The blue thing in the middle in an elemental for Lulu our Black Mage. The floating bat-thing on the right is for Wakka, who throws beach balls at flying creatures. Using the wrong character means you do little \/ no damage, and a bit of dialog to help the player to understand the intended match-ups.<\/div><br \/>\nAnyway. I played Final Fantasy X while using Cheat Engine. I gave myself rare gear, crafted impossible items, changed the contents of the sphere grid, and otherwise did a bunch of crazy stuff just to see what would happen. I will say that FFX is surprisingly resilient and took my tomfoolery in stride.<\/p>\n<p>There are several moments in the game where you&#8217;re supposed to fail at something in battle so that another character can explain how the mechanics work. This is particularly true in the early game. For example, some creatures have hard armored shells. You&#8217;re supposed to take a swing at them with main character Tidus, do some pathetic damage, and then one of your companions will explain that you&#8217;re supposed to use the character Auron to deal with these creatures. If you cheat Tidus up to end-game power levels, then you&#8217;ll get this:<\/p>\n<div class=\"script\">\n<p>*<em>Tidus smacks the monster for 99,999 damage. The monster only has 325 HP, so this is massive overkill. It falls over dead.<\/em>)<\/p>\n<h4>Tidus:<\/h4>\n<p>(Makes a disappointed \/ confused sound, as if his attack did nothing.)<\/p>\n<h4>Lulu:<\/h4>\n<p>Let Sir Auron handle those creatures.<\/p>\n<h4>Tidus:<\/h4>\n<p>Oh okay. Got it!<\/p>\n<p>(<em>There&#8217;s an awkward pause where our heroes stare at the empty battlefield for a few seconds and then the victory music plays and the battle ends.<\/em>)\n<\/div>\n<p>I&#8217;ve run into several variations of this problem at different times. When you first arrive at <a href=\"?p=33990\">Sanubia Sands<\/a>, there&#8217;s a scripted battle where you&#8217;re supposed to be outmatched by a large bird and then Auron and Lulu show up to bail you out. This bit also gets a little weird if you can solo the bird before they show up.<\/p>\n<p>Despite all this, the game never got stuck. It never crashed. I never got softlocked in a battle that wouldn&#8217;t end. The worst that would happen was that the dialog would be inappropriate, or there would be an awkward pause.<\/p>\n<p>When you meet the character Kimarhi, he&#8217;s supposed to attack Tidus for a short one-on-one bttle. Then once he&#8217;s given Tidus a bit of a thrashing, the rest of the group jumps in and tells him to back off. After this, he becomes a member of the party.<\/p>\n<p>But if you&#8217;ve leveled Tidus up to the point where he can one-shot Kimarhi, then the game doesn&#8217;t know what to do. There&#8217;s an awkward silence like someone forgot their lines. Then the battle just ends, but Kimarhi doesn&#8217;t join your party. At first I thought this meant that I was going to miss out on Kimarhi this game. But then after a short boat ride we arrived at the next island and he simply appeared in the party roster without comment.<\/p>\n<h3>Frugal Storage<\/h3>\n<p><div class='imagefull'><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/ffx_cheat2.jpg' width=100% alt='Here I&apos;ve cheated to give myself 100 of an item, even though the stack limit is 99. This works, but if I pick up any more, the game will clamp the value back down to 99.' title='Here I&apos;ve cheated to give myself 100 of an item, even though the stack limit is 99. This works, but if I pick up any more, the game will clamp the value back down to 99.'\/><\/div><div class='mouseover-alt'>Here I&apos;ve cheated to give myself 100 of an item, even though the stack limit is 99. This works, but if I pick up any more, the game will clamp the value back down to 99.<\/div><\/p>\n<p>You can tell this is a console port by the odd way everything is packed into memory. In your inventory, item stacks are limited to 99, so you can never have more than 99 of any item. This is because the item stacks are stored as a single byte value. I suppose this means that the game could technically allow stack sizes of 255, but I guess someone decided a value of 99 would feel more natural. (Also, limiting stacks to two digits lets you make the numbers larger, which makes it easier to read on your blurry low-res late-90s CRT screen.)<\/p>\n<p>If I was programming an inventory system, I&#8217;d probably store items and stack sizes together. Like, two bytes would store the ID of the item, and then a third byte would store how many of them I owned.<span class='snote' title='1'>Actually, I&#8217;d be lazy and decadently spend four bytes on each variable. It&#8217;s 2021. Worrying about the memory footprint of the player&#8217;s inventory these days is like trying to lose weight by trimming your fingernails.<\/span> But in FFX these things are stored in two separate blocks. I&#8217;m reasonably sure your inventory is designed to take up a fixed amount of space in memory, regardless of how much or how little you might be carrying.<\/p>\n<p>So you have a block of item IDs, all packed together. Each ID is two bytes. Then after the list is a gap, which pads out your inventory to a fixed size.<\/p>\n<p>I don&#8217;t know how many different items are in the game, but for the sake of argument let&#8217;s say there are 200.<span class='snote' title='2'>To be clear, we&#8217;re talking about your inventory of consumables here. Potions, remedies, megalixirs, grenades, power spheres, etc. Your inventory of weapons and armor is stored elsewhere, and uses a completely different system.<\/span> And let&#8217;s also say that the player currently has 15 different items. So we would end up with 15 item IDs, then 185 items worth of blank space.<\/p>\n<p>After the item IDs is a list of the stack sizes for each of those items.<\/p>\n<p>This probably seems like a weird way to store stuff. Certainly a human writing on paper would store item names and item counts together. If you were taking inventory you&#8217;d write &#8220;10 Apples, 2 Pears, 1 Bananas, 9 Kiwi&#8221;. You wouldn&#8217;t write &#8220;Apple Pear Banana Kiwi&#8221; on one piece of paper and then &#8220;10, 2, 1, 9&#8221; on another. But as strange as this seems, this sort of thing is pretty common in programming. <\/p>\n<p>So why pad out the list? This is handy for severely memory-constrained environments. Having fixed sizes for everything is really helpful. Yes, maybe it seems a little wasteful to reserve space for 200 items if we only need 15. But the important feature here is that no matter what happens, we&#8217;ll never wind up with <strong>more<\/strong> than 200. We don&#8217;t need to worry about some strange bug creating space for 10,000 items and trying to save it to the user&#8217;s memory card.<\/p>\n<p>Hey, have you ever noticed how big Skyrim save files are? I don&#8217;t know why I brought that up. It just popped into my mind just now.<\/p>\n<p>There are several blocks to your save data. One is your inventory, as discussed above. Another block keeps the counts for how many monsters you&#8217;ve captured of each type for the monster arena. Another block is your blitzball team, and another is your character stats. And so on. Yes, you <strong>could<\/strong> design it so that a block isn&#8217;t created until it&#8217;s needed. It could leave out the blitzball stuff until you play your first game and it could leave out the monster capture stuff until you capture your first monster.  But then the save file would be variable size. By making sure the save file is always maximum size, you also ensure that there will never be some strange circumstances that takes it above some hard limit. &#8220;Oh, we didn&#8217;t realize if you do these sidequests in this order and hoard all these items and then collect these rare items that the save file will get bigger and take an extra block on the memory card.&#8221;<\/p>\n<h3>Encounter Outcomes<\/h3>\n<p><div class='imagefull'><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/ffx_cheat4.jpg' width=100% alt='These three foes appear in front of me, but I have to get past all three of them regardless of which way I go. So they effectively surround me.' title='These three foes appear in front of me, but I have to get past all three of them regardless of which way I go. So they effectively surround me.'\/><\/div><div class='mouseover-alt'>These three foes appear in front of me, but I have to get past all three of them regardless of which way I go. So they effectively surround me.<\/div><\/p>\n<p>During <a href=\"?p=32959\">my diatribe on Blitzball<\/a>, some people theorized that the outcomes of certain interactions were pre-rolled, and that the AI was able to peek at these outcomes. At the time this sounded kind of implausible, but after cheating my way through a Blitzball game I have to say it makes a lot of sense.<\/p>\n<p>See, Blitzball is a mostly turn-based game. Let&#8217;s say you&#8217;ve got the ball, and you get pulled into an encounter with 3 defenders. While the defenders are all spread out in front of you visually, for gameplay purposes they form 3 concentric rings around you. You must somehow get past all three people, regardless of what you plan to do or which way you go. Even if you want to pass to someone behind you, the game will act like these three guys are stacked up in a conga line between you and your goal.<\/p>\n<p>Let&#8217;s say the three defenders are named Abe, Betty, and Carl. You will need to deal with them in this specific order. You can push past Abe, and then throw the ball. Betty will have a chance to grab it. If she doesn&#8217;t, then Carl will have a chance. Or you can push past Abe, then push past Betty, and then throw it and Carl will try to grab it.<\/p>\n<p>So you have a choice: <em>How much do you want to rely on your ability to overpower people, and how much do you want to rely on your throwing arm?<\/em> If you&#8217;re controlling a real bruiser of a character then maybe you&#8217;ll push past everyone and just swim away with the ball. If you&#8217;re controlling a good passer then maybe you&#8217;ll skip the fisticuffs and try to throw the ball past them.<\/p>\n<p>If you choose to throw, then it&#8217;s your Passing ability vs. the Blocking ability of everyone else. Like, you have a pass of 20, then the ball leaves your hand with 20 &#8220;hitpoints&#8221;. Abe has a block of 10, so he knocks 10HP off the ball. Betty has a block of 8, so she knocks another 8 off the ball. Then Carl has a block of 5. The ball runs out of HP and therefore Carl grabs it.<\/p>\n<p>These values are all randomized a bit for each encounter. So someone with a block of 10 might roll a value between 8 and 12.<\/p>\n<p>So if you&#8217;ve got a pass value of 20 and the three defenders have a combined block value of 26, then it&#8217;s <em>technically<\/em> possible to throw past them if you roll well and they all roll poorly. The odds are strongly against you, but it can happen.<\/p>\n<p>The thing is, the AI will sometimes make long-odds moves like this and have it work out. It will roll high, you&#8217;ll roll poorly, and the ball gets through.<span class='snote' title='3'>To be clear, you can&#8217;t really see these dice rolls. You just have to intuit what&#8217;s going on by watching the action play out.<\/span> That alone wouldn&#8217;t be particularly suspicious. Ask any X-Com player and they&#8217;ll tell you: Lots of unlikely things can happen over a large number of encounters. It&#8217;s not suspicious that the dice favor the AI once in a while. What is suspicious is that the AI seems to know when a long bet will pay off. I don&#8217;t observe the AI taking crazy gambles most of the time. It usually plays very conservatively. But when it does go for an unlikely play, it pays off.<\/p>\n<p>The accusation isn&#8217;t that it cheats when rolling the dice, it&#8217;s that the dice get pre-rolled and the AI is able to choose an action based on what the dice rolls WILL be.<\/p>\n<h3>What I Observed<\/h3>\n<p>Note: I didn&#8217;t record this match and I don&#8217;t remember the exact details, so I&#8217;m going to make up all the numbers and pick names at random.<\/p>\n<p>So my guy Datto gets near the enemy goal, and defender Bickson stops him. I&#8217;m close enough to shoot. However, my Shoot skill is 8. Bickson has a Block skill of 5. The goalie has a block skill of 5. If I shoot from here, then Bickson will get a hand on the ball as it goes by, reducing it to 3. Then the goalie will be able to stop it.<\/p>\n<p><div class='imagefull'><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/ffx_cheat1.jpg' width=100% alt='This is what it looks like when you&apos;re digging around in memory. This is actually the inventory section. Those 63s represent the item stacks of 99. (63 is 99 in hex.)' title='This is what it looks like when you&apos;re digging around in memory. This is actually the inventory section. Those 63s represent the item stacks of 99. (63 is 99 in hex.)'\/><\/div><div class='mouseover-alt'>This is what it looks like when you&apos;re digging around in memory. This is actually the inventory section. Those 63s represent the item stacks of 99. (63 is 99 in hex.)<\/div><\/p>\n<p>So I jump over to Cheat Engine and rummage around in memory for Datto&#8217;s Shoot skill. This search requires a bit of detective work. Datto has several numbers that describe his properties. It&#8217;s probably safe to assume that all of his data is stored together. So I&#8217;m looking for this particular collection of numbers, all next to each other.\u00a0 I have to make some assumptions about how the programmer might have arranged these variables, and how many bytes of space each variable might get. And it helps if you can read hexadecimal numbers, which I <strong><em>sort of<\/em><\/strong> can.<\/p>\n<p>Anyway, after many searches, I find the blitzball players in memory, and then find Datto among them.<span class='snote' title='4'>It would be SO nice if the name was stored along with the data, but alas no. You have to recognize people by their numbers.<\/span> So then I reach in and change Datto&#8217;s 8 to a 90.<\/p>\n<p>I jump back to FFX. Success! Datto&#8217;s shot ability is now a godlike 90.<\/p>\n<p>From here, you&#8217;d expect that taking the shot would result in Bickson touching the ball and knocking 5HP off. Then the goalie will knock another 5HP off. Then the ball will land in the goal with 80HP to spare.<\/p>\n<p>Instead, I take the shot. It leaves my hand with 90HP, and then Bickson touches it and the ball&#8217;s HP drops <strong>all the way to 3<\/strong>. The goalie catches it easily. That&#8217;s exactly what I would have expected if I&#8217;d thrown the ball with my original Shoot skill of 8.<\/p>\n<p>However, sometime later Datto gets the ball again, and I once again wind up in front of the opposing goal with some defenders in my face. Datto&#8217;s Shoot score is still 90, so I don&#8217;t need to do any editing this time. I can just take the shot.<\/p>\n<p>And this time it works. All the defenders touch the ball as it glides by, but their tiny block skill is no match for Datto&#8217;s superhuman Shoot of 90.<\/p>\n<p>What this tells me is that when an encounter is created &#8211; when the defenders pull your player into their pocket dimension and the menu appears &#8211; the game looks at the options in front of you and rolls the dice for each choice ahead of time. Once the encounter has begun, you&#8217;re choosing which of the three predetermined outcomes you want, because the dice have already been rolled for each of them.<\/p>\n<p>Imagine you&#8217;re playing D&amp;D. There&#8217;s a monster in front of you. You can swing your sword, or you can cast a spell. The GM rolls the dice for each option and then he asks you, &#8220;Do you want this sword-stroke where you&#8217;ll roll a natural 20, or do you want this spell attempt where you roll a 3?&#8221;<\/p>\n<p>That&#8217;s what the game seems to be doing. However, it&#8217;s only telling the AI what the outcomes will be. The human player has to choose blind.<\/p>\n<p>I want to be clear that my little experiment doesn&#8217;t PROVE that the game pre-rolls encounter outcomes. You could devise other explanations for the odd behavior I observed. But on the whole I find this explanation the most plausible because&#8230;<\/p>\n<h3>AI is Hard<\/h3>\n<p><div class='imagefull'><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/ffx_cheat3.jpg' width=100% alt='I&apos;m in an encounter with 3 defenders. I&apos;m near the goal, which means it might be a good time to shoot. But not with so many defenders in the way. A human can figure out the least-risky plan, but would take a pretty robust AI to do the same.' title='I&apos;m in an encounter with 3 defenders. I&apos;m near the goal, which means it might be a good time to shoot. But not with so many defenders in the way. A human can figure out the least-risky plan, but would take a pretty robust AI to do the same.'\/><\/div><div class='mouseover-alt'>I&apos;m in an encounter with 3 defenders. I&apos;m near the goal, which means it might be a good time to shoot. But not with so many defenders in the way. A human can figure out the least-risky plan, but would take a pretty robust AI to do the same.<\/div><\/p>\n<p>As a programmer, this makes some sense to me. If I&#8217;m trying to write an AI, it&#8217;s not that hard to write something that can judge between 3 known outcomes. But it&#8217;s a <strong>huge<\/strong> pain in the ass to write an AI that can properly balance risk vs. reward when dealing with possibility space that looks like this:<\/p>\n<p>PUSH PAST DEFENDERS:<\/p>\n<ol>\n<li><strong>Likely<\/strong> outcome of a <strong>small setback<\/strong>.<\/li>\n<li><strong>Slightly unlikely<\/strong> outcome of an extremely <strong>serious setback<\/strong>.<\/li>\n<li><strong>Very unlikely<\/strong> outcome of an <strong>incredible advantage<\/strong>.<\/li>\n<\/ol>\n<p>PASS THE BALL:<\/p>\n<ol>\n<li>90% chance of <strong>small setback<\/strong>.<\/li>\n<li>10% chance of a <strong>large advantage<\/strong>.<\/li>\n<\/ol>\n<p>Stuff like this is conceptually simple for humans to wrap their heads around, but it&#8217;s really hard to write code that can handle this sort of decision-making. Heck, just <strong>quantifying<\/strong> ideas like &#8220;Very unlikely&#8221; and &#8220;small setback&#8221; is really hard, much less coming up with code to choose between them. And that&#8217;s before you take into account the fact that the AI needs to make decisions on a sliding scale. It should be fairly conservative if it&#8217;s ahead or if the game just started, but it ought to be willing to take big chances if it finds itself losing in the late-game.<\/p>\n<p>Having the outcomes of decisions pre-rolled would make it easier to code the AI. It doesn&#8217;t help you make the AI smarter, but it does reduce the risk of the AI doing something that is <strong>obviously stupid<\/strong>.<\/p>\n<p>Now, if this was a AAA sports game then this AI shortcut would be <strong>completely outrageous<\/strong>. But in an optional minigame for a JRPG? Yeah, I can totally see someone cutting this corner. Particularly since I doubt anyone on the development team has expertise in this field. For the most part, the &#8220;AI&#8221; in a JRPG is incredibly simple stuff like:<\/p>\n<ol>\n<li>Cycle through attacks A, B, C<\/li>\n<li>When the boss health first drops below 50%, unleash attack D<\/li>\n<li>When health is below 25%, switch to rotating through attacks E, F, G.<\/li>\n<\/ol>\n<p>Or whatever. The system is usually so simple that players can reverse-engineer the logic just by playing the game and observing the AI behavior. That&#8217;s fine. In the context of a turn-based game the predictability of the clockwork AI is a feature, not a flaw.\u00a0 A boss fight is supposed to be more of a puzzle than a chess match.<\/p>\n<p>So then someone decides to put a sports game into the latest Final Fantasy, and you figure it&#8217;ll be easy because it&#8217;s built around on turn-based encounters. Conceptually, that sounds a lot like the normal encounter AI the team is used to making.\u00a0 And then months later someone sits down to write this code and they realize, &#8220;Oh hang on. This decision-making is <em>super fucking difficult<\/em> and I&#8217;m not sure where to start. Shit! We budgeted three weeks for this, and I don&#8217;t think that&#8217;s enough time for me to do the reading required to <strong>write the spec<\/strong> for this. And then I&#8217;d have to devise unit tests to judge if the AI is doing the right thing, and I don&#8217;t know how you detect it doing the wrong thing short of writing <strong>another entire AI<\/strong>.&#8221;<\/p>\n<p>I have no proof this is what happened. I&#8217;m just saying as a programmer with very limited AI experience, I find this scenario to be extremely plausible. AI is hard, and it&#8217;s the sort of difficulty you don&#8217;t anticipate at first because the problem in question is often conceptually trivial for a human being to solve with the meat computer between their ears. It only becomes difficult when you have to express it in code. I can say &#8220;Make a cautious decision&#8221; to another human being. But then I realize I need to explain to the computer what I mean by &#8220;cautious&#8221; and I realize that word contains a <strong>tremendous<\/strong> amount of complexity.<\/p>\n<h3>Overdrives<\/h3>\n<p>Each character has\u00a0 an &#8220;overdrive&#8221; gauge. It fills gradually as you fight and defeat monsters. When it&#8217;s full, you&#8217;re able to unleash a powerful super-attack. Each character has their own signature overdrive.<\/p>\n<p>The thing is, you never see the number that drives this gauge. I can look at the bottom of the screen and see that I&#8217;ve got exactly 2,384 hitpoints, but when I look at the overdrive meter all I can tell is that it&#8217;s &#8220;about halfway full, maybe a little less than that&#8221;. So I was curious how the programmer handled this. The problem is that it&#8217;s really hard to find something if you don&#8217;t have exact values to look for.<\/p>\n<ul>\n<li>You could store this value in a single byte as a simple percentage value. So the number would be 0 when empty and 100 when full.<\/li>\n<li>You could store this value in a single byte, but use all of the possible values. This would mean that empty is 0 and full is 255.<\/li>\n<li>You could store this value in 2 bytes. 0 is empty, full is 65,535.<\/li>\n<li>If you&#8217;re crazy, you could store this in a signed 2 byte value, so empty is -32768 and full is +32767. I don&#8217;t know why you&#8217;d do this, but you could. There might even be a good reason to do this, depending on the PlayStation 2 hardware and development tools.<\/li>\n<li>You could use a 4-byte <a href=\"https:\/\/en.wikipedia.org\/wiki\/Floating-point_arithmetic\">floating point<\/a> value, in which case empty is 0 and full is anyone&#8217;s guess. I feel like this is a bit unlikely given how frugal the rest of the code is with regards to memory usage.<\/li>\n<\/ul>\n<p>I hunted for a long time for this overdrive gauge. I searched using all sorts of assumptions regarding byte size and scale, but I never found anything that worked. I did find a pair of identical values that went up as the gauge filled, but the game would overwrite any changes I made to them, correcting them back to their proper value. So the data was coming from somewhere else, and the data I found was just a placeholder or temporary value.<span class='snote' title='5'>For example, if you&#8217;re doing to draw the pixels for the gauge itself, you might derive some number of pixels to use for the bar width. This number would have no effect on gameplay, and it would be get re-calculated whenever the bar is drawn. So changing it would be pointless.<\/span><\/p>\n<p>But while I was digging around for that I stumbled on an interesting bit of trivia.<\/p>\n<p>The character Tidus has a number of overdrives. He starts with &#8220;Spiral Cut&#8221;, where he does a front-flip and slams his sword down on a single target. At some later point (it&#8217;s not clear to the player what causes this) he will unlock &#8220;Slice and Dice&#8221;, where he runs around the battlefield and hits foes at random. Then eventually you&#8217;ll somehow unlock &#8220;Energy Rain&#8221;, where Tidus will leap up into the air and shoot(?) lasers(?) out of his sword onto foes below. And finally, if you stick around for the long-haul, ultra-completionist 120 hour marathon playthough, you might reach the point where Tidus unlocks &#8220;Blitz Ace&#8221; where he slashes a single foe nine times with his sword, then plants his sword in the ground and uses it to launch himself into the air, then someone tosses him a blitzball and he Bicycle Kicks it into the monster&#8217;s head\u00a0and no I&#8217;m not kidding all of that <a href=\"https:\/\/www.youtube.com\/watch?v=7EeCX0VHDyQ\">really happens<\/a>.<\/p>\n<p>So guides like <a href=\"https:\/\/www.ign.com\/wikis\/final-fantasy-x\/Overdrives\">this one<\/a>\u00a0will tell you that to unlock these overdrives, you need to use them. Using Spiral Cut 10 times will unlock Slice &amp; Dice, using Slice &amp; Dice 30 times will unlock Energy Rain, and using Energy Rain 80 times will unlock Blitz Ace if it doesn&#8217;t drain your will to live.<\/p>\n<p>This doesn&#8217;t seem to be the case. Indeed, it can&#8217;t be the case. The game does not keep track of which overdrives you use. Those numbers aren&#8217;t stored anywhere. Instead, there is a single counter that goes up whenever you perform an overdrive. This is good news! If you believe the guides, then you need to perform 10+30+80 overdrives to unlock Blitz Ace. But no. You just need to perform 80 total overdrives. This means you don&#8217;t need to do as many, and it also means you get to use whatever overdrive suits you. You can use the awesome six-hit Slice &amp; Dice, and you&#8217;re not obligated to use the underwhelming one-hit Energy Rain. (Number of hits becomes important in the late-late-late game when you run up against the damage cap. Yes, the game has a damage cap.)<\/p>\n<p>Maybe this detail was changed for the Steam release of the game, and that&#8217;s why the online guides are wrong. I don&#8217;t know.<\/p>\n<h3>Wrapping Up<\/h3>\n<p><div class='imagefull'><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/ffx_luca2.jpg' width=100% alt='On the right is Maester Mika. On the left is our secondary villain, Seymour&apos;s haircut.' title='On the right is Maester Mika. On the left is our secondary villain, Seymour&apos;s haircut.'\/><\/div><div class='mouseover-alt'>On the right is Maester Mika. On the left is our secondary villain, Seymour&apos;s haircut.<\/div><\/p>\n<p>So that&#8217;s what I learned from cheating at Final Fantasy X. I hope you found some of that interesting. Sadly, I couldn&#8217;t find any cheats to do anything about Seymour&#8217;s hair. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Like I said on Monday, I spent the weekend dicking around with Final Fantasy X and Cheat Engine. I learned a few fun things, a few annoying things, and a few curious things. So let&#8217;s talk about it&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[],"class_list":["post-52602","post","type-post","status-publish","format-standard","hentry","category-weekly-column"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/52602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=52602"}],"version-history":[{"count":27,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/52602\/revisions"}],"predecessor-version":[{"id":52665,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/52602\/revisions\/52665"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=52602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=52602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=52602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}