Users browsing this thread: 1 Guest(s)
How to make Sketch not suck

#1
Posts: 281
Threads: 18
Thanks Received: 12
Thanks Given: 8
Joined: Mar 2014
Reputation: 8
Status
None
Hey folks! I'd like to share with you all some code to improve the Sketch command. Sketch is an interesting ability hampered by two things: it uses the monster's stats rather than Relm's, which are generally really low; and the selection of available attacks are often outright garbage. The latter is fixable with FF3usME, but the first requires some code changes to fix.

With this patch, Sketch will use the attacker's stats (Vigor and Magic for physical or magical attacks, respectively).

Code:
hirom
;header
!freespace = $C2A694

;Put attacker level [or Sketcher if applicable] in $11AF
org $C22C21
PHX                  
LDA $3417       ;Get Sketcher
JSR newfunc     ;New code
LDA $3B18,X     ;Level
STA $11AF       ;Level
PLX                    
RTS                  

org !freespace
newfunc:
BMI .exit       ;Branch if no Sketcher
TAX             ;if there's a valid Sketcher, use their Level for attack
LDA $11A2       ;Spell Properties
LSR A           ;Check if Physical/Magical
LDA $3B41,X     ;Sketcher's Mag.Pwr
BCC .magical    ;Branch if not physical damage
LDA $3B2C,X     ;Sketcher's Vigor * 2
.magical
STA $11AE       ;Set Sketcher's Magic or Vigor
.exit
RTS
 Credits to Synchysi for parts of this code, which I lifted straight out of Brave New World.
  Find
Quote  
[-] The following 7 users say Thank You to seibaby for this post:
  • Catone (01-14-2020), doofenH (01-16-2020), Gi Nattak (08-24-2022), h.carrell (05-03-2022), Kugawattan (05-18-2017), PowerPanda (05-20-2017), Robo Jesus (01-16-2018)

#2
Posts: 311
Threads: 20
Thanks Received: 0
Thanks Given: 0
Joined: Dec 2017
Reputation: 2
Status
None
Sorry to bump an old thread - but I am using this great patch with my hack but realized today it does not work with control. Is there any way to make this same code work with control? Sketch is actually better than control by using Relm's stats!
  Find
Quote  

#3
Posts: 281
Threads: 18
Thanks Received: 12
Thanks Given: 8
Joined: Mar 2014
Reputation: 8
Status
None
Yes, you'd have to add a check for $32B9,X (who's Controlling this entity?) and if any, load that entity's magic power instead.
  Find
Quote  

#4
Posts: 614
Threads: 49
Thanks Received: 0
Thanks Given: 4
Joined: Feb 2017
Reputation: 25
Status
None
I'm going to try to add this to Divergent Paths, but if you wanted to add Lightning's suggestion, I would love to have that. I also think this should released as a standalone hack.


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



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite