So, what I was thinking for my game was for a more DnD-esque mode of combat.
What I mean by that is everything is controlled by die rolls. I.e., the Warlock's Darkspiral Aura ability deals 1d6. How would I go about making this?
To simulate a d6 roll, make the damage formula Math.floor(Math.random(6)) + 1 which will produce a random number 1 through 6 inclusive.
okay, so, just trying to make sure I have this right before I mess it up.
Math.floor(math.random(12)) + Math.floor(math.random(12)) + 2 would make a 2d12?
Actually.
Math.randomInt(max) is not accurate. That generates a number from 0 to MAX.
So for 1d12 you want Math.randomInt(11)+1
or you could just do: math.randomInt(1, 12) (or MIN , MAX)
Mrgrgr... Still doing 0 :/
I should have noticed that, lol XD
Thanks, Mr. Trivel! Sorry you had to walk me through that so slowly. Shoulda been obvious. :/