Users browsing this thread: 1 Guest(s)
Changing default Row to certain characters

#2
Posts: 3,971
Threads: 279
Thanks Received: 237
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
I found part of the info on the wiki ROM map. For menu (bank $C3), you need to play with the $75-$78 bytes and for battle (bank $C2), it's the $3AA0-$3F1F block, more precisely $3AA1 bit 5 for character or monster 0. Likely checking $3AA1 in bank $C2 should get you where it is set, same for $75 to $78 in bank $C3. If front row is default and nothing need to be set well there will be no relevant code.

How would I tackle this problem? Maybe having 2 bytes of free RAM that indicate a character is recruited (there are event bits for this already) and if certain bits are set, set the back row for these characters. This would need to be done in menu and battle because you never know which one you're going to trigger first after a recruit.

Code:
BATTLE
------
$3AA0-$3F1F Character/Monster Data
$3AA1 76543210
    7: something with regen/poison/seizure (DoT)
    6: pending action from run/control/psyche/seize (triggers subroutine at C2/0977)
    5: row (0 = front, 1 = back)
    4: target has a pending DoT action
    3:
    2: protection from instant death
    1: defense mode (used def. command)
    0: pending action goes directly to action queue

MENÙ
-----    
$75 --rbb--- character slot 1
    r: battle row (back row if set)
    b: battle order
$76 --rbb--- character slot 2
$77 --rbb--- character slot 3
$78 --rbb--- character slot 4
  Find
Quote  
[-] The following 1 user says Thank You to madsiur for this post:
  • Warrax (09-20-2017)



Messages In This Thread
RE: Changing default Row to certain characters - by madsiur - 09-20-2017, 01:43 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite