================================================== Welcome to cScript, an easy-to-learn programming language on Scratch! The format is similar to that of an Arduino, although a few commands have a different alias. This is also the only other (known) Scratch language to support loops! ↓ Commands ↓ ================================================== - Void setup • Creates a function named "setup." • Needed for If () then { } else { } statements. • Proper syntax: ~ Void setup ~ { ~ Some code ~ } • Must be placed before anything else calls the function with the "func" command. - Func setup • Calls a function named "setup." • The function must first be defined with a "void" command. • Can NOT be placed inside of a "void" command. • Proper syntax: ~ Func setup • Improper syntax: ~ Void setup ~ { ~ Func setup ~ } - Console.print • Joins the variable or text written after the command with the last item in the console. • Variables: username, local_time, local_date, active_function, and result. ~ Result reports the answer from a calculate () command. • Proper syntax: ~ Console.print "Sample text" ~ Console.print username • Improper syntax: ~ Console.print Sample text ~ Console.print 'Sample text' - Console.println • Exactly the same as console.print except it creates a new line in the console. - If (1) = (2) func1 • Determines if input 1 matches input 2, and if it does, runs the function named func1. • Can NOT be placed inside of a "void" function • Proper syntax: ~ If (username) = ("CrafterMaster360") devtext • Improper syntax: ~ If username = "CrafterMaster360" (devtext) • I'm the function, = can be replaced with < or >. • The same variables can be used here from the "console.print" command. - Else func2 • To be joined with an "if () = () func1" statement ~ If the statement returns false, this will execute a function named "func2" rather than "func1." • Proper syntax: ~ If (username) = ("CrafterMaster360") devtext ~ Else guesttext • Improper syntax: ~ If (username) = ("CrafterMaster360") devtext ~ (Some code) ~ Else guesttext - CraftList.Upload • Uploads the list "CraftList.Upload.List" to the cloud. • Not joined with any other inputs or commands for simplicity. • Proper syntax: ~ CraftList.Upload • Improper syntax: ~ CraftList.Upload "CraftList.Upload.List" - CraftList.Download • Downloads the list saved in "CraftList.Cloud.Main" to "CraftList.Download.List." • Not joined with any other inputs or commands for simplicity. • Proper syntax: ~ CraftList.Download • Improper syntax: ~ CraftList.Download "CraftList.Download.List"
================================================== Some functions were copied from CraftOS and remade to work for this project, and cloud functions came from my CraftList project. Almost all of the work was done by me except for the encoder / decoder from CraftList, which is in that project's credits. ===================================================