Users browsing this thread: 1 Guest(s)
Patch: Informative Miss

#13
Posts: 212
Threads: 1
Thanks Received: 11
Thanks Given: 2
Joined: Oct 2014
Reputation: 7
Status
None
The MissType routine overwrites the X register, which causes counter attack scripts to fail. You can fix it by adding PHX and PLX like so:


Code:
MissType:
 PHX
 CLC               ; default to no "miss" text
 LDX #$04          ; point to "fail" bytes first
.loop
 BIT !msgs,X       ; is this miss message flagged
 BNE .done         ; exit with X offset if so
 DEX #2            ; point to next lowest message
 BNE .loop
.done
 TRB !miss         ; test and reset miss flag
 BNE .set_msg      ; if set, convert X to message value
 DEX               ; else check if "null" or "fail" was set
 BMI .exit         ; if not, exit
 TSB !miss         ; else, show fail/null on next loop
.exit
 PLX
 RTS
.set_msg
 TRB !fail         ; clear "fail" bit
 TRB !null         ; clear "null" bit
 SEC               ; indicate "miss" text
 TXA               ; get message flag in A
 XBA               ; move to hi byte
 PLX
 RTS




https://github.com/abyssonym/beyondchaos
Beyond Chaos is a full-game randomizer for FF6.
Quote  
[-] The following 2 users say Thank You to abyssonym for this post:
  • C-Dude (07-08-2023), kjinn22 (08-03-2023)



Messages In This Thread
Patch: Informative Miss - by Bropedio - 10-20-2019, 07:02 PM
RE: Patch: Informative Miss - by Gi Nattak - 10-22-2019, 02:46 PM
RE: Patch: Informative Miss - by C-Dude - 10-27-2019, 12:30 AM
RE: Patch: Informative Miss - by Bropedio - 10-29-2019, 02:30 PM
RE: Patch: Informative Miss - by C-Dude - 10-29-2019, 06:34 PM
RE: Patch: Informative Miss - by Gi Nattak - 10-30-2019, 12:52 PM
RE: Patch: Informative Miss - by kjinn22 - 08-26-2020, 07:25 AM
RE: Patch: Informative Miss - by Gi Nattak - 08-27-2020, 06:16 PM
RE: Patch: Informative Miss - by kjinn22 - 08-28-2020, 12:11 AM
RE: Patch: Informative Miss - by kjinn22 - 09-23-2020, 01:20 PM
RE: Patch: Informative Miss - by C-Dude - 09-23-2020, 01:44 PM
RE: Patch: Informative Miss - by Lightning - 12-24-2021, 04:46 PM
RE: Patch: Informative Miss - by abyssonym - 07-08-2023, 08:28 PM
RE: Patch: Informative Miss - by Lightning - 02-15-2024, 01:48 PM
RE: Patch: Informative Miss - by Drakkhen - 02-15-2024, 05:39 PM
RE: Patch: Informative Miss - by Lightning - 02-15-2024, 07:34 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite