Users browsing this thread: 1 Guest(s)
Random battle theme
I know next to nothing when it comes to assembly code, but this one's simple, you'd just need to add in another exception for the Floating Continent background. The Floating Continent Background is: ID $15 Floating Island.
Can check the background IDs on the wiki: https://www.ff6hacking.com/wiki/doku.php...ackgrounds
So like...
Notice the Floating Continent has been added now.
Can check the background IDs on the wiki: https://www.ff6hacking.com/wiki/doku.php...ackgrounds
So like...
Code:
hirom
org $C2BDB7
JSR free_space
NOP
org $C2CE2B ; 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_wor_grass
CMP #$01
BEQ is_wob_forest
CMP #$02
BEQ is_wob_desert
CMP #$03
BEQ is_wor_forest
CMP #$05
BEQ is_wob_grass
CMP #$2F
BEQ is_wor_desert
CMP #$16
BEQ is_kefka1
CMP #$28
BEQ is_kefka2
CMP #$15
BEQ is_floating_island
LDA #$24 ; 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_wob_desert:
LDA #$12 ; song ID
BRA exit
is_wor_forest:
LDA #$13 ; song ID
BRA exit
is_wor_grass:
LDA #$14 ; song ID
BRA exit
is_wor_desert:
LDA #$15 ; song ID
BRA exit
is_kefka1:
LDA #$16 ; song ID
BRA exit
is_kefka2:
LDA #$17 ; song ID
BRA exit
is_floating_island:
LDA #$18 ; song ID
exit:
RTS
Notice the Floating Continent has been added now.
We are born, live, die and then do the same thing over again.
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)