Scroll: Difference between revisions
m (→ZZT connection: interwiki link) |
m (→ZZT connection) |
||
Line 45: | Line 45: | ||
== ZZT connection == | == ZZT connection == | ||
In [[ZZT]], the equivalent element to Scroll is [[zzt:Scroll]], but unlike ZZT, they are not capable of displaying a single line to the [[Message Line]] or running arbitrary scripts that crash. |
Revision as of 00:24, 31 May 2025
Sign # 125 ![]() | |
Robotic name | Sign
|
Default color | 6 |
Default param | storage object ID |
ID char | 226 (#125) |
Effect when touched |
Display message |
Scroll # 126 ![]() | |
Robotic name | Scroll
|
Default color | 15 |
Default param | storage object ID |
ID char | 232 (#126) |
Attributes | Pushable: all |
Effect when touched |
Display message, become Space, move player |
Scrolls (ID 126, Scroll
) and Signs (ID 125, Sign
) are built-in things which display a Message Box with custom contents when touched by the Player. After displaying its contents, the Player will move onto a Scroll, meaning its message can be read only once. A Sign will remain unmodified and can be touched again, effectively acting like a wall.
Scrolls/Signs are storage objects—like Robots—which means they can not be created or modified through Robotic and must be pre-made in the editor. Unlike the Robotic message box commands, Scrolls/Signs also can't display variables or provide selectable options.
Formatting
As of MegaZeux 2.93, Scrolls/Signs support Message Line-style color codes, e.g.
~f@4 This scroll will display in color!
Lines longer than 64 characters are also supported to account for color codes, although only 64 characters will be displayed in the line.
Version differences
MegaZeux 1.00
Scrolls/Signs did not support modern color codes, but rather a very hacky form of coloring: when the character !
is encountered at the beginning of a line, the following byte is used as the palette number for the entire line and the first two characters are displayed as spaces.
VER1TO2 silently strips color codes out of converted Scrolls/Signs. MegaZeux 2.93 and up, on the other hand, translate these to modern color codes when loading them.
Lines longer than 64 characters are not supported.
MegaZeux 2.00 until 2.93
Scrolls/Signs did not support color codes. Lines longer than 64 characters are not supported.
ZZT connection
In ZZT, the equivalent element to Scroll is zzt:Scroll, but unlike ZZT, they are not capable of displaying a single line to the Message Line or running arbitrary scripts that crash.