Resource icon

[Open Assets] [SRB2Infinity] SkinStats! v0.1_ALPHA

What permissions do you give others to modify and/or maintain your submission?
Modify: ASK ME - Maintain: YES - Others must ask me for permission before modifying my submission or use it in their own work, and I reserve the right to say no for any reason. I do, however, give permission for my entire submission to be maintained by others.
This addon is not for vanilla SRB2, and can only be used with SRB2Infinity.

SkinStats is an addon for Lat's SRB2Infinity that adds basestat modifications for every character in the SRB2's base cast! Every character has a different stat build, further modified by the type they play as, and their differences only grow as they become stronger, making each skin/type combination unique.

None of this would be possible without Lat', the creator of SRB2Infinity, who helped me understand various aspects of the mod and game me their blessing to release this addon with a modified version of their stat calculation code. Get SRB2I here!

Sonic's a glass cannon, having high PP reserves and Regen bonuses but paper-thin defenses. Dodging is paramount to keeping him alive.
(Stats listed in blue are lower than the base game, and stats in green are higher.)
ClassHPPPSATKRATKTATKDEFPP Regen
(less=faster)
Hunter225100231711615
Ranger20511511231764
Force17013011172363
Tails is a more balanced all rounder, while not as strong as the others he can easily fill in any role.
ClassHPPPSATKRATKTATKDEFPP Regen
(less=faster)
Hunter245901716121016
Ranger225100121716105
Force205110121617104
Knuckles is a powerhouse with high, focused ATK and DEF but low PP and Regen.
ClassHPPPSATKRATKTATKDEFPP Regen
(less=faster)
Hunter25070241381120
Ranger22585132481110
Force20010081324116
Amy's very powerful tech user with the highest TATK, PP, and Regen, and melee power to boot.
ClassHPPPSATKRATKTATKDEFPP Regen
(less=faster)
Hunter225110201215912
Ranger20012515122093
Force1751401572592
Fang is a trigger-happy, crafty gun/spellslinger, but needs to get in close from time to time to restock on PP.
ClassHPPPSATKRATKTATKDEFPP Regen
(less=faster)
Hunter24095182010821
Ranger2151108251589
Force1901258202087
Metal is an absolute tank with the highest HP and DEF, but is very unreliable with techs.
ClassHPPPSATKRATKTATKDEFPP Regen
(less=faster)
Hunter30060201501418
Ranger2507515205136
Force22590121510134

Adding new stat tables for modded characters

If you're planning on using this alongside other modded characters, you'll need to add a new stat table for each one you're using, otherwise SkinStats will throw errors when trying to load modded characters without them. Simply add the following into a LUA file, and plug in new values where necessary.
Lua:
PSO.info.SSinfo["skinname"] = {
-- change "skinname" to the skinname of your character
    [TYPE_HUNTER] = {
-- these stat values are ADDITIVE to the game's own base stats!
        hp = 0,
        pp = 0,
        satk = 0,
        ratk = 0,
        tatk = 0,
        def = 0,
        ppr = 0
        },
    [TYPE_RANGER] = {
        hp = 0,
        pp = 0,
        satk = 0,
        ratk = 0,
        tatk = 0,
        def = 0,
        ppr = 0
        },
    [TYPE_FORCE] = {
        hp = 0,
        pp = 0,
        satk = 0,
        ratk = 0,
        tatk = 0,
        def = 0,
        ppr = 0
        }
}
A template file is also included for making these stat tables if desired. While already noted above, stats in these tables do not overwrite SRB2Infinity's, but add to them when the original mod runs stat calculations. This way, if another addon or update to SRB2I changes basestats, SkinStats will still function as intended.

Known issues:
  • This addon overwrites the SRB2I original stat calculations. Attempting to load a character without a stat table will cause this addon and the mod itself to break. A fix for this is being worked on, but as a workaround you may create tables for a character with zeroes in every stat to replicate SRB2I's tables.
  • Switching characters at any point will cause odd behaviors until the next time SRB2I updates your stats. Notably, while the game will still display your basestats properly in the stats window, functionally you still retain the stats of the character you were originally playing with. This is also being worked on, but until then, if you want to have a Fang with the stats of Metal Sonic for a bit, go right ahead!

Special Thanks:
Lat': For helping me when I ran into problems with coding and pointing me in the right directions when trying to make this mod! This mod would not be possible without their help!
Author
Niko Reiesu
Downloads
244
Views
1,630
First release
Last update
Rating
3.00 star(s) 1 ratings

Share this resource

Latest reviews

Welcome to releases!
Upvote 0
Back
Top