Put: Difference between revisions
Jump to navigation
Jump to search
(created "Bugs" heading for maximum visibility of the south edge bug) |
(→Bugs) |
||
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]]. | * 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.
- This can be situationally circumvented using the #shoot or #throwstar commands in conjunction with #change.
ZZT-OOP | |
---|---|
Prefixes |
|
Messages | |
Directions | |
Flags | |
Commands |