Creating a Idle Game system

Twine Version: Sugarcube 2.36.1

Quick question for anyone interested answering.
Anyone have a idea on how to make a Idle Game in Sugarcube. Kinda like Cookie Clicker.

I have a idea for what I want to create, just need to build the code for the said idea.

Last year’s Comp had Approaching Horde which had an idle element during its game play. And Proto Sum had that clicker one.

You’d probably need something like <<repeat>> (Docs) as the base of your code and some sorts of buttons to add/buy things. For the rest, it would probably depend on what you are making.