- Joined
- Aug 15, 2013
- Messages
- 72
- Reaction score
- 32
- First Language
- English
- Primarily Uses
- RMMV
Hello all!
I'm looking to make some "easy of access" methods for the Skill Damage Formula. The damage formula I'm planning on using are based a lot of D&D, so there are a lot of "dice rolls" rather than calculating a direct number and just varying it by a certain percentage.
Rather than writing out Math.round(rand() * 6) for a d6 every time (I know that's probably wrong, just pseudocode), it would be easier if I could just write out d6() to get a random number between 1-6. Anyone know how I could do that.
I should clarify, it's not the contents of the function I need help with (i.e. I know how to get a random number), it's actually being able to access the method from the Skill Damage Formula section.
I'm looking to make some "easy of access" methods for the Skill Damage Formula. The damage formula I'm planning on using are based a lot of D&D, so there are a lot of "dice rolls" rather than calculating a direct number and just varying it by a certain percentage.
Rather than writing out Math.round(rand() * 6) for a d6 every time (I know that's probably wrong, just pseudocode), it would be easier if I could just write out d6() to get a random number between 1-6. Anyone know how I could do that.
I should clarify, it's not the contents of the function I need help with (i.e. I know how to get a random number), it's actually being able to access the method from the Skill Damage Formula section.
