Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- . "This is a comment, useful for comments like this!"
- . "This command inc. the number of commands a robot can process per cycle"
- set "commands" to 4000
- . "this is a basic expression."
- . "This allows you to set values beyond the standard signed 16 bit limit"
- set "commands" to "(60000)"
- . "this is an expression with a custom variable"
- . "variables are called 'Counters' in MegaZeux"
- set "myVal" to 5
- . "this is a custom string. Strings begin with $"
- set "$myStr" to "NarcissaWright"
- . "this command prints something to the message line"
- . "you can embed variables into the message line in different ways"
- * "~f&myVal& ('myVal'-9) &$myStr&"
- . "Expressions can be used in many places where numbers are accepted"
- . "note that this writes a bomb to 5,5 on the overlay"
- write overlay c0f "" at "myVal" "('myVal')"
- . "this is a built-in counter. Be carful not naming a counter after one"
- . "to find more info for built-ins, check the following:"
- . "Counters, Built-in Counters, and Local Counters"
- : "q"
- wait for 1
- write overlay c0f "รป" at "playerx" "playery"
- goto "q"
- : "keyq"
- . "this is the loop command. this command zeroes the loopcounter built-in"
- loop start
- write overlay c0f "Hi" at "playerx" "Loopcount"
- loop for 4
- end
- : "keyw"
- . "outside of (), expressions are always parsed left to right"
- . "note that myVar becomes -1, instead of 1"
- set "myVar" to "(4-6/2)"
- * "~f&myVar&"
Add Comment
Please, Sign In to add comment