Difference between revisions of "NPC (TeaScript)"

From PGE Wiki
Jump to navigation Jump to search
(Added ForeColor.)
(Added ExtX and ExtY(Thanks Hugo))
Line 33: Line 33:
 
|<code>Ysp</code>
 
|<code>Ysp</code>
 
|The Y speed of the NPC.
 
|The Y speed of the NPC.
 +
|-
 +
|<code>ExtX</code>
 +
|The X placement of the GFX expansion.
 +
|-
 +
|<code>ExtX</code>
 +
|The Y placement of the GFX expansion.
 
|-
 
|-
 
|<code>Facing</code>
 
|<code>Facing</code>

Revision as of 23:50, 4 March 2018

NPC is a class in TeaScript.vbs that allows you to read/write values of NPCs.

To read the value of NPC use:

NPC(index).name

To change the value of NPC use:

NPC(index).name = value
Name Description
X The X coordinate of the NPC.
Y The Y coordinate of the NPC.
prX The X coordinate of the original position's NPC.
prY The Y coordinate of the original position's NPC.
Xsp The X speed of the NPC.
Ysp The Y speed of the NPC.
ExtX The X placement of the GFX expansion.
ExtX The Y placement of the GFX expansion.
Facing The direction of the NPC.
ForeColor The color of the NPC.