How do I create a multiple dice app with different die (D6, D8, D10, D12, D20?)

Hello all,
I wanted to create an app that can do three things:

  1. Use different types of dice 6, 8, 10, 12, and 20 sided and use multiple die, not a single die.
  2. Select a random tank, soldier, monster card image at random
  3. Award random experience points or gold pieces (depending on the game)

I want to play RPG games and wargames solo. I live in a remote area and there aren’t players near me so this way the app works like a GM/DM

Can someone help me make this? I’m brand new and made a single die app but can’t figure out multiple die rolls, the random picture with hit points and info is easy, I think.
Thanks

Hi and Welcome to Thunkable!

I just made a 4-sided die roller, which is similar to what you already created.

  1. To create multiple die rolls, just use that same function/set of blocks but run it again and assign the resulting value to a different label (or variable).
  2. You’ll need to explain more about how this related to #1, if at all.
  3. You’ll need to explain more about how this related to #1 and #2, if at all.
1 Like

Here’s a demo (find the screen with your username):

https://x.thunkable.com/copy/60fb37b5742e8bc58525655a491228cd

dice_roll_AdobeCreativeCloudExpress

This video shows one way to make a list of images and pick a random one:

2 Likes

Thanks. I used that video for the first die app. I’ll try but I don’t think I understand. I’m really new.
Mike

Okay, I opened blocks and see how that works. I wanted to do an if/then
if 3d6 then 1-18. if 2d6, then 1-12 where I enter number of dice and type - like this picture (my version of a flow chart).

Okay, I opened blocks and see how that works. I wanted to do an if/then
if 3d6 then 1-18. if 2d6, then 1-12 where I enter the number of die and type - like this picture (my version of a flow chart).

You can do that with two List Viewers. The first would have the number of sides and the second would have the quantity.

Then you use the green “item” blocks to transfer the values to your expressions that generate the roll values.

Can you show me an example? I’m not understanding too well.

Take a look at the updated screen from that same project:

Thunkable (wrong link)

https://x.thunkable.com/copy/2b31fd458cd1d91e91ae80913f4fcf56

I’ve set it up so that the variable values are assigned based on what the user clicks in each List Viewer. Those variables could then be used to create each roll using a loop based on the number of dice and a random number block from 1 to the number of sides.

If you’re new to programming, this is going to take some time to create.

1 Like

I updated the link after I posted it just now so if you clicked immediately, you may see code that doesn’t quite work. Try it now and it should be fine.

Thank you for the assist. Checking it out now

It’s not letting me select the dice or number

Okay, it’s weird. It says I chose to roll 8-8sided dice but there’s only 3… Hmmmm Interesting

I think it’s confusing the number of dice with the number of sides. I’m getting 20-20, 6-6 etc in the summary

My apologies! I accidentally posted the old link again. Please try this one:

https://x.thunkable.com/copy/2b31fd458cd1d91e91ae80913f4fcf56

I see it now. Where’s the numbers from the die? Am I missing something or do I create the die roll feature like before?
Thanks again.

I didn’t create the full project. This is just more of a starter to give you an idea of how to let the user select each value.

The two demos on that screen are not yet connected in any way.

Yeah, I figured that out. Here’s what I made but I can’t seem to get the monster pictures to open and be scrollable. https://x.thunkable.com/copy/b25daccc86fe2202e138825ff03c94c1

I’ll have to try yours tomorrow and see if I can get the screen to expand and show the die numbers.

I really appreciate your help. For my first time, I think I did okay. Can I actually turn this into an app I use on my phone or for retail in the app store?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.