Users browsing this thread: 1 Guest(s)
Steal, GP Rain, and Steal GP as Spells?

#5
Posts: 81
Threads: 12
Thanks Received: 0
Thanks Given: 0
Joined: Feb 2017
Reputation: 3
Status
Brave
(03-31-2017, 10:34 PM)Madsiur Wrote: In the Fanatic Tower, command $02 (Magic) is replaced by nothing ($FF). Coomand $1D is replaced by $02. Here is the code. It is based on command ID, regardless of what the commands do:

Code:
C2/5382: AD BB 3E     LDA $3EBB     (Fanatics' Tower?  must verify this.)
C2/5385: 4A           LSR
C2/5386: 90 12        BCC $539A     (branch if not in the tower)
C2/5388: B5 FC        LDA $FC,X     (get menu slot again)
C2/538A: C9 02        CMP #$02
C2/538C: F0 08        BEQ $5396     (branch if Magic command, emptying slot.)
C2/538E: C9 1D        CMP #$1D      (MagiTek?  actually, this is former Fight or Gau+Rage.)
C2/5390: D0 06        BNE $5398     (branch if not)
C2/5392: A9 02        LDA #$02      
C2/5394: 80 02        BRA $5398     (save Magic as command)
C2/5396: A9 FF        LDA #$FF      (empty command)
C2/5398: 95 FC        STA $FC,X     (update menu slot)
C2/539A: CA           DEX
C2/539B: 10 BD        BPL $535A     (loop for all 4 slots)

Steal GP is only the Steal command branch (C2/3A09) when a monster is using Steal. It cannot work the opposite way unless you code a new command or code yourself GP stealing when a character steal.

At first I thought Steal GP was going to be very interesting, but as I started to think about how it works, it makes sense that it wouldn't work. Honestly, breaking the game's economy only serves to disrupt its difficulty. In other news, I've been staring at this code since you posted it. 

C2/538C: F0 08        BEQ $5396     (branch if Magic command, emptying slot.)
C2/538E: C9 1D        CMP #$1D      (MagiTek?  actually, this is former Fight or Gau+Rage.)

How exactly does it choose Fight & Gau + Rage? Looking at address C2/538C, I know that BEQ is Branch if Equal but I'm not sure what hex F0 08 is referring to or 5396 for that matter. The same is true for C2/538E. I have no idea what C9 means but I can see that it uses the Compare Accumulator opcode and I know that 1D is the hex value for the Magitek command. What I plan to do is give replace Locke's Fight with Capture and use the automatic Rage patch which replaces Gau's Leap with Fight. What I'd like to do is change the code from Gau+Rage to Locke+Capture. Can you help me understand this?
  Find
Quote  



Messages In This Thread
RE: Steal, GP Rain, and Steal GP as Spells? - by Timbo - 04-01-2017, 12:27 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite