Final Fantasy Hacktics

Modding => PSX FFT Hacking => Topic started by: Darkholme on November 26, 2014, 03:08:25 pm

Title: Add a new action list as a support ability?
Post by: Darkholme on November 26, 2014, 03:08:25 pm
So, I was chipping away at this (see attached file) a while back trying to make the more boring skillsets into equippable support abilities, such that I might give them more interesting base skillsets.

I don't recall what I started with, but I know I didn't come up with it from scratch looking for offsets or anything like that.

Jump works great as a support ability by the way.

I have not had luck with doing the same for Item, Throw, and Charge, however.

Has anyone else toyed with this idea? Is it a quick fix to make the proper menus pop up and to have them show up in your actions menu in combat?
Title: Re: Add a new action list as a support ability?
Post by: Choto on November 26, 2014, 03:34:09 pm
You can do this for 1 or 2 skillsets, but if you have too many other parts of VRAM will show up instead of the skillset name. I think there's also a hard cap of like 5 based on the infrastructure of the code.

As to why throw and charge aren't working, are you trying these one at a time? If you duplicate the same hack it won't cause additional skillsets to show up.
Title: Re: Add a new action list as a support ability?
Post by: Darkholme on November 26, 2014, 06:22:57 pm
I made sure they're going into different places (3 separate "Blank") abilities at the bottom with the other support abilities, plus maintenance.

They all show up in the class lists, they just don't show up in ENTDs.
Title: Re: Add a new action list as a support ability?
Post by: Choto on November 26, 2014, 06:29:55 pm
If you look at all of the offset attributes in the xml, you'll see they all write to the same locations in Battle.Bin. So effectively, your patching one hack. Then overwriting it  with the next hack, then overwriting it again, etc.

It would be simple to concatenate all the hacks successively. So in the routine it does something like "check if unit has X status, if so add skillset." If you put each of those sections into one routine in series and patch that it will add all the skillsets. It's really a pretty simple ASM endeavor and would be a good exercise.
Title: Re: Add a new action list as a support ability?
Post by: Darkholme on November 26, 2014, 07:55:50 pm
Oh. I see what you mean. I hadn't realized that it was doing that.

Thanks for pointing me in the right direction.