add some custom F1 target
#1
Hi!  Hello

So i wanted to add new F1 targets, basically duplicate this target for many other statuses:

Code:
(3F)    // targets all allies with reflect status

C2/1FC7: 20 4E 20     JSR $204E
C2/1FCA: 80 D5        BRA $1FA1


Sets all monsters and characters with Reflect status as targets

C2/204E: 08           PHP
C2/204F: C2 20        REP #$20       (Set 16-bit Accumulator)
C2/2051: 64 B8        STZ $B8        (start off with no targets)
C2/2053: A2 12        LDX #$12
C2/2055: BD F7 3E     LDA $3EF7,X
C2/2058: 10 05        BPL $205F      (Branch if not Reflect status)
C2/205A: BD 18 30     LDA $3018,X
C2/205D: 04 B8        TSB $B8        (mark entity as target)
C2/205F: CA           DEX 
C2/2060: CA           DEX 
C2/2061: 10 F2        BPL $2055      (loop for all entities)
C2/2063: 28           PLP 
C2/2064: 60           RTS

according to what i'm reading here ldx loads 12(constant) and it's used to scroll all allies and enemies slots to see if they have reflect... 
in RAM map there's no info about $3EF7 but probably it tells which statuses the X target has at the moment.
The problem is that i really don't get where's the mention to the fact that the status checked is right reflect and not any other status... do you know the answer?
THE GREATEST CHALLENGE OF ALL TIMES AWAITS:
http://www.ff6hacking.com/forums/showthr...p?tid=2593
DO YOU HAVE WHAT IT TAKES TO SLAY A GOD?
------------------------------------------------------------------------
Tenkarider's project #2 is started: FF6 Curse of the Madsiur Joke (CotMJ)
http://www.ff6hacking.com/forums/showthr...p?tid=2755
What happens when Madsiur tweaks your account? This full game hack will show that!
Reply


Messages In This Thread
add some custom F1 target - by Tenkarider - 03-01-2016, 02:03 PM
RE: add some custom F1 target - by madsiur - 03-01-2016, 02:28 PM
RE: add some custom F1 target - by HatZen08 - 03-01-2016, 04:24 PM
RE: add some custom F1 target - by Tenkarider - 03-01-2016, 06:53 PM
RE: add some custom F1 target - by m06 - 03-04-2016, 12:40 AM
RE: add some custom F1 target - by Tenkarider - 03-04-2016, 11:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Bug?] Remove Death Status and "Target Dead Party Member" Intertwined C-Dude 2 3,118 01-04-2019, 02:39 PM
Last Post: C-Dude
  Multi-target Steal and Metamorph Bug PowerPanda 3 4,117 12-04-2017, 03:20 AM
Last Post: SSJ Rick
  Target Data in C1 GrayShadows 4 4,437 03-30-2014, 06:03 PM
Last Post: GrayShadows

Forum Jump:


Users browsing this thread: 1 Guest(s)