Put

From Wiki of ZZT
Revision as of 22:49, 7 February 2021 by RT-55J (talk | contribs) (created "Bugs" heading for maximum visibility of the south edge bug)
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. This can be situationally circumvented using the #shoot or #throwstar commands in conjunction with #change. This bug was fixed in Super ZZT.