Hello everyone
I love tabletop rpgs and dice but I wanted to make something a little more streamlined for the plethora of dice I need, especially as a GM
However before I order hardware I wanted to make sure I understood the logic and button and random specific syntax
And yes I searched the forums but couldn't quite find my solution.
What I want to build is an arduino with at least 7 buttons representing d4,d6,d8,d10,d12, d20, d100,and an oled screen to display the results
The below code is just a basic syntax outline I'm writing on the fly to make sure I have the specific syntax abd logic down.
Feel free to offer advice..
Id like to eventually add a second display that my players can see for open rolls as Well as the ability to roll multiple dice and add the results, but I'm to novice for that.
Anyways, here's where I am
If buttond4 = HIGH
diceroll = random(1,4)
print(diceroll, "d4")
delay 750
Else If buttond6 = HIGH
diceroll = random(1,6)
print(diceroll, "d6")
delay 750
Else If buttond8 = HIGH
diceroll = random(1,8)
print(diceroll, "d8")
delay 750
** I realize I'm missing basic code syntax but that's not
really my issue. I know its bad form,bad habits!
Any help /advice would be amazing
Also any insight into doing 2 OLED and multiple dice at the same time would be great
I'm planning on 3D printing a pair giant dice eventually to encase 2 of these with, 1 GM and one for my players.
Once I get these done I'm going to tackle a hitpoint tracker but I figured this was far easier than trying to setup the user inputs abd hitpoints on level..
Thanks in advance!!