Difference between revisions of "Block (TeaScript)"

From PGE Wiki
Jump to navigation Jump to search
(added pcollision and ncollision)
Line 30: Line 30:
 
|<code>advset</code>
 
|<code>advset</code>
 
|The ID of the NPC the block contains.
 
|The ID of the NPC the block contains.
 +
|-
 +
|pcollision
 +
|The player collision type of the block.
 +
|-
 +
|ncollision
 +
|The NPC collision type of the block.
 
|}
 
|}

Revision as of 01:28, 23 September 2019

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

To read the value of Block use:

Block(id).name

id stands for the block ID. To change the value of Block use:

Block(id).name = value
Name Description
X The X coordinate of the block.
Y The Y coordinate of the block.
Xsp The X-speed of the block.
Ysp The Y-speed of the block.
id The current block number.
advset The ID of the NPC the block contains.
pcollision The player collision type of the block.
ncollision The NPC collision type of the block.