Having moves effect Stats

So I’m trying to get a list of moves to effect my stats. For instance, if you have “Punch” equipped then it would increase a specific stat, and if you have it unequipped then it would lower that stat again. This would be like if you were just equipping an item like a sword for extra strength, but I also need the move to deal damage according to the strength that you would have. Does anyone have an idea how I can do this?

As you equip / unequip moves, re-calculate the value of modifiers based on your equipped moves. Then use these modifiers in your damage formulas and so on.

Based on this question, I am assuming you are on the beginner end of making games. I recommend you do more studying and practice with the basic concepts as much as you can. Look for source of Lua games (search love2d or corona on github) and read the source to get an idea of how different problems can be solved (does not mean their methods are good, but reading source code is still very important) to help you build a toolkit so when you face problems like this you know immediately what to do.