Random x Attack Times?

Pretty sure I need a script for this and since I know next to nothing about RGSS3 I'd like to ask if anyone could whip one up for what I need:

Essentially it would work like this. A skill would call up a variable, this variable is a random number between, for example, 1 to 6. Once a number is selected, the game changes the skills attack times (called Repeats in the database) to this number. 

So, say it was exactly the same as your regular attack. You perfrom the skill to attack, the dice rolls and the variable becomes 3. Your attack hits three times. If it become a 5, you attack five times and so on.

Obviously the number is re-rolled each time the skill is used.

If a script like this exists please point it out!

Thanks

PS. I'm somewhat sure I can do this with variables and common events but I wonder if a script might streamline this process a little as it takes a lot of fidgeting around with events and stuff for each skill that would use such a system.
http://forums.rpgmakerweb.com/index.php?/topic/7264-random-repeats/


Well there's this
You're a doll.

I'd high five you but you can't upload/download highfives yet.

Thanks. 🙂
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/random-x-attack-times.21049/