This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
XoX's profile picture

RedScript

Started by XoX, 27 December 2012 - 06:56 AM
XoX #1
Posted 27 December 2012 - 07:56 AM
Some of you may know that on my server I restrict ComputerCraft to only my OS so to keep people from using malicious code.
Unfortunately this keeps people who like to use computers for their farms or doors from using them.
So I had an idea, I could let people access the "redstone side" of computercraft, and this is how:

Redscript

So what does it do?

Redscript is a scripting language I made which uses VERY simple commands to execute basic redstone operations and a bit more.
You can toggle redstone signals, wait for inputs, go to different lines ( for loops, etc )
and soon you will be able to compare text to user input ( good for password doors )

Here it is:
http://pastebin.com/YBJxRbSt


How to write scripts:

Basic functions are
SIDE on/off
wait #
wait SIDE
goto #
compare a b ( soon )


There you go, always happy about input and suggestions.
XoX #2
Posted 27 December 2012 - 11:14 AM
Lol, I just realized it still had a few copy & pasted elseif 's in it, they don't affect the code though so whatever, lol