Become: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(unify syntax as category)
No edit summary
 
Line 3: Line 3:


== Syntax ==
== Syntax ==
<code>#become color element</code>
<code>#become kind</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.
Providing an invalid [[kind]] will throw a <code>Bad #BECOME</code> error.


== Bugs ==
== Bugs ==

Latest revision as of 11:09, 24 December 2025

#become is a ZZT-OOP command that lets an object become a different kind of element.

Syntax

#become kind

Providing an invalid kind 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.
    • The typical workaround for changing object colors is to use #change or #put instead.