Block (TeaScript)

Block is a class in TeaScript.vbs that allows you to read/write values for blocks.

To read the value of  use:     stands for the block's permanent ID.

To change the value of  use: {| class="wikitable" border="0" !Name !Type !Description 0 = Empty
 * R&W
 * The X coordinate of the block.
 * R&W
 * The Y coordinate of the block.
 * R&W
 * The X-speed of the block.
 * R&W
 * The Y-speed of the block.
 * R&W
 * The current block number.
 * R&W
 * If set to 1, it will hit the block. Any other value will break it.
 * R&W
 * Stands for whenever the block is hidden or not. (If the layer of the block is hidden, it turns 1)
 * R&W
 * The contents of the block.
 * R&W
 * The current block number.
 * R&W
 * If set to 1, it will hit the block. Any other value will break it.
 * R&W
 * Stands for whenever the block is hidden or not. (If the layer of the block is hidden, it turns 1)
 * R&W
 * The contents of the block.
 * R&W
 * Stands for whenever the block is hidden or not. (If the layer of the block is hidden, it turns 1)
 * R&W
 * The contents of the block.
 * R&W
 * The contents of the block.
 * R&W
 * The contents of the block.

1 to 99 = Contains however many coins the value is set to. (i.e. 15 will contain 15 coins)

-302 = Multiple coins (hasn't been hit yet)

-301 = Multiple coins (has been hit)

1xxx = NPC ID contained in the block. (i.e. 1031 contains a Key, which is NPC ID 31.) 0 = None
 * R
 * The player collision type of the block.
 * R
 * The NPC collision type of the block.
 * R&W
 * The color of the block. Uses rgba.
 * haswing
 * R&W
 * Determines if the Block has the wing special type and what type of wing movement it has.
 * R&W
 * The color of the block. Uses rgba.
 * haswing
 * R&W
 * Determines if the Block has the wing special type and what type of wing movement it has.
 * R&W
 * Determines if the Block has the wing special type and what type of wing movement it has.

1 = Hover Left/Right

2 = Hover Up/Down

3 = Hover Forward

4 = Controlled by NPC-308

5 = SMW Lines
 * -}