Jump to content

Pointers for adding/changing "Bonus Stat Range" to modify the the stats by a percentage, respective to their base value?


Recommended Posts

Posted

Looking for pointers as to where i'd start messing w/ the source to adjust how the bonus stat range is applied. I want to make it a percentage of each stat's base value on the item..

 

for example: a weapon with 100 attack and 30 speed - I would like to randomize the roll by +-20%, so that the possible outcomes are 80-120 attack, and 24-36 speed.

 

 

Posted

I would honestly suggest looking at how the current system is implemented and either piggyback off of it or replace it if you want to keep it simple.

Posted

That's the thing. I've tried modifying everywhere I see random being used to iterate.. mapinstance for drops (i think), then player.cs where the stats are tallied up from equipment, no luck.  

Posted

I'm sorry, but "I tried something and it doesn't work" is a rather difficult problem to diagnose.

Maybe if you shared what you've done exactly someone can give some input?

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
×
×
  • Create New...