Can you change skills/states/classes details in game with scripts?

So it looks like you can change almost everything about an actor with scripts so you could Event allowing the player to change almost everything about an actor/character as part of character customization.

But what if you wanted to allow the player to make their own Skills or States? Like you wanted to allow the player to make their own spells and the effects that they have?

I am thinking of something like how you can make a spell in Morrowind. You name it, you choose its effects, damage, element type, mana cost, etc.

Is it possible to change all of the things that you would set in the database for a placeholder skill or state with scripts?

I can see where you can get all of that information to reference about the skills from the database, but I don't see how you could change that inside the game.

Would something like this be impossible in MZ?

Thanks!
My game is going to have a system like this, so obviously yes.

However, just modifying the $data objects themselves directly is inadvisable, as you then affect every instance of it that's ever used, and it doesn't persist in saves.
@Trihan Thanks, Trihan! Knowing that it is possible is nice. I am sure it is way beyond me right now, but I was curious if it was even possible and something I could work toward.

My alternative to changing the database is to experiment with Eventing something for a custom combat system.

Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/can-you-change-skills-states-classes-details-in-game-with-scripts.153807/