Difference between revisions of "NPC (TeaScript)"

From PGE Wiki
Jump to navigation Jump to search
(Started with the docimentation)
(Minor fixes in prX and prY descriptions, added facing.)
Line 23: Line 23:
 
|-
 
|-
 
|<code>prX</code>
 
|<code>prX</code>
|The X coordinate of the original postion's NPC.
+
|The X coordinate of the original position's NPC.
 
|-
 
|-
 
|<code>prY</code>
 
|<code>prY</code>
|The Y coordinate of the original postion's NPC.
+
|The Y coordinate of the original position's NPC.
 
|-
 
|-
 
|<code>Xsp</code>
 
|<code>Xsp</code>
Line 33: Line 33:
 
|<code>Ysp</code>
 
|<code>Ysp</code>
 
|The Y speed of the NPC.
 
|The Y speed of the NPC.
 +
|-
 +
|<code>Facing</code>
 +
|The direction of the NPC.
 
|}
 
|}

Revision as of 08:34, 2 November 2017

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.
Facing The direction of the NPC.