Jump to content
UncannyBoots

Slightly randomized parameter increase on level up

Recommended Posts

When leveling up, I'd love it if the parameter doesn't just have a predefined increase, but instead can increase by a random number (say, 0-5) + the default increase.

So let's say at level 2, the ATK stat on a certain class raises from 10 to 11 by default. In this script, it would increase from 10, to either 11 or 12 or 13, 14, 15, 16, randomly generated. If the random number is 0, it will increase only by the default curve value, so in this case, going from level 1 to 2, it would only increase by 1. But, if the random number is 5, it would increase by 6. So: default parameter increase + random number, if that makes sense.

 

The only problem with this is that, then, the stat could be higher than what it is set to in the database. So how would that be fixed? Because, let's say that leveling up to level 3 gives you 12 ATK -- but with this script, the ATK was already raised to 13! I don't want the stats to ever downgrade when leveling up...

 

So my solution would be that for each class or actor, you would set the parameter scale curve in the notebox. So for example:

<param_curve>

[100, 9999, slow]  #MHP

[85, 8500, fast]  #MMP

[20, 500, medium]  #ATK

...

</param_curve>

 

The array for each stat would be like this: [level 1 value, level 99 value, increase speed]

And this would essentially just ignore the param curves set in the database.

 

This is a cool idea in theory but how difficult would this be to code? The custom parameter curve part seems especially hard to me, but would it be difficult to an experienced scripter? Is there a script like this that already exists?

 

Thank you for any help

 

EDIT: I forgot to add that depending on the speed of the parameter curve, the random number would be different. The faster the level up curve, the larger the maximum random number would be.

Like this:

Very fast: 0-20

Average: 0-10

Very slow: 0-1

That would make it a lot more dynamic depending on the parameter being increased

Edited by UncannyBoots

Share this post


Link to post
Share on other sites

Why ignore the param curves set in the database if you are just going to make a new one that works basically the same way? You already have a value for one, a value for 99, and a growth rate.

 

BTW, A good while ago I made a script that features semi-randomized stat ups. It's not the same thing you are talking about though since stats and levels are more or less independent of each other in it (levels only acting as an overall cap).

Share this post


Link to post
Share on other sites
9 minutes ago, Kayzee said:

Why ignore the param curves set in the database if you are just going to make a new one that works basically the same way? You already have a value for one, a value for 99, and a growth rate.

 

BTW, A good while ago I made a script that features semi-randomized stat ups. It's not the same thing you are talking about though since stats and levels are more or less independent of each other in it (levels only acting as an overall cap).

 

Sorry, it is kind of hard to explain.

Basically I don't want static parameter curves. I don't want the values to be the same every time you play.

And so I would like the values to be slightly randomized. And for that you would need a different kind of curve I think, because if using the default curve, it would be possible for your stats to go down. Imagine your stat is 16 due to this script, and the next level has it at 14. 14 + a random number. Imagine that random number turns out to be 0 or 1. That would make your stat go down when leveling up. The only solution to this I can think of is to ignore the default parameter curve altogether because the numbers simply won't align. Essentially the curve would have to be generated by some sort of equation that updates the next value depending on what the random number is.

But idk maybe I'm wrong lol, perhaps it's a lot more simple than I would think.

I'll definitely check your script

Edited by UncannyBoots

Share this post


Link to post
Share on other sites

You can have your stats be a random number between what the stat would be at x level and what it would be at x level + 1 or something. Or just... don't let your stats go down when you level.

Share this post


Link to post
Share on other sites
6 hours ago, UncannyBoots said:

I would like the values to be slightly randomized.

There is this script

The script is in the last post

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted