1
Final Fantasy IV Research & Development / Re: Final Fantasy II: A Threat from Within (Version 0.5.1 Available)
« on: November 22, 2015, 09:02:04 AM »
I particularly like the arpeggio bit at 1:20.
We have EVEN MORE themes now, but some old ones are gone...This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
bit hex description
0 01 (?)
1 02 (?)
2 04 Set by handler for End Battle AI spell/action
3 08 Faux-loss in a "no game over" encounter
4 10 Used with 20 bit to gain rewards, etc. (not set when encounter is in 13:FD00 table)
5 20 Victory, sometimes with 10 bit above.
6 40 (? confused, like victory but weird pc status checks I couldn't understand)
7 80 Actual loss
So maybe some custom code might find that interesting. I would imagine running, and the Exit/Smoke spells are relevant here too, but I didn't check into them.I'm... a little bit confused. Granted subtracting conditional flags does have its purpose. But doesn't FF4kster already do this? I may be missing something here.
MMxxxxxx
MM = mode
00: add
01: subtract (never used)
10: set
11: (undefined, would probably behave as 10)
xxxxxx = 6-bit operand
Good finds, avalanche!
Do you know if the graphical data for background 10 are stored among the data for the other backgrounds? I'm guessing it might be hard to see in a tile editor. Probably just a bunch of horizontal lines, huh? Maybe not much more than a few tiles, even...
World to dungeon:
00:9C12 20 21 90 JSR $9021
Dungeon to dungeon:
00:9A99 20 21 90 JSR $9021
Dungeon to world:
00:9AA8 20 21 90 JSR $9021
Using a Return Tile:
00:8197 20 21 90 JSR $9021
Opening on Overworld:
00:831B 20 4B 90 JSR $904B
Opening on Underground:
00:8328 20 4B 90 JSR $904B
Opening on Moon:
00:8335 20 4B 90 JSR $904B
Opening on Dungeon:
00:8348 20 4B 90 JSR $904B
00:EDE5 F0 04 BEQ $04
...
00:EE1B F0 04 BEQ $04
00:8739 AE 00 18 LDX $1800 Load battle/encounter ID
00:873C E0 B7 01 CPX #$01B7 Branch if encounter ID < 439 (0x1B7)
00:873F 90 0A BCC $0A [00:874B] ..
00:8741 E0 B9 01 CPX #$01B9 Branch if encounter ID >= 441 (0x1B9)
00:8744 B0 05 BCS $05 [00:874B] ..
> only for encounter ids 439 and 440
00:8746 A9 10 LDA #$10
00:8748 8D 02 18 STA $1802
00:874B [carry on]
03:F909 AD 02 18 LDA $1802 load battle background ID
03:F90C C9 10 CMP #$10
03:F90E D0 37 BNE $37 [03:F947] branch if not zeromus's battle BG (returns from routine)