Tuesday, March 22, 2011

Final Fantasy: Damage Formula

All information summarized here was provided by this very in-depth FAQ. It turns out the original Final Fantasy on the NES had a plethora of bugs which were fixed on the PS version which I'm playing. This makes things easier in some cases and harder in others. (For one thing it's impossible to become practically immune to being hit with Ruse now.) The run away formula is one of those things. The game still rolls a number between 0 and 15+x and compares with your luck to see if you'll run away, but in the PS version x is your character level instead of some random number with no relevance at all. So on the PS the thief both starts and ends the game as the absolute best runner. (Woo?) But on the down side, the thief will always have a chance to fail at running now while on the NES he was guaranteed to get away as of like level 3.

The formulae I most care about are those dealing with hits and crits. Now, in the original NES version the crit chance was buggy. Each weapon was supposed to have a crit chance value innate to the weapon but instead the crit chance was based on the position of the weapon in the list. So the last weapon in the list had the highest crit chance which substantially boosted the power of Excalibur compared to Katana. Regardless though, that's not the important change for now. They actually changed what crits do. Typically a weapon swing does somewhere between D and 2D damage, with the enemy absorb subtracted. On the NES when you crit you add the random roll in again, without subtracting absorb, so you do at least double damage. If you rolled X then you do 2X-A damage. On the Playstation a crit merely ignores armor. So you do X damage. Now, the game actually forces X-A to be at least 1 regardless, so 2X-A is strictly greater than X. It also means crit don't scale with weapon damage. They actually scale with opponent absorb. Which is just plain weird, I think.

At level 22 I do between 26-52 damage a swing. Astos has 40 armor. So on the NES my crit would average 42 damage and on the PS my crit averages 39 damage. On the NES my weapon would have a 6% crit chance, on the PS it has a 5% crit chance. My non-crits would do 3 damage on average regardless of platform.

As far as odds of hitting go the game actually rolls between 0 and 200. A 0 is an auto-crit, a 200 is an auto-miss. Otherwise you check against 168+hit stat-evade stat. Note that on the NES they cap 168+hit stat at 255 regardless of evade which is why you can become unhittable with max evasion. Astos has an evade of 78 and I have a hit of 52. So 142 times out of 201 I'll hit. On the NES 12 of those would be crits. On the PS 10 would be crits. The difference isn't actually that extreme between the two versions (clearly it's harder on the PS) and as it stands I average a little over 4 damage a swing and need to attack 40 times on average to win. I'll look at incoming damage formulas later but as a rough feeling right now I can survive to attack probably 12 times if I'm lucky. For that to happen I need to have him miss me with Rub, both slows, and the blind. (Though I don't think blind affects crits so maybe that doesn't really matter.) Even still that's only 24 swings and not even close to the 40 I want.

What if I level up some? If I get all the way up to level 26 and keep using my current weapon I continue to only get 2 attacks per round. My average damage per swing will go up to almost 6 per swing and I will need only 30 swings to win. The extra 60-80 health will likely buy me another turn or two as well on top of what the extra 2% dodge and innate magic resistance gains will give me. I may be at the point where I can get lucky and win here. If I switch weapons I get an extra swing per round but actually lose 3 base damage and half of my crit chance. I end up not even averaging 3 damage per round and will need 57 swings to win. If I get all the way to level 28 I'll be averaging more than 6.5 damage per swing and will need only 26 swings on average to win. I'll get the extra swing per round and even more health and damage reduction so I'll probably get to swing 45 times before I die. This seems insanely good. I might need to get lucky to win at level 26 or 27 but at 28 I'm pretty much a lock to win after a few tries.

Unlike the wizards who lived at the bottom of a cave and required me to run from 4-6 fights each way before I could try them I can save right outside Astos' castle and get lots of tries on him. Leveling takes so long I'll probably take a break and try to win a bit at 26 and at 27 but after looking at the numbers I'm pretty convinced I can win for sure at 28 and will therefore keep slogging.

Monday, March 21, 2011

One Step Forward, Two Steps Backward

I made it to level 20 yesterday and decided to give the wizards another shot. My first encounter was with three wizards and I managed to kill one of them before I died. That gave me hope, so I went in again and ran into the optimal two wizards. I managed to beat them down with plenty of health to spare! Victory! I took the crown, drank to full, and went to leave the dungeon. On the way out I ran into some monsters who can paralyze me. They went before I did, paralyzed me, and then slowly beat me to death while I couldn't take any actions. I'd won the battle but not the war, it would seem.

That was discouraging, but I went back in again. A couple tries later I ran into two wizards and they beat me. I tried again. Two wizards, and I won! And then I got paralyzed on the way out and died. I made it down to two wizards twice more, and they beat me both times. At this point I'd spent a couple hours trying with nothing at all to show for it, so I gave up. I played some League of Legends games, watched some Battlestar Gallactica, and then came back. I looked up the stats for the monsters that were paralyzing me and determined another level or two and they'd probably start running from me before they managed to beat me to death so I went to level up some more. This would also help solidify beating the two wizard fight since I was only 2 for 5 as it was.

I gained one level, and then took note of how fast I was gaining experience at level 21. It seemed like it would take an hour and a half to level which was depressing. (It turns out anything I have a chance at beating is scared to death of me and runs away, so not only is my tnl going up by huge amounts but the amount of experience I get per fight is nosediving.) So I went and gave the wizards another shot. This time I beat the two wizard fight and actually ran away successfully from the ghouls in the dungeon and made it to the surface. Victory! I have my crown! I'm one trivial boss fight away from getting the mystic key and with it a huge weapon and armor upgrade, along with access to more places to potentially level up.

Only it turns out that one trivial boss fight is absolutely not trivial for one thief. Normally I have to level up to beat the marsh cave, so when a normal party is good enough to get the crown it's more than good enough to kill Astos. But he's nigh invincible against a thief. I'm not sure it's even plausible to win, though I will look into the numbers further tomorrow to see if I even have a shot at level 28...

Sunday, March 20, 2011

Avoidance vs Mitigation

This is an age old debate that takes place amongst World of Warcraft tanks. Would you rather take less damage per swing or would you rather just get hit less often? In World of Warcraft regardless of the right answer in terms of total incoming damage the reality tends to be you should just stack mitigation and maximum health. The reason is in WoW you have healers pounding heals into you constantly. Depending on the expansion, all a dodge really meant was more healing became overheal. The situation is a little different when you're a lonesome thief in a Final Fantasy game. My only source of healing in combat is to drink a potion which restores such an inconsequential amount that any fight where it could help is by definition trivial. (The 9 pirate fight was a potential exception; I could have hit it at a level where I could burn out 6 of the 9 pirates and then drink to full. Instead I just gained an extra level and killed all 9 pirates with no worry.) So what I'm looking at here is a strict damage prevented amount.

In particular, lets pretend I'm a level 16 thief that failed to scum optimal agility. Fully geared up I have 59 evasion and 6 absorb. I could switch that up and go to 69 evasion and 0 absorb, or to levels in between. Wizards attack twice per round for 30-60 damage a swing. (As an aside, what kind of wizard knows no spells and hits like a truck?) With my gear on, I expect to get hit for 39 damage 77% of the time, for 30 damage per swing. With my gear off I expect to get hit for 45 damage 73% of the time, for 33 damage per swing. So say I stick with the 30 damage a swing setup. They swing twice a round and I have 366 max health, so the 7th swing kills me. I need to have only two show up and then kill them each in two swings to win.

Wizards have an absorb of 16. My attack is 23, so I do between 7-30 damage a swing. I do swing twice, so it is possibly to kill them in two rounds but not likely, especially since they actually have 66 agility for a very high dodge rate themselves.

I actually tried to kill them at level 16 and it felt like I had no chance. I'm sure if I got lucky and crit my first swing on a 2-wizard fight I might be able to win but as it stands I don't have much hope. So my current plan is to level to 20 and hope the extra health buffer, the extra 2-4 damage per swing, and the extra 1.2% dodge will be enough... But realistically, I'm going to need the third attack at level 26 with the bad weapon or level 28 with the good one.

Saturday, March 19, 2011

Final Fantasy: Progress!

I managed to take Garland down without much trouble, but then ran into the problem that the random encounters in the next area were all harder than Garland was. So I had to grind on stupid goblins for several more levels before eventually running my way to Bikke and slaughtering his pirates mercilessly. I boated to the elf town and proceeded to get into random fights right beside town. About half of them would kill me but the other half I could barely win and they were worth 5-10 times as much xp as the goblin fights were, so it was a good deal. The only downside was the inn in the elf town costs 100 gil to use, I had to use it after every fight, and some of the fights I could kill were worth less than 100.

Eventually I hit level 10 (learning along the way that you can actually scum for good hp gain levels, for an extra 19+d6 health if I scum which has to be worth doing) and got my second attack. This enabled me to beat pretty much all the random encounters outside the elf town. At level 12 I was able to do a couple fights before resting and decided to give the next dungeon a shot. I ran my way to the wizards at the bottom (learning along the way that 19 luck is not a guarantee in the playstation version and that monsters that look fast like wolves are hard to run from) and got obliterated. I got to take 1 action before I was dead. Now, that was a group of 4 wizards and I didn't get lucky on dodges so maybe I could have a chance against 2 wizards, right? Wrong. I got to take two actions. A miss and a 1x hit for 10. A quick look at a FAQ shows they have 84 health each, so I was not even close to killing one of them, let alone two.

The problem now is leveling up doesn't make me appreciably more powerful. Do I need to wait until I have 3 attacks to kill them? If I switch to a higher +hit weapon that'll happen at level 26. I'll have more than double my max hp at that time too, so I should be able to win then for sure. Alternatively the wizards hit so hard I could just take off my armour for the extra avoid being naked gives and hope I get lucky. My tentative plan is to level up to 16, crunch some numbers on removing my armour, and trying again.

Friday, March 18, 2011

Final Fantasy: Scumming for Stats

In the original Final Fantasy there is only one way to get bonus stats: to level up. You can level at most 49 times, and can gain at most 1 of each stat per level so there is a very real hard cap in terms of how good a given character (say, a thief) can be.

The stats you gain on level up aren't really as random as you might think though. It turns out each level has a fixed set of stats you're guaranteed to gain (level 2 was a strength, an agility, and a luck for example) and then you have a chance (supposedly 50%) to also get the other stats. So theoretically I could save before every level gain and reset if I didn't get every stat, but that will take a long time. The question is, which stats should I actually scum for? What do the stats do? I did some digging and have a rough idea:

Strength - Every 2 strength increases the damage done per swing by an average of 1.5. I think I'll have 10 attacks at max level with fast up, so every strength is 7.5 damage per attack. This seems pretty good.

Agility - Your base evade is 40 + your agility. No one really knows what the evade formula is, but it seems reasonable to me that the attack rolls a number between 0-255 and if it's under your evade you don't get hit. If that is true, then an agility is worth 0.4% dodge. I'm not sure if the plan for killing bosses is going to involve the ruse shirt or not (probably yes) but if not then this seems good. Otherwise pretty irrelevant.

Intelligence - As best I can tell this stat has no game effect.

Endurance - When you level up you gain max health based on a formula. Either you gain 1 + (End/4) or you gain 20 + d6 + (End/4). So gaining an endurance at level 10 will likely get me 10 max health when I hit the level cap. The early couple endurance are probably worth scumming for, but later ones don't seem too important. I'm better off scumming for a better d6 roll on my big health levels, really.

Luck - Apparently when you're trying to run away the game rolls a number between 0 and (16+x) and then compares that to your luck. If the roll is less than your luck, you run away. But the game is bugged, and whatever they meant x to be it's something else entirely. If the runner is in the first slot then x is based on the status of the character in the third slot. In my case that status will always be dead, so x is 1. As such, if I have at least 18 luck I'm guaranteed to run away. I'm level 6 now and have 19 luck, so unless they fixed the bug in the Playstation version I'm guaranteed to run away.

So it seems like Int and Luck are worthless so I might as well scum for Str and Agi. Maybe End too if I feel like it at the time but I won't worry if I miss some.

Thursday, March 17, 2011

Final Fantasy: Plan

First up will be the original Final Fantasy, though I will be playing the Playstation version since my NES doesn't work and frankly I like the ability to buy more than one potion at a time. And the run button! It's not as good as the walk button but then what is? It turned out I have my completed save game from 4 white mages on my old memory card and can start a new game from there if I wanted. I didn't know what would be different so I went to gamefaqs to see what the difference is. Turns out, not much. You can unlock some more pictures if you play a second game on the easy difficulty but I really don't see a reason to want to play on easy. I did, however, see a walkthrough on beating the game with one white mage. It did seem pretty easy with 4 white mages, so maybe 1 white mage would be cool. But why do what that guy did when I can be a little different? There were also guides on doing it with every other class, save thief. I'm naturally drawn to thieves anyway (Locke was the answer to yesterday's bonus question) so I'm going to try playing with but a single thief. It sounded like it was plausible but could require scumming for levels which I am not above doing, I assure you.

I started out yesterday, got my three black mage friends murdered, and started leveling. It turns out a single thief is really abysmally bad at level 1. Also at level 4. I pretty much can only kill goblins without risking death, and each goblin is worth 6 xp each. To get from level 5 to level 6 requires an extra 975 xp, or 163 goblins. Woo? I did just hit level 5 last night before I went to bed so maybe I'll try to kill Garland. If not, 163 more goblins it is!

Wednesday, March 16, 2011

Final Fantasy Marathon

I spent a good chunk of the weekend listening to music from the Final Fantasy games and got a real urge to play most of them again. I figure if I'm playing most of them I might as well play all of them. I never did finish XII or XIII and the other non-NES ones are all pretty great so there's a good reason to play them all again. Some to just watch the story and play around with the mechanics again, but others I want to do something different. Something like playing all white mages in FFI, or only using 3 characters total for the second half of FFVI. (The game forces you to pick up Celes, Edgar, and Setzer. (Who happen to be three of my four favourite characters in the game. Guess who the fourth is for a no-prize!)

But I've already done those. I've killed Sephiroth entirely with morph damage. I don't think I ever actually beat FFV at level 2 (someone saved over my game after 50+ hours of watching the same enemy run away for 1AP) so I might try that but man was that boring. I remember when I was doing that I would actually play three games at once. FFV on the little tv, FFVIII on the big tv, and FFII on an emulator on Josh's pc. I don't think I beat the challenge bosses in FFV either, so I may do that instead. I dodged the stupid 200 lightning bolts to build stupid Lulu's stupid weapon in FFX. I'm pretty sure I found every buried treasure thing in FFIX. I don't want to do the same crazy thing again, that would be silly.

I fell off the daily posting wagon recently. (The first day I missed in over 6 months came because my internet went down for 12+ hours one day and I hadn't posted from work. I went so far as to take my laptop out into the neighbourhood near midnight and plugged it into the electrical outlet outside Starbucks in the hopes I could find a wireless connection nearby but it wasn't to be.) Missing one day pretty much removed the incentive to post, which as you can see resulted in not a lot of anything. I'm still not sure where I want to go as far as content here and whatnot, but the fact I can't remember if I beat FFV at level 2 or not bothers me in a way that isn't even vaguely rational. So my plan is to start posting daily about my exploits playing Final Fantasy games for future me's amusement and we'll see where we end up from there.

Tuesday, March 15, 2011

Antiquity

I got to play a new to me board game last Tuesday - Antiquity. This is a game that came out in the last decade but had a really limited print run which has caused it to be pretty scarce. (It isn't even listed on eBay right now. On BGG's marketplace it's in the $250-$300 range.) The game has a lot of little cardboard bits and new was probably around $100 but clearly it's gone up a lot. It seems to have a pretty limited audience in that it's a pretty hardcore game but after one play it seems fantastic.

The basic idea is you're building up an empire from pretty close to scratch. You start with a city on a hex grid and 6 wood and need to expand your empire by acquiring resources and turning them into more resources or into winning the game. There are 10 types of goods in the game as resources to manage along with needing to manage your population, your city real estate, your world map zone of control, and your pollution. Your first 4 dudes are free but beyond that if you want more people you need to pay an increasing amount of resources to unlock more dudes.

For example, to start the game you might spend 1 of your starting wood on a building in your city, the cart shop. This building lets you stick a man in it to gather resources on the world map. So you might put one of your 4 free guys in there with another wood and tell him to build a lumbermill. This will let you pick a tree hex on the board and chop it and all adjacent trees down. Each turn you'll get one of those wood until they're all gone at which point you'll get the guy back. So you can spend 1 wood and 5 turns of a guy to get 5 wood, which you will use in future turns to build more buildings or get even more stuff. Or maybe you want to send him fishing instead, so you can get some fish which you can use to get another guy and then send that guy out for wood. Or stone...

Using land for farming, mining, or fishing pollutes it, so you can only use it once. On top of that you have to pollute 3 hexes each turn, so you pretty quickly run out of usable space. Just like in real life the solution to the problem tends to be to just expand which will give you more hexes to pull raw resources from or just to dump your pollution. The over world map has a reasonable but not excessive amount of space, so you don't get to expand much at all before you run into other players. You can't really attack other players perse, but you do get to dump your pollution onto places they might want to use. Also if you build extra cities in your expanding you get to put even more pollution onto the board each turn!

Finally, every turn you need to have more and more food in storage or your people start to die. This isn't as bad as it sounds and at the same time is actually much worse than it sounds. When people die you don't lose population or anything of the sort, all that happens is you have to put a grave into your city for each dead person. This eats up space you were probably planning to use on buildings that do things to help you win the game, though, which could be a problem. You can fix this by storing excess food, or by building extra cities just to hold dead people, or by building specific buildings which can help with this problem like the granary (+3 food each turn for the purposes of famine) or the hospital (remove 5 graves from your city each turn).Run out of room for graves and you need to start stacking them onto your buildings which will disable them. Run out of buildings to disable and you lose the game!

So you have all these resources and things to manage... How do you win? That's the beauty of the game. You get to pick your winning condition! One of the buildings you can build is called the cathedral, and when you build it you get to pick a patron saint. There are 5 different saints you can choose and the one you pick determines what you're trying to do in order to win and gives you a special power that helps you accomplish your chosen goal. Your options are:

  • Build all 20 of your population houses. The bonus provided to help this along is whenever you build two houses at once you get the cheaper one for free. House costs range from free to 6 resources and you need to have room in your cities for all 20 houses.
  • Build at least one of every single building in the game. The bonus for doing this one is you can rearrange your buildings at any time. Some of the buildings have really weird shapes (think Princes of Florence) and a few of them need to actually connect together for optimal use. (There's a university and 4 faculties which together are so big they occupy an entire city. Build them apart and you need a worked in each faculty to operate them, but build them beside the university and you just need 1 worker to power all of them at once.) 
  • Own 3 of every food and luxury good in the game. There are 4 of each, so this amounts to having 24 specific goods on hand at one time to win. The bonus to help do this is you can store an infinite number of goods in your cathedral. (Typically you can't store anything at all, so you have to discard anything you don't use. You can build a storage building which lets you hold one good per square of the storage assuming you put a guy on it. So this bonus saves you a guy a turn, and a wood, and the space in your city that would have gone to storage.)
  • Completely engulf another player's zone of control within your own. Normally you control 2 hexes around your cities and inns but there is a building you can build to increase that to 3 along with one that lets you control lakes and such. The bonus for trying to do this one is you get 1 fish when you build your cathedral and you get an extra fish each time someone else builds a cathedral. So, at most, 4 fish. You use food to build extra guys and importantly for this victory condition you also use food to build the inns which expand your territory. This feels like the weakest bonus but it also seems like the easiest win condition if any of the other players are slow to expand.
  • Any 2 of the above victory conditions. As a bonus you get all of the above bonuses. As a balancing penalty you cannot change your patron saint. (Normally you can use one of the university faculties to destroy your cathedral and rebuild it but since you get a lot of bonuses for choosing this patron saint you can't blow it up.)

Also helping the replayability is the game comes with a large number of double sided hexes to use building the overland map so you end up with a different distribution of terrain to use each game.

I actually got to play the game a second time on Sunday as well and it was pretty great each time. I played the super saint both times and came close to winning the first time and won pretty handily the second time. Both games played out very differently mostly because of the way famine works in the game. Basically the number of people who die increases by one each turn. So the first turn everyone gets 0 graves. The second turn everyone gets 1 grave. And so on. But there are ways to raise or lower that number as the game goes on. The first game people aggressively spent resources to lower the number (which costs you resources and benefits everyone) and the second game no one did. On top of that in the second game I aggressively tried to raise the number as much as possible since I was the super saint and felt I could use the bonuses to mitigate the damage and also if people have to spend time dealing with graves it will slow them down and I wanted that time to get 2 winning conditions. It worked; two of the players got completely overwhelmed with graves. We even ran out of grave tokens and needed to use other things to sub in.

The game takes in the 2-3 hour range to play (and likely gets shorter as people get used to the mechanics). I think I'd like to play a lot more of it, but it would be a reasonable investment to pick up a copy. So the question then is: does it sound interesting enough that people would play it?