Put: Difference between revisions
Jump to navigation
Jump to search
(Created page with "'''#put''' is a ZZT-OOP command that lets an object place an element on the board. If the element at the target tile is able to be pushed, then using '''#put''' will push...") |
(created "Bugs" heading for maximum visibility of the south edge bug) |
||
Line 3: | Line 3: | ||
The syntax is <code>#put direction color element</code>. The direction argument is mandatory. The color argument is optional. If an element is not specified then ZZT will default to placing a [[Edge|board edge]] | The syntax is <code>#put direction color element</code>. The direction argument is mandatory. The color argument is optional. If an element is not specified then ZZT will default to placing a [[Edge|board edge]] | ||
Due to a bounds-checking error it is impossible to '''#put''' something on the bottommost row of the board. This can be situationally circumvented using the [[Shoot|#shoot]] or [[Throwstar|#throwstar]] commands in conjunction with [[Change|#change]]. This bug was fixed in Super ZZT. | If the object's x-step and y-step are both zero, then the command <code>#put flow <element></code> will throw the error <code>Bad #PUT</code> when executed. | ||
== Bugs == | |||
* Due to a bounds-checking error it is impossible to '''#put''' something on the bottommost row of the board. This can be situationally circumvented using the [[Shoot|#shoot]] or [[Throwstar|#throwstar]] commands in conjunction with [[Change|#change]]. This bug was fixed in Super ZZT. | |||
{{ZZT-OOP navbox}} | {{ZZT-OOP navbox}} |
Revision as of 22:49, 7 February 2021
#put is a ZZT-OOP command that lets an object place an element on the board. If the element at the target tile is able to be pushed, then using #put will push it. Otherwise, #put will replace the target tile.
The syntax is #put direction color element
. The direction argument is mandatory. The color argument is optional. If an element is not specified then ZZT will default to placing a board edge
If the object's x-step and y-step are both zero, then the command #put flow <element>
will throw the error Bad #PUT
when executed.
Bugs
- Due to a bounds-checking error it is impossible to #put something on the bottommost row of the board. This can be situationally circumvented using the #shoot or #throwstar commands in conjunction with #change. This bug was fixed in Super ZZT.
ZZT-OOP | |
---|---|
Prefixes |
|
Messages | |
Directions | |
Flags | |
Commands |