Difference between revisions of "NPC (TeaScript)"

From PGE Wiki
Jump to navigation Jump to search
m (Yoshi021 moved page NPC to NPC (TeaScript))
(Started with the docimentation)
Line 1: Line 1:
 
[[Category:TeaScript.vbs]]
 
[[Category:TeaScript.vbs]]
 
NPC is a class in TeaScript.vbs that allows you to read/write values of NPCs.
 
NPC is a class in TeaScript.vbs that allows you to read/write values of NPCs.
 +
 +
To read the value of <code>NPC</code> use:
 +
<syntaxhighlight lang="vb">
 +
NPC(index).name
 +
</syntaxhighlight>
 +
 +
To change the value of <code>NPC</code> use:
 +
<syntaxhighlight lang="vb">
 +
NPC(index).name = value
 +
</syntaxhighlight>
 +
 +
{| class="wikitable" border="0"
 +
!Name
 +
!Description
 +
|-
 +
|<code>X</code>
 +
|The X coordinate of the NPC.
 +
|-
 +
|<code>Y</code>
 +
|The Y coordinate of the NPC.
 +
|-
 +
|<code>prX</code>
 +
|The X coordinate of the original postion's NPC.
 +
|-
 +
|<code>prY</code>
 +
|The Y coordinate of the original postion's NPC.
 +
|-
 +
|<code>Xsp</code>
 +
|The X speed of the NPC.
 +
|-
 +
|<code>Ysp</code>
 +
|The Y speed of the NPC.
 +
|}

Revision as of 06:22, 4 September 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 postion's NPC.
prY The Y coordinate of the original postion's NPC.
Xsp The X speed of the NPC.
Ysp The Y speed of the NPC.