Pigot Posted May 5, 2017 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!
0 jcsnider Posted May 7, 2017 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
0 SonicMicro234 Posted May 5, 2017 Posted May 5, 2017 That might take a source edit my friend. Currently not available in the current state.
0 Pigot Posted May 5, 2017 Author 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?
0 Phenomenal Posted May 6, 2017 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
0 Phenomenal Posted May 6, 2017 Posted May 6, 2017 @Pigot You did it? if so mind posting it here for future users?
0 eins Posted May 6, 2017 Posted May 6, 2017 The damage ist actually random by default. Just look at the formulas.xml.
0 Pigot Posted May 7, 2017 Author 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
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!
10 answers to this question
Recommended Posts