Put

From Wiki of ZZT
Revision as of 08:06, 8 February 2021 by RT-55J (talk | contribs) (→‎Bugs)
Jump to navigation Jump to search

#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.