Users browsing this thread: 1 Guest(s)
Runic question

#3
Posts: 383
Threads: 34
Thanks Received: 10
Thanks Given: 13
Joined: Dec 2018
Reputation: 18
Status
Moog
They likely conflict, because they probably hook into the same section of code in different ways. If using them both doesn't outright cause the game to crash on activating Runic, it may behave as if only one is applied, or may behave in a way entirely unexpected.

Interestingly enough, Hatzen's Runic Forever--at least the last version I saw--is set up to check if the target is the runicker and bypass the spell block if so. It might be possible to change that segment to check if the target is not a monster, and if so let the spells go past.

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
        PEA $2210           ;check for freeze, hide, stop
        JSR $5864           ;routine to check for status
        BCC .runic_no       ;don't runic if any status found
        
        LDA $3E4C,Y
        BIT #$06            ;check for runic flags
        BEQ .runic_no       ;don't runic if spell can't be absorbed

        STX $EE             ;spell target
             TXA                 ;caster
             CMP #$08             ;check if battle slot is a party slot?
             BCC .runic_no       ;don't runic if target is a party member?

    .runic_yes
        SEC
        RTS
        
    .runic_no
        CLC
        RTS
The three further indented lines are what would need to be changed. I'm going off Runic Forever 2_1, and those lines seem to be what let the runicker get their spells past themselves. Changing the comparison to caster against a static #08 and branching if the number is less makes runic ignore your party as far as I can tell.

However, this will make runic one-sided, as it will ALWAYS favor your party. It effectively breaks the Air Force Bit... you'll need to change that boss battle to make the bit do something else (perhaps a lot of HP and then it casts Exploder after a while?).
  Find
Quote  



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

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite