Vaiku Posted January 23, 2022 Share Posted January 23, 2022 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. Â Â Link to comment Share on other sites More sharing options...
Cheshire Posted January 24, 2022 Share Posted January 24, 2022 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. Link to comment Share on other sites More sharing options...
Vaiku Posted January 24, 2022 Author Share Posted January 24, 2022 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.  Link to comment Share on other sites More sharing options...
Cheshire Posted January 25, 2022 Share Posted January 25, 2022 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now