Make a variable, while naming it, add "%n" without quotes, anywhere. This lets you put a number in the middle of a variable block. You can also use "%s" for strings, "%g" for a drop down list of graphic effects, "%l" for a list of costumes, "%C" or "%H" for two lists of sensors, and finally "%C" for a color picker.
nb: These are, as the title stated, useless. The values you enter in your custom fields will not be saved with the project...
The only use I'd imagine these blocks having IF they could be saved, are as comments.
Of course, comments have been brought back in 1.3, right?
EDIT:
Anyhow, I found more. big_smile
Case sensitive, remember!
%I is an instrument list!
%i is actually used only for choosing a certain item from a specific list.
%y is a list item deleter!
%e is actually useful! It lets you name new broadcasts! Yay!
%L is a list of lists!
%l is a list of costumes!
%k is a list of keys!
%f is a list of math functions!
%D is a list of drum/tempo choices!
%s is a string field!
%S is a list of available sounds, and lets you record more!
%a should be a list, but isn't, and has a default value of "volume"!
%m is a list of things to touch! These include the mouse pointer and edge! Wow!
%n is a number field!
%N is midi note selector!
%b is a boolean container block nub thing!
%v is a list of variables!
%c is a small color picker, uses the eyedropper to choose color.
%C is a large color picker! It has it's own little color pickin' morph!
%x is a scene selector!!! Ooooh!! It has it's own dialogue for recording scenes!
The other %_ insert horrible fields. Don't do it.
That's all for now, folks! yikes yikes yikes
BTW I didn't have to break out for anything but the initial discovery.
I went from right to left, top to bottom, upper to lower case, on the keyboard.
Somewhat useless, I should prolly be doing projects on scratch instead.
Or perhaps I should be sleeping? Nah...
Anyway, enjoy. Maybe. sad
Last edited by MasterOfMac (2008-09-05 05:49:28)
Offline
Oh wow, how did you find this out?
Offline
ok now that is really interesting. i assume you figured this out while playing around with squeak...
Offline
Actually, I'm learning C, and you have to use % to print a variable as a part of a line. So that's what made me realize that I might be able to fool scratch with that, since block fields are just implemented with %n, %l, etc. themselves. And then I tried it for fun.
It worked. ^.^
Offline
MasterOfMac wrote:
Actually, I'm learning C, and you have to use % to print a variable as a part of a line. So that's what made me realize that I might be able to fool scratch with that, since block fields are just implemented with %n, %l, etc. themselves. And then I tried it for fun.
It worked. ^.^
I know some turbo c which is pretty similar
Offline
wierd... hacks...
Offline
JSO wrote:
When you look into the language files (/locale/*.po) you'll see the same % codes are used...
I found this out today!
Ha... I was creating a southern accented language, and realized that the block codes are all there.
Offline
slaners5 wrote:
Wow
I'm glad you're in awe.
Bow down before the one you serve.
Offline
I think you forgot %g. It's an effects selection.
Ooh! And if you use %q or one of those useless things and try dropping a block inside it you get an error message!
Last edited by coolstuff (2008-09-07 18:38:13)
Offline
%x is not an implemented feature in 1.3, and it does not work even if you manage to get the diologue up. Useless.
The %q is simply a null field. This works with any character put after a '%' that hasn't been defined.
I'm working on fixing it though.
I didn't create this topic as a method of breaking out, it's just an interesting discovery.
Offline