Discuss Scratch

danec_qwerty
Scratcher
39 posts

Scratch 3 Dictionary (Key/Value) Extension

(when you die [ v])
danec_qwerty
Scratcher
39 posts

Scratch 3 Dictionary (Key/Value) Extension

play sound [ v] until dead
danec_qwerty
Scratcher
39 posts

Scratch 3 Dictionary (Key/Value) Extension

die for (2) secs
be sus for (2) seconds

end life
My browser
/ operating system: ChromeOS 14695.107.0, Chrome 102.0.0.0, No Flash version detectedhttps://scratch.mit.edu/discuss/topic/330289/page=5#post6405214https://www.blooket.com/playCreateExploreIdeasAbouthttps://cdn.i-ready.com/instruction/game-catstacker/1.6.x/2/
be danec qwety 786t787657865
/scratchblocks]
Olivia_AM
Scratcher
100+ posts

Scratch 3 Dictionary (Key/Value) Extension

Travel to [1980 v]
binhminhvn2
Scratcher
1 post

Scratch 3 Dictionary (Key/Value) Extension

Sets key (hello) of dictionary to value (world
dungeon1902
Scratcher
6 posts

Scratch 3 Dictionary (Key/Value) Extension

JGames101 wrote:

venyanwarrior wrote:

Any way I can see the extension code? I'm trying to get into making Scratch extensions and I'm looking at 3.0 extensions to see how they work.
Here's the code:
https://gist.githubusercontent.com/jamesbmadden/a94227a2e1aaa467032649f9c87fa3f7/raw/843d8d0c03ffd958da93ba51d45acf56d1343a0d/dictionary.js
Ignore the icon variable at the top, it's an image encoded as a string.

Hey! The provided link doesn't work for me ^^'
cookieclickerer33
Scratcher
1000+ posts

Scratch 3 Dictionary (Key/Value) Extension

The last block would be impossible to use because it’s just a drop down

You wouldn’t be able to drag it because it’s a drop down
DragoCuven
Scratcher
61 posts

Scratch 3 Dictionary (Key/Value) Extension

JGames101 wrote:

This extension adds new blocks to allow for scratch to have Maps/Dictionaries, like most programming languages. The name is undecided, as “Map” may make people think that it gives a map of a location. It's currently dictionary, but that might give users the idea that it give you word definitions.

New Blocks:

set [hello] of [my dictionary v] to [world] :: #ef5350 // Sets key (hello) of dictionary to value (world)

change [hello] of [my dictionary v] by [!] :: #ef5350 // Will add to a number or add on to the end of a string

get [hello] of [my dictionary v] :: #ef5350 reporter // "world!"

[my dictionary v] :: #ef5350 reporter

// All inputs accept variables!

Issues:
  • You can't yet add a new dictionary, “my dictionary” is the only choice
  • Scratch 3 has a bug where reporters from URL extensions don't work. I'll be looking into that more
  • Dictionaries are not saved to the project. I'm looking into how to get around that.

You can try it using @Sheep_tester's Scratch 3 Extensions Loader at https://sheeptester.github.io/scratch-gui/?url=https://jamesbmadden.github.io/scratch-extensions/dictionary-stable.js

its not working anymore. did you upload it somewhere else?
showierdata9978
Scratcher
100+ posts

Scratch 3 Dictionary (Key/Value) Extension

Stop necroposting

Powered by DjangoBB