This is a port from a post on the scratch topic The Obscure MIT Project by Lifelong Kindergarten of Scratch, "Let's Chance." Let's add it to Scratch Lab! - Discuss Scratch

This has all the info you need on let’s chance

Some of the formatting is messed up due to scratch fourms and snap forums having different bb code and rings not working on this forums scratchblocks

Let’s Chance Snap Remake

This is the post dedicated to the snap remake of let’s chance by me!

You can access the project here!

if you don’t know why this isn’t it’s own topic see here

Or if you are wondering why this was ported look at the posts below it

Notices and information

I figured out a way to make the blocks have a drop-down that auto updates when a new dice is created! Let me know if you would like to see that!

Features:

*The basics*

There are 2 types of dice, basic and weighted

Most blocks support both basic and weighted dice

$nl is a new line character in a block, this can’t be done with the fourms plugin

The basic blocks you’ll be using the most are the following:

[scratchblocks]

New dice named [new dice] with [1] [2] [3] [4] [5] > ::pen

[/scratchblocks]

Adds a basic dice to the “dice” category of the editor, if a dice with the same name already exists it will be overwritten with the data of the new dice

[scratchblocks]

Set odds of dice ({} ring ::grey) $nl to (1) (2) (3) (4) (5) > ::pen

[/scratchblocks]

Turns a basic dice into a weighted dice, if the inputted dice is already a weighted dice then it overwrites the odds with the new ones

[scratchblocks]

(Roll dice ({} ring ::grey)::pen)

[/scratchblocks]

Rolls a basic or weighted dice

*The more complicated*

These are the more complicated blocks, they do the following:

[scratchblocks]

(Roll dice ({} ring ::grey) $nl with odds (1) (2) (3) (4) (5) > ::pen)

[/scratchblocks]

Rolls a basic dice with weights, if the dice is weighted already overwrites the weights with the new ones

[scratchblocks]

(Add onto dice ({} ring ::grey) $nl odds (1) (2) (3) (4) (5) >::pen)

[/scratchblocks]

Adds weights onto a basic dice without setting the pallet dice, if the dice is weighted already overwrites the weights with the new ones

[scratchblocks]

(Number dice from (1) to (10)::pen)

[/scratchblocks]

Returns a dice with the values of every whole number on the range provided

[scratchblocks]

Delete dice ({} ring ::grey)::pen

[/scratchblocks]

Deletes a pallet dice

*The multi functionals*

There’s 2 multi functional blocks

The first one is

[scratchblocks]

(Special dice [ v]::pen)

[/scratchblocks]

It has 3 menus

costume

sound

sprite

All of these submenus have the option to get the item itself or the name of the items (in snap sounds costumes and sprites are data types, a sound and it’s name are not the same thing)

The second one is

[scratchblocks]

([ v] of ({} ring ::grey)::pen)

[/scratchblocks]

This has 2 submenus, the first one has:

Values: returns the outcomes of the dice

Odds: returns the chance of each outcome

Rarest: returns the least likely outcome(s) of a dice roll

Likely: returns the most likely outcome(s) of a dice roll

Type: returns “basic” or “weighted” based on the type of dice

Flipped: returns the dice but with the order of the odds reversed

And the second has:

Dice: returns any sized list/table as a dice

Weighted dice: returns a weighted dice based on any sized list/table from the amount of time each item repeats

Rotated: returns the inputted list rotated 360°

Block: returns the provided list (NOT table) as a “list” block

Not empty: removes empty list items

*Misc blocks*

There’s a few miscellaneous blocks

[scratchblocks]

Save ({} ring ::grey) as dice named [new dice]::pen

[/scratchblocks]

Saves the provided dice as a palette dice

[scratchblocks]

Paint odds of dice ({} ring ::grey) $nl Width: () Height: ()::pen

[/scratchblocks]

Draws the values and odds of a dice as a bar chart onto the stage using the pen

[scratchblocks]

(Costume from odds of dice ({} ring ::grey) $nl Width: () Height: ()::pen)

[/scratchblocks]

Same as previous but returns what would have been drawn as a costume

Conclusion

This is mainly to give people something to do while we wait for a response from scratch team or the creators of LC

If you have any ideas on what could be added leave it on my profile to not clutter this fourm!

Any updates will be added onto the main topic as edits

Time: ~1.5 hours to write

Text: 4244 characters