Variable Repeats via tags?

Hey, I'd like to create a script which functions like having the 'repeats' variable in the database be altered, based on a tag.

Like, if I were to have a tag which says <extrahit agi 25, 45> and a skill has 3 repeats, then it goes off 3 times, then a fourth time if the user has 25 agi, and a fifth time if the user has 45 agi.

I imagine this is probably going to be fairly easy for anyone who knows what they're doing.  If you do, could you help out someone who's trying to break into scripting?
I've moved this thread to Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
There's already a few extra hit rgss3 script out there. You should be able to find them in the master script list.

Original thread: https://forums.rpgmakerweb.com/threads/variable-repeats-via-tags.54345/