Become: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{DISPLAYTITLE:become}} '''#become''' is a ZZT-OOP command that lets an object become a different kind of element. The syntax is <code>#become color element</code>. The c...") |
(unify syntax as category) |
||
| Line 2: | Line 2: | ||
'''#become''' is a [[ZZT-OOP]] command that lets an object become a different kind of element. | '''#become''' is a [[ZZT-OOP]] command that lets an object become a different kind of element. | ||
== Syntax == | |||
<code>#become color element</code> | |||
The color argument is optional. While the element argument is supposed to be mandatory, an empty string is treated as equivalent to a [[Edge|board edge]]. Providing an invalid element name will throw a <code>Bad #BECOME</code> error. | |||
== Bugs == | == Bugs == | ||
Latest revision as of 17:07, 29 September 2022
#become is a ZZT-OOP command that lets an object become a different kind of element.
Syntax
#become color element
The color argument is optional. While the element argument is supposed to be mandatory, an empty string is treated as equivalent to a board edge. Providing an invalid element name will throw a Bad #BECOME error.
Bugs
- Unlike other commands, #become color object will always destroy and create a new stat, clearing the object's character and source code.
| ZZT-OOP | |
|---|---|
| Prefixes |
|
| Messages | |
| Directions | |
| Flags | |
| Commands | |