Search results

Jump to navigation Jump to search
  • ...direction, the abbreviated <code>#i</code> would not be considered a valid command.
    553 bytes (91 words) - 05:11, 11 February 2021
  • ...d which evaluates the state of a [[flag]], conditionally executing another command if it is true. <code>#if <flag> [then] <command></code>
    858 bytes (136 words) - 23:00, 8 February 2021
  • '''#end''' is a [[ZZT-OOP]] command for ending code execution. It achieves this by setting the [[Object]] code ...[restart]], '''#end''' does not act as a label that can be sent. Thus, the command <code>#all:end</code> will do nothing (except jumping to an <code>:end</cod
    739 bytes (120 words) - 05:52, 24 October 2023
  • '''#try''' (Shortened: '''[[Movement|?]]''') is a [[ZZT-OOP]] movement command which attempts to move an [[object]] one step in a given direction. Unlike If '''#try''' is unsuccessful, an optional command can be executed, similar to [[give|#give]] and [[take|#take]]. This is not
    591 bytes (87 words) - 22:19, 11 February 2021
  • '''#send''' is a [[ZZT-OOP]] command that provides a means of directing one or multiple [[object|objects.]] When ...nterruption, it can turn off all incoming messages with the [[lock|#lock]] command.
    2 KB (380 words) - 06:40, 22 September 2021
  • '''#go''' (Shortened: '''[[Movement|/]]''') is a [[ZZT-OOP]] movement command which makes an [[object]] move one step. If the destination is blocked by a ...latter case, the object will stop its attempt to move and skip to the next command.
    2 KB (297 words) - 20:21, 24 August 2021
  • '''#bind''' is a [[ZZT-OOP]] command which allows replacing the currently executed [[Object]] code with that of While it is common for objects that use '''#bind''' to have it be their only command, that does not need to be the case. Objects can use [[walk|#walk]] before b
    1 KB (188 words) - 17:08, 29 September 2022
  • * <code>#give <counter> <amount> [<command>]</code> * <code>#take <counter> <amount> [<command>]</code>
    2 KB (352 words) - 17:12, 29 September 2022
  • '''#change''' is a [[ZZT-OOP]] command that lets you change all instances of a given element with another element. * Due to a bug, errors thrown by #change do not stop execution of the command! This can cause uninitialized memory to be used as the element and/or color
    957 bytes (152 words) - 17:08, 29 September 2022
  • '''#die''' is a [[ZZT-OOP]] command that turns an object into an [[Empty]], effectively removing it from the bo
    227 bytes (33 words) - 09:37, 8 February 2021
  • ...and that accepts another command as an argument, and will only appear if a command in their place would have been executed. Thus, the following code is valid
    2 KB (303 words) - 03:14, 9 February 2021
  • The <code>#clear flag</code> command removes the flag from the flag list, replacing it with an empty string. Giv The presence of a flag can be detected using the [[if|#if]] command. For example:
    3 KB (612 words) - 17:04, 14 October 2023
  • ...s are often produced by behavior within ZZT. For example, the [[Die|#die]] command turns the current object into an empty, and many [[stat]]-less elements (su ...tat to behave like a player stat, usually resulting in the user's movement command being executed again in the same [[cycle]]. The effect is that the player s
    1 KB (228 words) - 19:25, 13 February 2021
  • '''#throwstar [direction]''' is a [[ZZT-OOP]] command to have an object throw a [[star]] in a specified direction.
    356 bytes (59 words) - 07:53, 10 February 2021
  • ...t|objects]] using the [[throwstar|#throwstar]] command or the [[put|#put]] command (which generates stars that last for ''255'' ticks).
    2 KB (267 words) - 07:50, 13 February 2021
  • ! Source !! '''#play''' command ! Source !! '''#play''' command
    2 KB (308 words) - 20:24, 10 August 2021
  • Errors thrown is an invalid command is encountered: |Bad command [command]
    3 KB (419 words) - 01:09, 14 February 2021
  • '''#endgame''' is a [[ZZT-OOP]] command that sets the [[Player|player's]] health to 0, thus ending the game.
    577 bytes (96 words) - 07:25, 8 February 2021
  • ...shoot|#shoot]] command. Attempting to shoot a bullet with the [[put|#put]] command just places a directionless bullet than disappears immediately by colliding
    2 KB (299 words) - 18:11, 13 February 2021
  • '''#char''' is a [[ZZT-OOP]] command for changing an object's display character.
    641 bytes (92 words) - 17:09, 29 September 2022
  • '''#become''' is a [[ZZT-OOP]] command that lets an object become a different kind of element.
    695 bytes (105 words) - 17:07, 29 September 2022
  • ...into a collectible item with special effects, such as [[Send|#send]]ing a command to an object or [[set|#set]]ting a flag. If the text of a scroll contains a command to [[go|#go]], [[try|#try]] or [[become|#become]], collecting the scroll wi
    2 KB (362 words) - 05:25, 18 February 2021
  • .... For example, if an object is located to the northeast of the player, the command <code>#go seek</code> will make the object step south ''or'' west.
    734 bytes (113 words) - 05:11, 11 February 2021
  • If a locked object reaches an <code>[[end|#end]]</code> command (or the end of its program) without unlocking, it will become unresponsive,
    832 bytes (125 words) - 16:28, 11 February 2021
  • '''#shoot [direction]''' is a [[ZZT-OOP]] command to have an object shoot a [[bullet]] in a specified direction.
    719 bytes (120 words) - 07:50, 10 February 2021
  • '''Caution: overuse of objects with the #cycle 1 command can EASILY overload the ZZT engine; even if the game is emulated at maximum
    749 bytes (116 words) - 05:10, 17 April 2022
  • ...al text files. These must be explicitly given a name via the [[Hyperlink]] command or they will default to HLP.
    1 KB (187 words) - 08:10, 17 December 2021
  • '''#put''' is a [[ZZT-OOP]] command that lets an object place an element on the board. If the element at the ta
    1 KB (188 words) - 17:13, 29 September 2022
  • The ZAP command is particularly dangerous as it permanently removes '''''anything''''' with
    1 KB (157 words) - 07:02, 17 December 2021
  • '''#walk''' is a [[ZZT-OOP]] command that makes an [[object]] move automatically, independent of conventional [[
    1 KB (197 words) - 05:22, 14 February 2021
  • ...' (which dictates how often a statted element updates), or the [[ZZT-OOP]] command '''#cycle n''' (which sets an object's cycle parameter to n). An element wi
    1 KB (225 words) - 17:11, 29 September 2022
  • ...r' by constantly subtracting from the player's gem count and specifying an command if there are no more, conditional endings/choices by attempting to take a c
    1 KB (235 words) - 06:49, 17 December 2021
  • This can be worked around by using any non-label for the first line (a command like '''#end''', a program name, or even a blank line).
    2 KB (405 words) - 17:13, 29 September 2022
  • ...ome]] to create an element without specifying its type, whether or not the command requests a color, the result will be a board edge tile. The element was ini
    3 KB (459 words) - 18:16, 19 February 2021
  • The '''#play''' command in [[ZZT-OOP]] allows [[object|objects]] and [[scroll|scrolls]] to play mus
    3 KB (466 words) - 17:12, 29 September 2022
  • ...tions, in PIT ticks (18.2 Hz), possible to achieve with the [[Play|#play]] command. Note that some durations, marked with an '''-''', are not possible to achi
    11 KB (1,059 words) - 18:59, 8 February 2021
  • ...cable element (such as a key or a [[gem]]) or using the [[Change|#change]] command to turn it into one. An external editor can be used to place any color of d
    5 KB (794 words) - 05:46, 10 February 2021