G r/GameDevelopmentu/Thesnipesully1 Apr 2022 Code modification: current rolls for gold chest are 1 in 158. How do I lower this to something like 1 in 2? More info in comments Question Not downloaded yet 0 points2 commentsSaveSavedHideHiddenCopy linkHideHiddenCopy linkOpen on Reddit About this post Posted1 Apr 2022 Archived31 May 2022 Score0 · 50% up KindImage IDtu2qu7 AuthorT u/Thesnipesully 6posts1comments1media View profile
ThesnipesullyOP1 Apr 2022 I have tried adjusting the “1 in 158” line to something lower, but this does not lower the odds anymore. I have a few months of coding, but changing values on rolls is something that’s completely clueless to me. 1 pointsCopy link
buddroyce1 Apr 2022 Take the output number and use the modulus operator and check if it’s odd or even. That will turn your result a 1 in 2. 1 pointsCopy link
2 comments
I have tried adjusting the “1 in 158” line to something lower, but this does not lower the odds anymore.
I have a few months of coding, but changing values on rolls is something that’s completely clueless to me.
Take the output number and use the modulus operator and check if it’s odd or even. That will turn your result a 1 in 2.