xScript: A easy scratch language
A TUTORIAL
Hello World Application:
When it comes out, download it and open it in Scratch.
Then, when it asks you if you want to enter 'easy' or 'hard', choose easy. Easy mode is a simple version of xScript. When it asks you for a command, type in the following:
x.ScriptVars>0000
What is this? Let's break it down. "x." is the module selector. A module is a piece of code that makes programming easier. In this case we are using the preinstalled module "x". "ScriptVars" is the command we are using in the "x" module. ScriptVars sets the amount of variables in the program. ">" is a operator in xScript meaning set. and then you have to set a number of variables (4 digit and up to 9,999).
Now, we want to write something to the console list. So, then type:
Hello World!
Yep! Simple as that. Just type what you want to write.
Now, let's improve our program. We want to be able to get the user's name and say:
Hello, [user's name here]!
So, here begins the section on VARIABLES.
Now, how do we set a variable? Well, first you have to tell xScript how many variables you want. Remember in the "hello world" app, we put in "x.ScriptVars>0000"? That sets the amount of variables you'll use at runtime. Now, setting the value. Here's what the code is:
set [variable number (four digit!!)] {
[value here]Last edited by mXsoft11 (2010-09-27 18:05:35)

Offline
mXsoft11 wrote:
xScript: A easy scratch language
So... What is it?
Offline
bump
Offline