Users browsing this thread: 2 Guest(s)
Final Requests for Help

#8
Posts: 617
Threads: 49
Thanks Received: 0
Thanks Given: 5
Joined: Feb 2017
Reputation: 25
Status
None
I figured it out. All of her notes were written for a header, but the IPS patch was for a no header rom.  Laugh


The other complication is that half of her beta patch was for the purpose of making Steal always hit... obviously not something we want. I was able to remove those portions, and was left with this:
Code:
C2/39E0: EA        NOP
C2/69E1: 20 F0 66    JSR $66F0
C2/69E4: EA
...
C2/39FA: 7A        PLY
C2/39FB: EA EA        NOP

FREESPACE C2
C2/66F0: B9 08 33    LDA $3308,Y
C2/66F3: C9 FF        CMP #$FF
C2/66F5: D0 04        BNE $66FB
C2/66F7: C8        INY
C2/66F8: B9 08 33    LDA $3308,Y
C2/66FB: 60        RTS

What it appears to be doing is this: the first time you steal from an enemy, you will always get their rare steal (seems odd). Then, when you steal again and get a hit, it will increase Y so you're targeting the common steal slot. Only after you have stolen both items will you get the "nothing to steal" message. I'm going to have to chew on this. I feel like the code is 70% of the way there, but not quite finished.

EDIT: Okay, I need help with this. This is the subroutine that decides what to steal. I'm trying to add the following points of logic. As I have it written below, it is working. However, the problem is that if you've already stolen the common item, then the rare item gets a major boost in probability. Here is the logic I want to add in:
1. 1/8th of the time, branch to the rare steal on the first hit (done and working)
2. If you have already stolen the common item, then miss 7/8 of the time. 

In the original C2 routine, there are several branches to C2/3A01, which displays the "can't steal" message. I tried switching this subroutine from a JSR to a JMP so that I could jump out of it to 3A01, but it's crashing the game. Any ideas on what I could add here so that even if you've already stolen the common item, you'll still miss on the rare item 87.5% of the time?

Code:
20 5A 4B    JSR $4B5A    Choose a random number
C9 20        CMP #$20
90 ??        BCC +?? bytes    1 in 8 times, branch to the rare steal (the DEY line)
B9 09 33    LDA $3309,Y     load the common steal
C9 FF        CMP #$FF    Was it already empty?
D0 04        BNE $66FB       If not, branch to the end
[NEED TO ADD SOMETHING HERE]
88        DEY        
B9 09 33    LDA $3309,Y    target the rare steal
60        RTS


Projects:
FFVI: Divergent Paths (Completed) - a complete storyline and gameplay hack of FF6 that adds Leo as a playable character
  Find
Quote  



Messages In This Thread
Final Requests for Help - by PowerPanda - 04-05-2021, 11:28 PM
RE: Final Requests for Help - by Subtraction - 04-05-2021, 11:44 PM
RE: Final Requests for Help - by seibaby - 04-06-2021, 07:24 AM
RE: Final Requests for Help - by PowerPanda - 04-06-2021, 09:36 PM
RE: Final Requests for Help - by madsiur - 04-06-2021, 09:56 PM
RE: Final Requests for Help - by Lightning - 04-06-2021, 10:55 AM
RE: Final Requests for Help - by madsiur - 04-06-2021, 08:35 PM
RE: Final Requests for Help - by PowerPanda - 04-06-2021, 10:28 PM
RE: Final Requests for Help - by C-Dude - 04-07-2021, 12:04 AM
RE: Final Requests for Help - by Drakkhen - 04-07-2021, 12:11 AM
RE: Final Requests for Help - by PowerPanda - 04-07-2021, 10:40 AM
RE: Final Requests for Help - by assassin - 04-07-2021, 10:17 AM
RE: Final Requests for Help - by Drakkhen - 04-07-2021, 11:03 AM
RE: Final Requests for Help - by assassin - 04-07-2021, 01:36 PM
RE: Final Requests for Help - by assassin - 04-07-2021, 09:15 PM
RE: Final Requests for Help - by PowerPanda - 04-07-2021, 06:02 PM
RE: Final Requests for Help - by assassin - 04-07-2021, 08:15 PM
RE: Final Requests for Help - by PowerPanda - 04-07-2021, 08:49 PM
RE: Final Requests for Help - by PowerPanda - 04-07-2021, 10:48 PM
RE: Final Requests for Help - by C-Dude - 04-08-2021, 01:49 PM
RE: Final Requests for Help - by PowerPanda - 04-08-2021, 04:51 PM
RE: Final Requests for Help - by C-Dude - 04-08-2021, 11:06 PM
RE: Final Requests for Help - by PowerPanda - 04-08-2021, 11:53 PM
RE: Final Requests for Help - by C-Dude - 04-16-2021, 10:32 PM
RE: Final Requests for Help - by PowerPanda - 04-11-2021, 02:17 PM
RE: Final Requests for Help - by Everything - 04-11-2021, 03:05 PM
RE: Final Requests for Help - by PowerPanda - 04-11-2021, 04:13 PM
RE: Final Requests for Help - by Everything - 04-11-2021, 06:15 PM
RE: Final Requests for Help - by Drakkhen - 04-11-2021, 06:23 PM
RE: Final Requests for Help - by Warrax - 04-12-2021, 03:17 AM
RE: Final Requests for Help - by PowerPanda - 04-11-2021, 08:21 PM
RE: Final Requests for Help - by PowerPanda - 04-18-2021, 01:42 PM
RE: Final Requests for Help - by madsiur - 04-18-2021, 07:34 PM
RE: Final Requests for Help - by PowerPanda - 05-06-2021, 05:27 PM
RE: Final Requests for Help - by SirNewtonFig - 05-06-2021, 08:49 PM
RE: Final Requests for Help - by Lightning - 05-07-2021, 11:19 AM
RE: Final Requests for Help - by SirNewtonFig - 05-07-2021, 01:55 PM
RE: Final Requests for Help - by Lightning - 05-07-2021, 02:51 PM
RE: Final Requests for Help - by SirNewtonFig - 05-09-2021, 08:13 PM
RE: Final Requests for Help - by PowerPanda - 05-07-2021, 06:00 PM
RE: Final Requests for Help - by Subtraction - 05-08-2021, 09:45 AM
RE: Final Requests for Help - by PowerPanda - 05-08-2021, 10:56 AM
RE: Final Requests for Help - by Lightning - 05-10-2021, 01:02 AM
RE: Final Requests for Help - by Subtraction - 05-11-2021, 08:08 AM
RE: Final Requests for Help - by PowerPanda - 05-11-2021, 10:02 AM
RE: Final Requests for Help - by PowerPanda - 05-09-2021, 10:46 PM
RE: Final Requests for Help - by MysticLord - 05-10-2021, 01:36 AM
RE: Final Requests for Help - by PowerPanda - 05-10-2021, 10:05 AM
RE: Final Requests for Help - by MysticLord - 05-10-2021, 05:54 PM
RE: Final Requests for Help - by PowerPanda - 05-10-2021, 09:30 PM
RE: Final Requests for Help - by Subtraction - 05-11-2021, 11:10 PM
RE: Final Requests for Help - by PowerPanda - 05-14-2021, 12:41 PM
RE: Final Requests for Help - by Subtraction - 05-14-2021, 11:59 PM
RE: Final Requests for Help - by Slowmo - 05-15-2021, 11:18 AM
RE: Final Requests for Help - by MysticLord - 05-15-2021, 11:36 AM

Forum Jump:

Users browsing this thread: 2 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite