Users browsing this thread: 1 Guest(s)
Ignore Imp check on a specific character
Hmm... before this equipment JSR is called some character data is checked, but then X gets pushed onto the register during this subroutine.
Try
I suspect this will temporarily give you the X that you need to check the character ID, before putting it back to what it was before the code injection. Make sure you have a back-up save file in case the stack shenanigans are wrong and cause a save-damaging crash.
Try
Code:
*5A PHY (Protect the Y Variable for now)
*9B TXY (Use Y to store the current X)
*FA PLX (Get back the previous X to do the character check)
BD D8 3E LDA $3ED8,X (Which character is it?)
*DA PHX (Put the previous X back on the stack)
*BB TYX (Put the current X value back into X)
*7A PLY (Get the Y value back off the stack)
C9 0E CMP #$0E (Is it Kappa?)
...
<From here, resume your code post Kappa check>
I suspect this will temporarily give you the X that you need to check the character ID, before putting it back to what it was before the code injection. Make sure you have a back-up save file in case the stack shenanigans are wrong and cause a save-damaging crash.
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)