Commands for BLAMC?

BLAMC stands for Bot Learning About Manifesting Commands (It is not a chatbot, or anything like that. Basically, an experimental project.) It’s based on a coding game I played when I was around 6; I forget the name, though. But basically, you would have to give it commands like “Make the background red” or “Rotate 5 times” so it would work.

So, about BLAMC: I need some commands, but please keep it simple. So, something like “Tell me the time” or “change colours repeatedly”, and maybe commands more advanced than that.

Well, personally (there’s probably a way more efficient way to do this.) I would make a list of commands such as “rotate” or “move” then the amount. Something like this:

This is an example of what you could use, this is obviously just the basic idea.

This sounds really foolish, but how do I make a list that actually controls a sprite?

Ah, I’ll work right on that

Can you explain a bit more so I can start. I don’t really understand what you mean by that.

sorry.

List that has commands in it so when mentioned, something happens

I’m not very experienced when making coding languages. Maybe @bh can help with some examples

i’ve got nothing better to do.. ill make my own attempt!

I’m not sure I understand exactly what you want to do, either, but I’ll try: You want to associate some text with some code, e.g., you want “move” to be associated with
untitled script pic (7)
So you make a table, a list of lists, in which each small list has two items, the text and the code:
untitled script pic (8)
or maybe you have variants like this:


The code has to be in a ring (so that it can be used as data), but the ring can include more than one block.

Then, to run the code associated with a text, you can say

The interesting part of the project is that you probably want to be able to handle abbreviated commands, e.g., maybe you want “orange” to run the “become orange” script.

This is actually what I meant. I don’t really know how to describe code stuff like this, unfortunately. Also, yeah, abbreviated comments will be used a lot. (Also, how could’ve I worded this better?)

https://snap.berkeley.edu/snap/snap.html#present:Username=mctx_studios&ProjectName=blamc%20prototype
to type commands, you must type them like
“command: input1, input2” (including the spaces, because i’m lazy)
so an example command would be: “say_seconds: hello, 2”, which would make the sprite say “hello” for 2 seconds.
you can easily add your own commands with the basic helper block I made.

Instead of typing commands, you could also use the Prompt block and the Submenu block blocks found in the “Menus” library.

You can then do something like this:


(You can drag the image directly into the editor to get the blocks)

:slight_smile: thanks

It seems that once you click on one command, the menu doesn’t pop up anymore. Is that supposed to happen?

Yeah, that’s just the base block. If you want to run it again, you should add a way of doing that, perhaps under a When Space Key Pressed block like mctx_studios’s version, or you could also place the block inside a forever loop.

I’ll check that out in around an hour :slight_smile: Or any time when I can do so.

This is a forum; you don’t need to read or test anything out immediately :slight_smile:

ik that just saying :slight_smile:

BLAMC by 800flans | Snap! Build Your Own Blocks . It’s still in progress, but I want you guys to test it out.

What should I add? What should I remove?