I altered the stat point formula for the game, and it is working like I wanted it to, except for one thing. When a player reaches max level (201 for me), I want the game to give them 217 extra stat points to play with. Can anyone see the error in my formula, or perhaps I'm missing a flag I need to create? Is there a way to make a separate command line that says "At this level, give all characters this many extra stat points to raise stats with"?
Here's my coding, and the coding I based the formula off of (the stat cost formula, which is below my stat point gain formula, works with addressing different level ranges):
I've tried adjusting the stat point gain to one level lower (200) and it still didn't give the extra (+217) stat points I was looking for. It keeps using just the ((level / 10) + 5).
Thanks for any useful feedback. Also, I'm not looking to add that many stat points to lv. 1 characters or transcendents, as that would be too much of a boost in stat points for me for lower level characters, so those paths are not an option.
Question
Humble_Bee
I altered the stat point formula for the game, and it is working like I wanted it to, except for one thing. When a player reaches max level (201 for me), I want the game to give them 217 extra stat points to play with. Can anyone see the error in my formula, or perhaps I'm missing a flag I need to create? Is there a way to make a separate command line that says "At this level, give all characters this many extra stat points to raise stats with"?
Here's my coding, and the coding I based the formula off of (the stat cost formula, which is below my stat point gain formula, works with addressing different level ranges):
int pc_gets_status_point(int level)
{
if (battle_config.use_statpoint_table) //Use values from "db/statpoint.txt"
return (statp[level+1] - statp[level]);
else //Default increase
return (((level) < 201) ? ((level / 10) + 5) : ((level / 10) + 217));
}
// The above is the "gain stat points" formula. The below is the game's Renewal stat point cost formula.
#ifdef RENEWAL_STAT
/// Renewal status point cost formula
#define PC_STATUS_POINT_COST(low) (((low) < 100) ? (2 + ((low) - 1) / 10) : (16 + 4 * (((low) - 100) / 5)))
I've tried adjusting the stat point gain to one level lower (200) and it still didn't give the extra (+217) stat points I was looking for. It keeps using just the ((level / 10) + 5).
Thanks for any useful feedback. Also, I'm not looking to add that many stat points to lv. 1 characters or transcendents, as that would be too much of a boost in stat points for me for lower level characters, so those paths are not an option.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.