Users browsing this thread: 1 Guest(s)
Random battle theme
(10-14-2018, 03:16 PM)madsiur Wrote: You can test this:
Code:hirom
org $C2BDB7
JSR free_space
NOP
org $C26469 ; change to free space
free_space:
LDA $C2BF3B,X
CMP #$24 ; check if battle song
BNE exit ; branch if not
LDA $11E2 ; load battle background byte
AND #$3F ; isolate battle background
BEQ is_wob_grass
CMP #$01
BEQ is_wob_forest
CMP #$02
BEQ is_desert
CMP #$03
BEQ is_wor_forest
CMP #$05
BEQ is_wor_grass
LDA #$15 ; default battle song ID
BRA exit
is_wob_grass:
LDA #$10 ; song ID
BRA exit
is_wob_forest:
LDA #$11 ; song ID
BRA exit
is_desert:
LDA $1E94
BIT #$10
BNE is_wor_desert
LDA #$22 ; song ID (wob desert)
BRA exit
is_wor_desert:
LDA #$23 ; song ID (wor desert)
BRA exit
is_wor_forest:
LDA #$13 ; song ID
BRA exit
is_wor_grass:
LDA #$14 ; song ID
BRA exit
exit:
RTS
The WOB desert music works as it should, but the WOR desert music just plays the default battle theme.
By the way, I noticed the wob and wor grass songs were reversed, but I figured it out so no big deal.
Edit: May I request a Kefka's tower background battle song? That would be really nice to reflect the final dungeon (kind of like what was done in FF4 near the end of the game).
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)