I'm trying to program a videogame using DeFold (Lua engine). The game is going to be a cross-platform false-3D (think oldschool pokemon) sprite-based game. I don't know how to use Lua, which is one important reason I want to make a game in it: I want to learn Lua in the process. Anyway, I have some questions about implementing character customization with sprites.

>what's my question
Let's say my game has a playable character -- Hermione Granger for instance. Normally if I was going the simple route in a game like this, all I'd have to do is create a set of sprites (atlas) representing Hermione's movements. I'd have sprite animations for her walking in every direction, casting spells, running, climbing, standing/idling, falling down, dying, etc. And maybe, I could make an alternate set of sprites for an alternate skin-- let's say in the event where she gets some of her clothes shredded by dark wizards. Again, I'd have to make the same set of animations (walking, running, casting, etc) for the alternate skin. My question is, what if I wanted to actually implement a real customization system? In other words, I want the character's appearance to undergo a wide variety of changes throughout the game, but I don't want to create 10 trillion variations of sprite animations. Like, let's say the user wants Hermione to have a different colored cloak, or maybe a different hairstyle, or a different hat. Or maybe wield a different weapon besides her normal wand or something. Do you guys have any advice for how to deal with this? is DeFold going to limit me from enacting this type of character appearance customization?

>my ideal scenario
I'd ideally want to have Hermione's body be its own sprite, and then maybe have her clothes and equipment somehow rendered independently on top of her main body sprite. Since I'm a novice, does anyone have any advice for how to do this in DeFold?