Put: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(created "Bugs" heading for maximum visibility of the south edge bug)
Line 7: Line 7:
== Bugs ==
== 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.
* 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]].


{{ZZT-OOP navbox}}
{{ZZT-OOP navbox}}

Revision as of 08:06, 8 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.