Skill formula help

Well not sure if this is the place to post but here it goes:

I am working on a small game in MV and starting and never finishing a few. Well for my stats between 1-20 I am wanting a basic kinda d20 setup. If I can get the 1-20 set up and working later down the line I wanted to make another set for 21-50. Where I am having trouble is making this into a damage formula. At the moment it is just Math.randomInt (20)+(stat). What I want to do is set it where depending on what the corresponding stat value is they receive a +/- depending on what the stat actually is.

(Sorry for being so long winded.) Any tips or hints would be much appreciated.!!!
Do you mean you want roll bonuses based on the base stat?
Yes I apologize for the bad explanation.
General Discussion is for looking at aspects of game making as they might apply to several games. "How do I...?" questions belong in the Support forum for the engine you are using.

Moved to: RPGMaker MV
Thank you, I will make sure to find the correct one next time.

Original thread: https://forums.rpgmakerweb.com/threads/skill-formula-help.77719/