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</cod739 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 not591 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 b1 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 color957 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 bo227 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 valid2 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 s1 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''' command2 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 colliding2 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