Syntax of ‘MethylCode’

sigh

2 Likes

Happy or sad? I’m including 4 blocks.

1 Like

Commands, you mean
Okay
Idk EGCode also had 4 commands
QuadCode has a lot more, even experimental ones which I didn’t mention in the tutorial

And that wasn’t a happy sigh, it was an annoyed one, please take advice, dignity is not what matters in society

2 Likes
printtext(‘Wow! MethylCode is here!’)
xchange(7)
ychange(6)
printvar(wow)
setVar(61)
1 Like

correct, for example it’s better to ask for help then to release a bugged version of a game because you can’t figure out how to fix the bug and don’t want to ask for help

2 Likes

Huh wait a sec
You can set variables so how do you print them

2 Likes

Ok for here I’ll have debugging.

1 Like

5 commands,

1 Like

Oh
Link please lol
Publish, get link, then unpublish
So we can see your progress live

1 Like

How do I detect those things inside commands?

1 Like

I used next line
dim as UVar varname(
Hello)

That makes a variable named varname and stores a value of ‘Hello’ in it

1 Like

Uhhhhhhhhhhhhhhhhhh… Aaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhhhhh! Pls can I copy from QuadCode?

1 Like

Yes
Maybe change it to make it easier
So smth like

Set hello to:
What
1 Like

I don’t understand. Can you type the code?

1 Like

So

Set x to:
10

Makes a variable named x with a value of 10
It’s just the EGCode method but with different keywords
And no brackets

1 Like
Uh oh! CNt understand.
1 Like

How do I detect that code in the end. The key?

1 Like

Well just set some buffer variable or smth to 1 when a set var is sensed
And for each command, check if the buffer thing = 1
If it is 1, then set the variable to 1

I make variables with clones, each clone having a name variable and a value variable.
When a set var command is sensed then the ‘variable maintenance’ object maeks a clone
The variable set its name to the characters between set and to in the command
Then it waits for the reader to read the next line
Then it sets it value to what the reader is sensing
If you understood this, you can just make it yourself

1 Like

@Electogenius https://c.gethopscotch.com/p/11azvvu1d4
U have been waiting for this.

1 Like

Huh
You added the wrong number in the characters between block
It’s supposed to be 0 and (whatever number)
0 is the first character, not 1