Char: Difference between revisions
Jump to navigation
Jump to search
(Quick intro to #char command) |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:char}} | {{DISPLAYTITLE:char}} | ||
'''#char''' is a [[ZZT-OOP]] command for changing an object's display character. | |||
== Syntax == | |||
<code>#char <1-255></code> | |||
The decimal number represents the extended ASCII code of the desired character. If a code is outside this range, it will be ignored. | |||
== Quirks == | |||
* '''#char''' does not allow character 0 as a parameter, even though it is a valid extended ASCII character. Running <code>#char 0</code> will silently fail without changing the object's character. This restriction does not typically matter in practice because characters 32 and 255 are usually visually identical to character 0. | |||
{{ZZT-OOP navbox}} |
Latest revision as of 17:09, 29 September 2022
#char is a ZZT-OOP command for changing an object's display character.
Syntax
#char <1-255>
The decimal number represents the extended ASCII code of the desired character. If a code is outside this range, it will be ignored.
Quirks
- #char does not allow character 0 as a parameter, even though it is a valid extended ASCII character. Running
#char 0
will silently fail without changing the object's character. This restriction does not typically matter in practice because characters 32 and 255 are usually visually identical to character 0.
ZZT-OOP | |
---|---|
Prefixes |
|
Messages | |
Directions | |
Flags | |
Commands |