Runic question
#5
...Perhaps the check could be made more comprehensive.  It'd take more freespace, though.

Code:
;-------------------------------------------------------------------------------
; check runic for fighter Y
;-------------------------------------------------------------------------------
check_runic:

       LDA $3AA0,Y
       LSR                 ;check for valid target
       BCC .runic_no       ;don't runic if invalid target
       
       PEA $80C0           ;check for sleep, death, petrify            80E1        [Adds Blind and Moogle to the restrictions]
            C2/3544:    F4 E1 80
                            80E0        [Remove the blind restriction, since Cover doesn't have that]
       PEA $2210           ;check for freeze, hide, stop
            C2/3547:    
       JSR $5864           ;routine to check for status
       BCC .runic_no       ;don't runic if any status found
       
       LDA $3E4C,Y                                                        $3EF8,Y
            C2/354F:    B9 F8 3E
       BIT #$06            ;check for runic flags                        BIT #$10        [Former STOP bit]
            C2/3552:    89 10
       BEQ .runic_no       ;don't runic if spell can't be absorbed

       STX $EE             ;spell target

       TYA                 ;target
       CMP #$08             ;check if battle slot is a party slot?
       BCC .party_yes       ;handle party runicker
       BRA .party_no       ;handle monster runicker

   .party_yes
       TXA                 ;caster
       CMP #$08             ;check if battle slot is a party slot?
       BCC .runic_no       ;don't runic for party caster
        BRA .runic_yes       ;otherwise runic
       
   .party_no
       TXA                 ;caster
       CMP #$08             ;check if battle slot is a party slot?
       BCS .runic_no       ;don't runic for monster caster
                            ;don't need an otherwise branch here since .runic_yes is next
   .runic_yes
       SEC
       RTS
       
   .runic_no
       CLC
       RTS
I think this would check if the target is a monster or not, then runic so long as the caster is on the OPPOSITE team.  It would replace the section by the same name in Hatzen08's RunicForever2_1.  I'd test this like I did with the other post, but I'd have to put it in by hand (because xkas doesn't like me and Asar likes introducing errors) and I don't have the room near the RunicForever code in my rom.

EDIT: If you assemble this and your characters runic their own spells, that means .party_yes and .party_no are labelled wrong and need to be swapped.  If you assemble it and it crashes... then I have no idea!
EDIT: Hopefully you didn't grab this in the middle of the night. I forgot a BRA command.
Reply


Messages In This Thread
Runic question - by Hashimo - 09-19-2020, 05:05 AM
RE: Runic question - by madsiur - 09-19-2020, 05:46 AM
RE: Runic question - by C-Dude - 09-19-2020, 11:21 PM
RE: Runic question - by Hashimo - 09-20-2020, 02:47 AM
RE: Runic question - by C-Dude - 09-20-2020, 03:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  X-Zone -> Runic Softlock Fix C-Dude 1 2,120 03-18-2023, 05:30 PM
Last Post: madsiur
  Replacing Runic with Shock Jeff 3 3,401 06-09-2021, 09:15 PM
Last Post: PowerPanda
  Tentative Runic -> SwdMagic patch FF6Fanatic 29 27,955 09-05-2020, 05:52 PM
Last Post: kamesennin
White Mage Modifying the "Runic Forever" hack dtgenji 9 7,311 01-06-2019, 12:00 AM
Last Post: HatZen08
  Runic Targets only Enemies PowerPanda 2 2,518 08-05-2018, 09:20 PM
Last Post: GrayShadows
  Turning Runic into Cover B-Run 18 17,955 04-25-2017, 12:24 AM
Last Post: Timbo
  Runic to Shock PowerPanda 6 7,983 02-20-2017, 06:09 PM
Last Post: Turbotastic
  Swdtech/Runic weapon check, for other skills? FF6Fanatic 2 3,459 06-19-2016, 06:17 PM
Last Post: FF6Fanatic
  Runic AND SwdTech to Shock? Royaken 3 3,857 04-06-2014, 12:17 PM
Last Post: Xenovant
  Runic color changing tsushiy 0 1,898 07-03-2013, 08:58 PM
Last Post: tsushiy

Forum Jump:


Users browsing this thread: 1 Guest(s)