oh, okay.
Offline
ScratchReallyROCKS wrote:
The difference between your block and my block is that mine uses the whole value of the variable, yours uses what the variable contains, not the whole value.
Hey, since this thread got disinvited on the Panther dev forum, I'm replying here -- tell me if there's a better place:
I think my example misled you. I was envisioning that the variable contains a letter, not a whole word, and my example block was asking "is this letter a vowel?" The slots that had <a> <e> <i> <o> <u> could have entire words or sentences (or even lists!) so we could say
<person> IS ONE OF <john lennon> <paul mccartney> <george harrison> <ringo starr>
in a predicate function [IS <person> A BEATLE?]. Here's the complete implementation of the block:
All the individual choices on the right side of the block are automatically put into a list by BYOB, and the IS ONE OF block just uses a CONTAINS block with the list first and the variable second.
So, I'm pretty sure this is what you wanted. If not, please clarify with an example. Thanks!
Offline
bharvey wrote:
ScratchReallyROCKS wrote:
The difference between your block and my block is that mine uses the whole value of the variable, yours uses what the variable contains, not the whole value.
Hey, since this thread got disinvited on the Panther dev forum, I'm replying here -- tell me if there's a better place:
I think my example misled you. I was envisioning that the variable contains a letter, not a whole word, and my example block was asking "is this letter a vowel?" The slots that had <a> <e> <i> <o> <u> could have entire words or sentences (or even lists!) so we could say
<person> IS ONE OF <john lennon> <paul mccartney> <george harrison> <ringo starr>
in a predicate function [IS <person> A BEATLE?]. Here's the complete implementation of the block:
http://cs.berkeley.edu/~bh/isoneof.png
All the individual choices on the right side of the block are automatically put into a list by BYOB, and the IS ONE OF block just uses a CONTAINS block with the list first and the variable second.
So, I'm pretty sure this is what you wanted. If not, please clarify with an example. Thanks!
You're right. That is what I wanted, but it's a little more complicated than I hoped.
Oh also, I thought of an idea for BYOB, you should be able to make lists for custom in the block editor blocks.
Offline
ScratchReallyROCKS wrote:
Oh also, I thought of an idea for BYOB, you should be able to make lists for custom in the block editor blocks.
Maybe we should move this to the BYOB forum, but you can make lists in the Block Editor. But we're trying to wean people away from the idea that lists have to have names associated with them, especially when there isn't going to be a list watcher on the stage for these block-local lists anyway. So you say
MAKE A VARIABLE (name=whatever)
SET <whatever> TO [LIST <a> <b> <glorp> ...]
or even better (because the making of the variable is part of the script) you say
SCRIPT VARIABLES <whatever>
SET <whatever> TO [LIST <foo> <bar> <garply> ...]
Offline
u missed jaguar by me, ScratchReallyROCKS, and meew0 website is my sig

Offline
UPDATED and don't use my thread as a developmental thread please, please just post Names, Authors, and Summaries about un-official versions. Also post all kinds of gossip and rumors about un-official versions because who doesn't love that!
Offline
Panther gossip/rumour:
1. The next version of Panther (1.1) will have a detachable and moveable blocks pallet and resizeable stage. (Confirmed rumour)
2. Panther 1.1 will have colour variables the combined into the normal variables.
Offline
You missed Useful Itch! http://scratch.mit.edu/forums/viewtopic.php?pid=641314
Offline
I have a mod I'm quietly developing on my own, called Shriek. It is currently not avaliable for download, because drop.io got sold to facebook
so all the files got deleted. If anyone can recommend a free file hosting service that doesn't require you to make an acount, that would be great
.
UPDATE: Look at the forums thread for the download link!
Forums thread can be found here including list of features.
Last edited by rubiks_cube_guy238 (2011-01-05 15:51:40)
Offline
rubiks_cube_guy238 wrote:
I have a mod I'm quietly developing on my own, called Shriek. It is currently not avaliable for download, because drop.io got sold to facebook
so all the files got deleted. If anyone can recommend a free file hosting service that doesn't require you to make an acount, that would be great
.
Forums thread can be found here including list of features.
MediaFire.
Offline
There's a list of Scratch Modifications on the Scratch Wiki, you can check there to see if you've missed any:
List of Scratch Modifications
Last edited by WeirdF (2011-01-05 08:12:56)

Offline
"Net Scratch 1.4" is coming soon by dav09 and MathWizz
Offline