Users browsing this thread: 1 Guest(s)
Learning Magic

#2
Posts: 3,971
Threads: 279
Thanks Received: 238
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(06-28-2012, 12:34 PM)Edrin Wrote: What section of code defines each actors learned magic is located? I want to expand the number of characters that can learn magic by moving the location in the RAM where all of that is stored. To do that I need to find where magic is learned and where it is pointed to from the menu/battle menu. I can't seem to find any of this in FF3info.

note: I already know where to find naturally learned magic.

Everything is update in a few long routines around C2/5E26 along with experience, morph gauge and other stuff. I'm not sure of your question but maybe you are looking for this:

Code:
C2/5E60: 20 83 62     JSR $6283   (Stores address for spells known by character in $F4)

As for moving stuff in the RAM, you need at least 54 bytes to give magic learning to another characters. You have the unused Swtech naming RAM and along with other small unused spot, you might have enough place for an extra character. The problem is your RAM will not be consecutive and you will need to add code to write in the right spot depending on the character and even depending on the magic number in your extra character. This complicate the thing. You could use some unused treasure chest RAM too. This can give you a rough idea of what is available:

Code:
$1600-$1FFF : Data that is stored to Save-RAM
------------------------------------------------

$1600-$184F : Character data (592 bytes, 37 bytes each character)
$1600: Outside battle character Sprite set
$1601: Outside battle character Level adjustment factor (among other things)
$1602: Outside battle character Name (6 bytes)
$1608: Outside battle character unmodified Level
$1609: Outside battle character unmodified Current HP (2 bytes)
$160B: Outside battle character unmodified Max HP (2 bytes)
$160D: Outside battle character unmodified Current MP (2 bytes)
$160F: Outside battle character unmodified Max MP (2 bytes)
$1611: Outside battle character XP (3 bytes)
$1614: Outside battle character Statuses (2 bytes)
$1616: Outside battle character Commands (4 bytes)
$161A: Outside battle character Vigor
$161B: Outside battle character Speed
$161C: Outside battle character Stamina
$161D: Outside battle character Magic Power
$161E: Outside battle character Esper equipped
$161F: Outside battle character Right hand
$1620: Outside battle character Left hand
$1621: Outside battle character Helmet
$1622: Outside battle character Armor
$1623: Outside battle character Relic 1
$1624: Outside battle character Relic 2
(note that the above structure repeats for each character)
$1850-$185F: Setup of current parties (16 bytes)
$1860-$1862: Gold (3 bytes)
$1863-$1865: Game Time (3 bytes)
$1866-$1868: Steps (3 Bytes)
$1869-$1968: Items possessed (256 bytes)
$1969-$1A68: Item quantities (256 bytes)
$1A69-$1A6C: Espers possessed (4 bytes)
$1A6D: Active party
$1A6E-$1CF5: Percentage learned of spells by characters (54 spells X 12 characters = 648 bytes) (#$FF = known)
$1CF6: Time Morph will last
$1CF7: Known sword techs??
$1CF8-$1D27: Sword tech names (48 bytes) (Seems to be a holdover from FF6j, I dunno)
$1D28: BlitzList Sabin's blitzes. Each bit is a blitz; 1 is acquired, 0 isn't.
$1D29-$1D2B: Known lores (3 bytes, 1 bit per lore)
$1D2C-$1D4B: Known rages (32 bytes, 1 bit per rage)
$1D4C: Known dances (1 bit for each dance)
$1D4D: (Bit 7 = 1: Short command set, 6-4: Battle speed, 3 = 1: Wait battle mode, 2-0: Message speed)
$1D4E: (Bit 7 = 1: Reequip empty, 6 = 1: Cursor memory, 5 = 1: Sound mono, 4 = 1: Gauge off, 3-0: Wallpaper)
$1D4F-$1D53 : Not sure...
$1D54: Config (Magic order, among other things)
$1D55-$1D56: Font color
$1D57-$1DC6: Colors for each wallpaper component (7 components X 8 wallpapers X 2 bytes each = 112 bytes)
$1DC7: Number of saves (likely to be two bytes)
$1DC9-$1DDC: List of 20 permanently-stored battle variables
$1DD0: Bit 0 = Fanatics’ Tower
$1DD1: Bit 2 = Morph Available
$1DD3-$1DD4: Doom Gaze’s HP
$1DD5: Battles fought with the cursed shield
$1DDD-$1E1C: Monster formations beaten (to fight on veldt) (64 bytes)
$1E1D-1E3F: (35 bytes which appear to be unused, at least in my save files)
$1E40-$1E6F: Treasure chests opened (Only the first 33 bytes are known to be used)
$1E70-$1E7F: Unused (at least all my save files have this filled with 55h, indicating that it is never disturbed [and I have a lot a save files])
$1E80-$1F5F: Event bits
$1F60: Map XY position (2 bytes)
$1F62: Airship’s XY position (2 bytes)
$1F6D: RndCounter Acts just like $72.
$1F80: Song? (Needs verification)
$1FC2-$1FD1: Event words
$1FF9 : Which monster is it
$1FFE: SRAM Checksum (2 bytes)
  Find
Quote  



Messages In This Thread
Learning Magic - by B-Run - 06-28-2012, 12:34 PM
RE: Learning Magic - by madsiur - 06-28-2012, 07:01 PM
RE: Learning Magic - by B-Run - 06-28-2012, 08:19 PM
RE: Learning Magic - by madsiur - 06-28-2012, 10:24 PM
RE: Learning Magic - by B-Run - 06-29-2012, 09:07 AM
RE: Learning Magic - by B-Run - 06-30-2012, 10:49 PM
RE: Learning Magic - by madsiur - 07-01-2012, 08:24 AM
RE: Learning Magic - by B-Run - 07-01-2012, 10:09 PM
RE: Learning Magic - by Angelo26 - 07-01-2012, 11:26 PM
RE: Learning Magic - by madsiur - 07-01-2012, 11:42 PM
RE: Learning Magic - by B-Run - 07-01-2012, 11:47 PM
RE: Learning Magic - by madsiur - 07-02-2012, 12:00 AM
RE: Learning Magic - by B-Run - 07-05-2012, 07:38 PM
RE: Learning Magic - by Synchysi - 07-05-2012, 09:05 PM
RE: Learning Magic - by B-Run - 07-05-2012, 09:32 PM
RE: Learning Magic - by Synchysi - 07-05-2012, 10:33 PM
RE: Learning Magic - by B-Run - 07-06-2012, 07:40 AM
RE: Learning Magic - by B-Run - 07-07-2012, 02:32 PM
RE: Learning Magic - by B-Run - 07-13-2012, 05:59 PM
RE: Learning Magic - by SSJ Rick - 07-13-2012, 06:06 PM
RE: Learning Magic - by B-Run - 07-13-2012, 07:16 PM
RE: Learning Magic - by SSJ Rick - 07-13-2012, 07:23 PM
RE: Learning Magic - by B-Run - 07-13-2012, 08:26 PM
RE: Learning Magic - by Angelo26 - 07-13-2012, 08:56 PM
RE: Learning Magic - by B-Run - 07-14-2012, 07:25 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite