I wanted to try out using Perchance for one of my hobbies which is Warhammer. Wanted to try out making a dice roller. I got the user input on how much dice they are rolling, but after that I am a bit lost. Parts I need help on are how to make them roll like 10 different dice and show the individual values, how I can add individual d+1, make affected rolls, etc. would also want to add lockable list to lock certain rolls. I know what I want to do but implementation is a bit of an issue.

  • allo
    link
    English
    16 months ago

    glad you are trying out perchance!

    here’s the first thing that comes to mind:

    <input type="number" min="1" value="1" oninput="numDice = Number(this.value)" placeholder="Number of dice..."/>

    may be more enjoyable than your current one :) here is an example with only this change

    • allo
      link
      English
      1
      edit-2
      6 months ago

      edit: and was going to go farther but really i have no idea in perchancescript! :)