i’m looking to make a generator to store ttrpg stat blocks, and use buttons to roll ability checks, saving throws, etc. the 5e stat block generator template with the drop-down menu seems like a good starting point, but since the cards are generated on the fly rather than being static in the html, i don’t know how or where i’d put the code together to add buttons with little output fields below them for the rolls to go.
thank you in advance for helping! i’m very grateful for the help i’ve received so far and for any i receive in the future! <3
this is the generator i thought would be a good starting point: https://perchance.org/stat-block-with-drop-down-example#edit
by default, it has the ability to display stats within the cards, but i wouldn’t know where to begin in editing the code of that to include buttons for rolling with the modifiers of the inputted stats.
Can you give like a ‘skeleton’ of what it would be like?
In the generator, on the left side, here are the parts you will edit:
Here is where they would display on the output.
If this is your first time in Perchance, I recommend looking through the tutorials (Perchance Tutorial and Perchance Examples or Perchance Snippets) to understand the syntax of the code.
oh dear oops i completely forgot that i’d asked for help earlier! i’m sorry! i’ve decided to move to a less complex project for the time being and come back to this one another time. but thank you very much for trying to help! :0