How to make properties with the sum of other properties and compare properties

I am trying to make a Yahtzee game, and I am struggling with the scoring. Right now I am trying to get the upper section and chance, but I can’t check how many rolls are a certain value or get the total value of the dice. (roll values stored in properties)

checkers
you could search up guides on checkers here
the device

1 Like

Yeah, I might have to do that, but I’m not sure how that would work for the chance.

also search up guides here on chance
sorry
I misunderstand you

1 Like

No, like the value in yahtzee, where it takes the sum of all the dice rolls

In a trigger make it add the properties and make that number into another property.

1 Like

Yeah, when I do that it won’t let me add the properties. I’ve tried using the get property block, but I’m not sure if that’s how to do it.

you could use block code like

Set 'Roll1' to Random Integer from 1 to 6
Set 'Roll2' to Random Integer from 1 to 6
Set 'Roll3' to Random Integer from 1 to 6
Set 'Roll4' to Random Integer from 1 to 6
Set 'Roll5' to Random Integer from 1 to 6
Set property: roll_sum
Value: 'Roll1' + 'Roll2' + 'Roll3' + 'Roll4' + 'Roll5'
2 Likes

Yeah, the tricky part is to keep those values so the player can select other boxes, so the variables wouldn’t work, as those don’t carry over.

1 Like

then use properties instead of variables

1 Like

that’s the problem I’m running into; I can’t seem to add the properties together.

you’ll have to use the Get Property Block

Yeah that didn’t work



This is my setup for that

show me what the problem is

I don’t know, it just doesn’t update the score property

do you have a counter updating it as well?

I don’t, how should I go about updating it if I did?
Also, I’m about to lose internet in a few minutes, so don’t expect my to respond for ~30min

Idk how you could incorporate this, but maybe something like this?

2 Likes