NPC (TeaScript)

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

Spawning an NPC
To spawn an NPC you can use the  function. For more information visit the NCreate or NCreateGroup documentation

Using the NPC Class
To read the value of  use:

To change the value of  use:

Constants
Here is a list of constants used by the NPC class.

Oddities and Quirks
Below is a list of certain quirks certain NPCs have that does not conform to standard behavior or simply other miscellaneous behavior.


 * Dry Bones and Bony Beetles will not run scripts when knocked over.
 * Wart, Mouser, Boom Boom, and Mother Brain gets stuck in their hit states when damaged if Parallel Execution is disabled.
 * Positions of plant based enemies that come out of the ground cannot be altered with x and y and instead must be altered with prx and pry.
 * Enemies that come out of the ground/wall/ceiling (i.e. Piranha Plants and Sumo Bros. fire) won't come out of the ground with Parallel Execution disabled due to their position coming out of the ground being dependent on the ivals.
 * Birdo and Larry cycle through all of their animation frames if Parallel Execution is disabled.
 * Wart, Mouser, Ludwig, and Bros. Enemies (excluding Sumo Bros.) always face the player even with Parallel Execution disabled.
 * Ludwig is stuck on his first fire breathing frame when Parallel Execution is disabled.
 * Bubbles still pop when colliding with objects and won't animate if Parallel Execution is disabled.