Users browsing this thread: 1 Guest(s)
Turning Runic into Cover
07-26-2012, 08:07 PM
Ok, so I need some help with Runic's targeting? I see the table in the CF bank, but that still doesn't allow me to change runic's target... It seems some abilities have hard-coded targeting but I'm having a heck of a time tracking it down. I don't think it's in the C2 Bank at all unless I am missing something major. If how I'm reading it is right, C2 has more to do with the actual actions as they are performed; while the C1 bank deals with action selection through menus and whatnot as well as sprites and some other stuff... so I would expect to find it in the C1 Bank... but so far all I'm finding is Runic's animation.
All targeting for non-listed abilities appears to happen here:
but I can't find anything, beyond the things affected by the targeting table in the CF bank, that are mentioned here that would differentiate abilities like Runic from abilities like Jump or Steal that allow for targeting. I have tried changing all of Runic's targeting bits to match Steal and Jump, still can't retarget Runic. I get that Runic is designed to only affect the character using it, I just don't see anything in the code that should keep me from moving the cursor after changing the targeting bits.
Once I understand targeting more fully, I think I will be ready to turn Runic to Cover.
All targeting for non-listed abilities appears to happen here:
Code:
Several Commands
C1/7792: 9C412F STZ $2F41 (Fight jumps here)
C1/7795: A938 LDA #$38
C1/7797: 48 PHA
C1/7798: EE6B7B INC $7B6B
C1/779B: ADC27B LDA $7BC2
C1/779E: 8D837A STA $7A83
C1/77A1: 9C7D7B STZ $7B7D
C1/77A4: 9C7E7B STZ $7B7E
C1/77A7: 9C7F7B STZ $7B7F
C1/77AA: 9CCE7A STZ $7ACE
C1/77AD: 9CCF7A STZ $7ACF
C1/77B0: 9CB162 STZ $62B1
C1/77B3: 9CB262 STZ $62B2
C1/77B6: 9CB462 STZ $62B4
C1/77B9: AD847A LDA $7A84 (character targeting)
C1/77BC: 3006 BMI $77C4 (branch if random target is set)
C1/77BE: 8536 STA $36 (otherwise save for now)
C1/77C0: C902 CMP #$02 (is only "one side only" set?)
C1/77C2: D00D BNE $77D1 (branch if not)
C1/77C4: AECA62 LDX $62CA
C1/77C7: BF6177C1 LDA $C17761,X
C1/77CB: 8D7D7B STA $7B7D
C1/77CE: 4C0179 JMP $7901
etc...
but I can't find anything, beyond the things affected by the targeting table in the CF bank, that are mentioned here that would differentiate abilities like Runic from abilities like Jump or Steal that allow for targeting. I have tried changing all of Runic's targeting bits to match Steal and Jump, still can't retarget Runic. I get that Runic is designed to only affect the character using it, I just don't see anything in the code that should keep me from moving the cursor after changing the targeting bits.
Once I understand targeting more fully, I think I will be ready to turn Runic to Cover.
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)