Help! Character creation in figma?

Hey! Me and my friend are looking for help for a Thesis project. We are making a website where depending on the answer you choose the character you have changes clothes and other elements.
Is there a way to make it in Figma? Has anyone tried? we saw some character creation files, but those make you choose manually the elements. We wanted a way to make it change based on the click of a button. if you have time, please help!