Espers teaching Stat gains
#2
(09-09-2020, 04:28 PM)Morendo Wrote: Hi again everyone! I've got a live one for you here. Been staring at it for a couple of days, but my coding level is too low to get there. I know just enough about hacking this game to dive headfirst into the wrong thing for a few hours and get nowhere. Lol. 

I'm working on a hack in which I'd like Espers to do something new. Instead of teaching magic, I'd like for them to permanently increase a given stat, i.e. Ramuh teaches Stamina+1....x10, Stamina+3....x2, etc. No magic. Just stat gains. Everything else about the process can stay the same: Growth rate, AP gain from battles, etc. Physically increasing the stat shouldn't be too difficult. Espers already give you stat boosts at level-up (at C26198, with pointers from C2614E). I can hijack that code to do all of the math for me. The issue is getting the game to recognize this new set of instructions. How can I accomplish this? 

First, I looked at C2 in the code where we progress towards learning spells taught by Espers (C2602A-C2606C), but nothing there looked particularly useful. Then, I looked at the Esper data, but they just have one byte of info for each spell slot corresponding to the spell index. I thought about creating my own index of stat gains similar to the spell index where 00 would be Stamina+1 instead of Fire, etc. and this seems promising, but how can I get the game to recognize that list as the target? I can't find any pointers that associate Espers with spells. I tell ya, it's tricky!

Any suggestions? All help is appreciated.

I'm surprised no one has replied to this thread until now.

Unfortunately, you won't be able to hijack the existing code in order to do what you seek. Stat gains are limited to one at a time and although they can stack, the code is designed to increase one attribute per character upon levelling up. By contrast the varying nested subroutines concerning learning a spell are designed to work with the spell index to first skip a spell if it is learned, then mark a spell as just learned and to mark the spell as unhidden/accessible. There is no mechanism for learning a spell over and over again, so the subroutine you would eventually create would have to be completely new.

Creating your own stat gain index is an interesting work around but you would have to reconfigure every single loop concerning learning magic from Espers to account for that index. At the bare minimum you would have to replace the called subroutine at C2/6020. That still doesn't address certain problems such as how to apply gains of multiple types.

Thinking about this made my head hurt. That's probably because I'm at too low of a coding level myself to explain.
Reply


Messages In This Thread
Espers teaching Stat gains - by Morendo - 09-09-2020, 04:28 PM
RE: Espers teaching Stat gains - by Turbotastic - 09-17-2020, 12:42 AM
RE: Espers teaching Stat gains - by Morendo - 09-25-2020, 12:00 PM
RE: Espers teaching Stat gains - by Morendo - 11-12-2020, 05:09 AM
RE: Espers teaching Stat gains - by Everything - 11-12-2020, 03:28 PM
RE: Espers teaching Stat gains - by Bropedio - 12-10-2020, 05:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Casting Spells Taught by Espers - RESOLVED! Turbotastic 16 15,070 03-30-2018, 01:36 PM
Last Post: Turbotastic
  Weapons teaching Lore skills? FF6Fanatic 5 6,492 07-11-2016, 03:58 PM
Last Post: FF6Fanatic
  Espers: 1 set of spells KnightDude 7 6,890 07-10-2016, 10:14 AM
Last Post: KnightDude
  Items with stat bonuses +28? DO WE DARE??? ReturnerScum 5 7,523 02-21-2016, 06:23 PM
Last Post: assassin
  Increase required AP to learn spells from espers Tenkarider 5 6,119 01-20-2015, 05:28 PM
Last Post: Drakkhen
  Patch for making Espers unique to different PCs? officemonster 3 4,145 01-14-2015, 02:57 AM
Last Post: Synchysi
  Adding Espers? Royaken 3 3,832 03-24-2014, 08:29 PM
Last Post: Royaken
  Hacking HP/MP amount of stat boosting items Angelo26 2 3,904 04-30-2013, 11:10 PM
Last Post: JWhiteLXXXIX
  Restrict espers by character. Synchysi 22 29,639 10-02-2012, 06:33 PM
Last Post: Synchysi
  Teaching magic spells through weapons Overswarm 25 32,096 12-10-2011, 11:24 AM
Last Post: Angelo26

Forum Jump:


Users browsing this thread: 1 Guest(s)