Pigot Posted May 5, 2017 Share Posted May 5, 2017 Hey! Â How to put a random damage between a number? For example: My damage is 10, the hit would be 7 or 8, 9, and 10 (Not always 10 at all hit) I hope you understood, and sorry for my bad English. Â Thanks! Link to comment Share on other sites More sharing options...
0 jcsnider Posted May 7, 2017 Share Posted May 7, 2017 Assuming physical/magical damage and that you are using default formulas.xml  I believe your damage values are too small for the randomization to matter. If you plug everything in I bet you get a range between 9.6 and 10.4 which both round to 10.   You can change the formulas.xml file if you want a different formula with greater randomization.   Phenomenal and Pigot 2 Link to comment Share on other sites More sharing options...
0 SonicMicro234 Posted May 5, 2017 Share Posted May 5, 2017 That might take a source edit my friend. Currently not available in the current state. Link to comment Share on other sites More sharing options...
0 Pigot Posted May 5, 2017 Author Share Posted May 5, 2017 Just now, SonicMicro234 said: That might take a source edit my friend. Currently not available in the current state. Nor in formulas.xml? Link to comment Share on other sites More sharing options...
0 Pigot Posted May 6, 2017 Author Share Posted May 6, 2017 No one? Link to comment Share on other sites More sharing options...
0 Phenomenal Posted May 6, 2017 Share Posted May 6, 2017 @Pigot You can't do more than math in the formula file afaik so unless it's already done you can't call random numbers. Pigot 1 Link to comment Share on other sites More sharing options...
0 Pigot Posted May 6, 2017 Author Share Posted May 6, 2017 I got it, thanks Link to comment Share on other sites More sharing options...
0 Phenomenal Posted May 6, 2017 Share Posted May 6, 2017 @Pigot You did it? if so mind posting it here for future users? Link to comment Share on other sites More sharing options...
0 eins Posted May 6, 2017 Share Posted May 6, 2017 The damage ist actually random by default. Just look at the formulas.xml. Link to comment Share on other sites More sharing options...
0 Phenomenal Posted May 7, 2017 Share Posted May 7, 2017 @eins I thought it was lel  Link to comment Share on other sites More sharing options...
0 Pigot Posted May 7, 2017 Author Share Posted May 7, 2017 5 hours ago, jcsnider said: Assuming physical/magical damage and that you are using default formulas.xml  I believe your damage values are too small for the randomization to matter. If you plug everything in I bet you get a range between 9.6 and 10.4 which both round to 10.   You can change the formulas.xml file if you want a different formula with greater randomization.   I already edited the formulas, but I really do not know how to improve de randomization Link to comment Share on other sites More sharing options...
Question
Pigot
Hey!
Â
How to put a random damage between a number? For example: My damage is 10, the hit would be 7 or 8, 9, and 10 (Not always 10 at all hit)
I hope you understood, and sorry for my bad English.
Â
Thanks!
Link to comment
Share on other sites
10 answers to this question
Recommended Posts