+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Final Fantasy 1: Auto-targetting?
Pages: [1]
Author Topic: Final Fantasy 1: Auto-targetting?  (Read 296 times)
pkt_paladin
Guest
« on: August 28, 2007, 06:54:49 am »

If your first character targets an enemy that gets defeated before your second character has a chance to go, both in Final Fantasy I and II for the NES, that character will simply attack nothing and waste their turn. How hard would it be to correct this so that it functions like Final Fantasy III and beyond?
Nightcrawler
Guest
« Reply #1 on: August 28, 2007, 08:02:19 am »

Probably not too difficult if you know assembly. The real work will be in tracking down the portion of game code you'll need to modify. I wouldn't be surprised to find out all that really needs to be changed is a incrementing a value to point to the next valid  monster position.  That's just a guess though.
Lenophis
Guest
« Reply #2 on: August 28, 2007, 01:03:19 pm »

Quote from: pkt_paladin on August 28, 2007, 06:54:49 am
How hard would it be to correct this so that it functions like Final Fantasy III and beyond?
Final Fantasy III did not entirely fix this problem. If you single-targetted magic on a target, and it dies before you cast it, it won't seek a new target (and hence, you hit nothing).

As per the question, I don't think FF1 uses anything to signify presence except for HP. Don't quote me on that though, since I haven't actually seen the code to know for sure. Just a wild guess. Grin In any event, if there is a bit that determines it, you'd need to determine which type of battle you are in first. (9 for small, 2 large and 6 small, 4 large, and the fiends/chaos) Then you'd run it through all possible positions in that formation, and check for monsters that have the bit still set (alive) or have HP greater than 0. The final step would be to pick between the remaining monsters at random.
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC