Users browsing this thread: 1 Guest(s)
Stat Increase Items!

#1
Posts: 175
Threads: 11
Thanks Received: 10
Thanks Given: 8
Joined: May 2013
Reputation: 13
Status
Well-Fed
Title: Stat Increase Items
Author: GrayShadow
apply to FF3us1.0
Download


So, I was talking about this in the Shoutbox a couple of days ago, and I finally got the code commented to my satisfaction. ;) This isn't actually an .ips file, because the code's not game ready -- this is designed to be incorporated into a more extensive hack, not least because it requires overwriting existing items.

But! Without further ado, I present: Stat Increase Items!

The items as-is operate in two ways: one, like the Sources in FF7, increase Vigor, Speed, Stamina, and Magic by one point each time they're used, although in the code as distributed they cap at 128 (this is easily altered if you want to increase/decrease the cap; check the comments in the .asm file); two, like Golden Apples and Soma Drops in FF4, items that increase HP by 100 or MP by 10.

These properly account for HP/MP boosting items; each base HP/MP increase will automatically incorporate a character's existing HP/MP boosts and will also properly adjust those extra points when the equipment is removed. This can cause an interesting non-glitch if you max out the stats while they're equipped, as it can look like you're still using an item on a character with maxed stats -- but they're really increasing the non-maxed base stat, regardless what the equipped boosts have the character at.

Likewise, though it's not as immediately obvious (because you have to check the status screen/equipment screen to see the updated stats), the Vigor/Speed/Stamina/Magic items cap at 128 /base/ stat, not adjusted. Increases from equipment can bring you above that value, as they can with esper bonuses in the vanilla game (which, IIRC, are also capped at 128).

Included in the .zip are the .asm code, the readme, and two screenshots with suggested FF3usME options selected for the items.

AS A NOTE: The code as-is overwrites Rename Card functionality; if there's demand for it, I can look at ways around that, but I figured... y'know. Rename Cards. Who uses those, anyway? ;)

The readme follows:
Code:
Title: Stat Increase Items
Author: GrayShadows (in.the.afterlight@gmail.com)
Version: v1.0
Applies to: FF3us v1.0
Tested on: FF3us v1.0

Contents: StatUp.asm
          StatUp-readme.txt
          StatUp-1.png
          StatUp-2.png

Urgency: None, unless you want these items for a hack you're
         developing.

-----------------------------------------------------------------
Description:

Stat Up Items introduces code that will permanently boost
character stats with items, like the Sources in FF7 or the Golden
Apples and Soma Drops in FF4. The patch is being distributed as
an assembly file because it's intended to be included in more
extensive hacks, rather than as a stand-alone; it requires
replacing existing items, as it doesn't extend the item list,
although if there is enough interest I will look into how one
might do so -- although that might be beyond my current ASM
abilities.

To patch the .asm into your ROM, use xkas; I recomment FF3usME to
modify the items names, etc. Screenshots have been included with
recommended item settings, although obviously you can name them
whatever you want.

NOTE: This patch currently overwrites the functionality used by
Rename Cards, rendering them defunct -- this frees up an item ID
($E7) that can be used for one of the Stat Increase items,
though, and they're /rename cards/, so that shouldn't be much of
a problem.

-----------------------------------------------------------------
What this patch does:

By overwriting a check for the Rename Card item ID, this code
allows a jump to a new block of code (at C3/F200, in a large
chunk of free space) that checks against a series of six item
IDs to see if the item being used will permanently increase the
associated stat for the character upon whom it's being used.

This patch does NOT modify any items names, descriptions, or
properties. It is intended to be incorporated in a larger hack.
Existing items will need to be overwritten, and their IDs
written into the code in the .asm file where currently there are
placeholder IDs (#$01 through #$06).


-----------------------------------------------------------------
Updates:

v1.0 - July 8, 2013


-----------------------------------------------------------------
Credits:

Madsiur, for pointing me to the Rename Card check in the first
place, and Imzogelmo, Lenophis, assassin, Dragonsbrethren, and
Novalia Spirit for the C3 disassembly at slickproductions.org.
This code would not have been possible without them.


Current Project: FF6: Tensei | Discord ID: TristanGrayse
  Find
Quote  
[-] The following 3 users say Thank You to GrayShadows for this post:
  • Gi Nattak (07-08-2013), Morendo (04-17-2020), Robo Jesus (12-27-2017)

#2
Posts: 3,969
Threads: 279
Thanks Received: 236
Thanks Given: 57
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Nice work!
  Find
Quote  

#3
Posts: 175
Threads: 11
Thanks Received: 10
Thanks Given: 8
Joined: May 2013
Reputation: 13
Status
Well-Fed
Thanks! It took me way too long to track down a problem with the code -- turns out there's a really big difference between $3FFF and #$3FFF. Wink (I mean, I knew that going in; I just hadn't realised I'd typed the one and not the other. Silly typos, breaking my code like that.)


Current Project: FF6: Tensei | Discord ID: TristanGrayse
  Find
Quote  

#4
Posts: 259
Threads: 3
Thanks Received: 5
Thanks Given: 1
Joined: Jun 2013
Reputation: 6
Status
None
It's extremely tempting to try and use this with my mod, but the way we've balanced the game would make me have to restrict the ever-loving hell out of them.

Excellent work, all the same, though.
Quote  

#5
Posts: 175
Threads: 11
Thanks Received: 10
Thanks Given: 8
Joined: May 2013
Reputation: 13
Status
Well-Fed
I think they're most useful for hacks that don't have other methods of stat increase -- either the esper system, or hacking in a stats-up-at-level-up system. You're right, too much chance of overpowering otherwise. Wink But thank you!


Current Project: FF6: Tensei | Discord ID: TristanGrayse
  Find
Quote  

#6
Posts: 763
Threads: 83
Thanks Received: 55
Thanks Given: 7
Joined: Apr 2015
Reputation: 22
Status
Obliviscence
I like this system better than the esper+level-up system, unfortunately, my hack necessitates me staying as close to the original as possible. If I ever do another hack tho, this will definitely be how I do things. Still... maybe...
  Find
Quote  

#7
Posts: 290
Threads: 3
Thanks Received: 40
Thanks Given: 1
Joined: Apr 2012
Reputation: 9
Status
None
I'd probably give these a whirl Wild ARMS-style, where they used stat-boosting apples as a supplement to natural stat growth, either to further enhance strengths or cover up weaknesses. I think it'd be rather difficult to balance if this is your only means of boosting stats to any significant degree.

Still, well done getting a pretty difficult hack working properly.

I hope you don't mind me saying, but there seems to be a lot of redundant code (primarily for the four main stats) that could probably be made into a separate function. For instance, $001B,Y is identical to $001A,(Y+1). The esper bonuses at C2/6198 are a good example of this in action.


GET A SILK BAG FROM THE GRAVEYARD DUCK TO LIVE LONGER.

Brave New World
  Find
Quote  
[-] The following 1 user says Thank You to Synchysi for this post:
  • GrayShadows (07-09-2013)

#8
Posts: 175
Threads: 11
Thanks Received: 10
Thanks Given: 8
Joined: May 2013
Reputation: 13
Status
Well-Fed
Synchysi Wrote:I hope you don't mind me saying, but there seems to be a lot of redundant code (primarily for the four main stats) that could probably be made into a separate function. For instance, $001B,Y is identical to $001A,(Y+1). The esper bonuses at C2/6198 are a good example of this in action.

I don't mind at all! I've only been working with assembly for a few weeks at this point, so while I was pretty sure there was a way to make it more efficient, I hadn't managed to work out /how/. I'll take a look at that esper bonus code and see if I can wrap my head around it, so thanks for the address!


Current Project: FF6: Tensei | Discord ID: TristanGrayse
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite