Conveyor: Difference between revisions
(Created page with "{{Element |zzt-oop name=Clockwise |id={{Byte|16}} |char={{CharSwatch|47}} |category=Item |stats=yes |cycle=3 |destructible=no |effect on movement=Wall, Conveyance |uses zzt-oop color=Yes }} {{Element |zzt-oop name=Clockwise |id={{Byte|17}} |char={{CharSwatch|92}} |category=Item |stats=yes |cycle=2 |destructible=no |effect on movement=Wall, Conveyance |uses zzt-oop color=Yes }} '''Conveyors''', referred to internally as '''clockwise''' and '''counter''', are devices that...") |
(Draw procedure) |
||
| Line 35: | Line 35: | ||
TODO: Bring the information from that forum post over to this here wiki. | TODO: Bring the information from that forum post over to this here wiki. | ||
== Draw Procedure == | |||
Clockwise and counter-clockwise conveyors display the same sequence of characters, but in the opposite order: | |||
{| class="wikitable" | |||
! Character !! CW !! CCW | |||
|- | |||
| {{CharSwatch|179}} || 0 || 3 | |||
|- | |||
| {{CharSwatch|47}} || 1 || 2 | |||
|- | |||
| {{CharSwatch|196}} || 2 || 1 | |||
|- | |||
| {{CharSwatch|92}} || 3 || 0 | |||
|} | |||
Conveyors are redrawn every tick, but their animation rate is tied to the default cycle value of their elements (either cycle 2 or cycle 3). This means that cycle 1 conveyors will not appear to move any faster, and that other non-standard cycle values might appear stuttery or skip animation frames. | |||
{{ElementsNavbox}} | {{ElementsNavbox}} | ||
Revision as of 00:42, 24 December 2025
| Conveyor | |
|---|---|
| ZZT-OOP name | Clockwise |
| Internal ID | 16 (0x10) |
| Character | #char 47 / (0x2F) |
| Category | Item |
| Stats | |
| Default cycle | 3 |
| Other traits | |
| Effect on movement | Wall, Conveyance |
| Destructible? | no |
| Uses ZZT-OOP color names? | Yes |
| Conveyor | |
|---|---|
| ZZT-OOP name | Clockwise |
| Internal ID | 17 (0x11) |
| Character | #char 92 \ (0x5C) |
| Category | Item |
| Stats | |
| Default cycle | 2 |
| Other traits | |
| Effect on movement | Wall, Conveyance |
| Destructible? | no |
| Uses ZZT-OOP color names? | Yes |
Conveyors, referred to internally as clockwise and counter, are devices that move any pushable element in their 8 adjacent tiles around in a circle (with the direction depending on their type). Conveyors can be used to make one-way passages that object can still pass through, to make movement awkward, or for other purposes.
Despite moving pushable objects, conveyors do not actually push them. This means, for instance, that if you have a line of boulders exiting a tunnel of conveyors, that the boulders will go no further than the farthest-most adjacent tile of the last conveyor. Conversely, this also means that it is possible for the player to push a row of boulders against the direction of conveyor movement (at least, until the player itself comes into contact with the conveyors).
Conveyors do not work on on sliders.
Bugs
Conveyors have two main bugs. One is a visual glitch that prevents an element from being drawn under certain circumstances. Another is a glitch that can cause stats to swap order, which can even delete the player under certain circumstances (!!).
A detailed explanation of these glitches can be found in this forum post.
TODO: Bring the information from that forum post over to this here wiki.
Draw Procedure
Clockwise and counter-clockwise conveyors display the same sequence of characters, but in the opposite order:
| Character | CW | CCW |
|---|---|---|
| #char 179 │ (0xB3) | 0 | 3 |
| #char 47 / (0x2F) | 1 | 2 |
| #char 196 ─ (0xC4) | 2 | 1 |
| #char 92 \ (0x5C) | 3 | 0 |
Conveyors are redrawn every tick, but their animation rate is tied to the default cycle value of their elements (either cycle 2 or cycle 3). This means that cycle 1 conveyors will not appear to move any faster, and that other non-standard cycle values might appear stuttery or skip animation frames.
| Elements | |
|---|---|
| Special | |
| Items | |
| Terrain | |
| Creatures | |
| Text | |