npcdata#

Metadata for a specific enemy type (not an instance of one). Load with Game->LoadNPCData().

Variables#

int

Tile

bool[]

Flags

int

Width

int

Height

int

STile

int

SWidth

int

SHeight

int

ExTile

int

ExWidth

int

ExHeight

int

HP

int

Family

int

CSet

int

Anim

int

ExAnim

int

Framerate

int

ExFramerate

int

TouchDamage

int

WeaponDamage

int

Weapon

int

Random

int

Haltrate

int

Step

int

Homing

int

Hunger

int

Dropset

int

BGSFX

int

DeathSFX

int

HitSFX

int

DrawXOffset

int

DrawYOffset

int

DrawZOffset

int

HitXOffset

int

HitYOffset

int

HitWidth

int

HitHeight

int

HitZHeight

int

TileWidth

int

TileHeight

int

WeaponSprite

int

WeaponSFX

int[]

Defense

bool[]

SizeFlag

int[]

Attributes

bool[]

Shield

bool[]

BFlags

int

FrozenTile

int

FrozenCSet

int

Script

int[]

InitD

int

WeaponScript

int[]

WeaponInitD

int

ShadowSprite

int

SpawnSprite

int

DeathSprite

Functions#

void

GetName(char32[] ptr)

Variable descriptions#

int Tile πŸ”— Source

The base tile used by the enemy.


bool[] Flags πŸ”— Source

Undocumented. Refer to ZQuestClassic/ZQuestClassic


int Width πŸ”— Source

The β€˜width’ (W) of base tile used by the enemy.


int Height πŸ”— Source

The β€˜height’ (H) of base tile used by the enemy.


int STile πŸ”— Source

The base β€˜special’ tile used by the enemy.


int SWidth πŸ”— Source

The β€˜width’ (W) of base β€˜special’ tile used by the enemy.


int SHeight πŸ”— Source

The β€˜height’ (H) of base β€˜special’ tile used by the enemy.


int ExTile πŸ”— Source

The base EXPANDED (β€˜New’) tile used by the enemy.


int ExWidth πŸ”— Source

The β€˜width’ (W) of base EXPANDED (β€˜New’) tile used by the enemy.


int ExHeight πŸ”— Source

The β€˜height’ (H) of base EXPANDED (β€˜New’) tile used by the enemy.


int HP πŸ”— Source

The enemy’s base hit points.


int Family πŸ”— Source

The Family (Enemy Class) of the npc.


int CSet πŸ”— Source


int Anim πŸ”— Source

The β€˜O.Anim’ used by the enemy.


int ExAnim πŸ”— Source

The β€˜E.Anim’ used by the enemy.


int Framerate πŸ”— Source

The β€˜O.Anim’ animation framerate used by the enemy.


int ExFramerate πŸ”— Source

The β€˜E.Anim’ animation framerate used by the enemy.


int TouchDamage πŸ”— Source

The amount of contact damage that the enemy causes when it collides with Link.


int WeaponDamage πŸ”— Source

The power of the weapons fired by the enemy.


int Weapon πŸ”— Source

The weapon type used by the enemy.


int Random πŸ”— Source

The β€˜random rate’ of the enemy.


int Haltrate πŸ”— Source

The β€˜turn frequency’ used by the enemy during its movement phase.


int Step πŸ”— Source

The enem’s step speed.


int Homing πŸ”— Source

The homing factor of the enemy. Greater values home more keenly on Link.


int Hunger πŸ”— Source

The β€˜hunger’ value of the enemy.

Higher values make it more likely that the enemy is attracted to Bait.

Valid only for NPCT_WALK enemies.


int Dropset πŸ”— Source

The dropset used by the enemy.


int BGSFX πŸ”— Source

The Ambient sound that the enemy emits.


int DeathSFX πŸ”— Source

The sound that is played when the enemy dies.


int HitSFX πŸ”— Source

The sound that is played when the enemy is hit by an lweapon.


int DrawXOffset πŸ”— Source

The horizontal draw offset of the enemy.

Note: SizeFlag[??] must be enabled for this to function.


int DrawYOffset πŸ”— Source

The vertical draw offset of the enemy.

Note: SizeFlag[??] must be enabled for this to function.


int DrawZOffset πŸ”— Source

The depth draw offset of the enemy.

Note: SizeFlag[??] must be enabled for this to function.


int HitXOffset πŸ”— Source

The horizontal hitbox offset of the enemy.

Note: SizeFlag[??] must be enabled for this to function.


int HitYOffset πŸ”— Source

The vertical hitbox offset of the enemy.

Note: SizeFlag[??] must be enabled for this to function.


int HitWidth πŸ”— Source

The hitbox width (X component), in pixels, for the enemy.

Note: SizeFlag[??] must be enabled for this to function.


int HitHeight πŸ”— Source

The hitbox height (Y component), in pixels, for the enemy.

Note: SizeFlag[??] must be enabled for this to function.


int HitZHeight πŸ”— Source

The hitbox height (Z component), in pixels, for the enemy.

Note: SizeFlag[??] must be enabled for this to function.


int TileWidth πŸ”— Source

The drawn width (X component) of the enemy in increments of one tile.

Note: SizeFlag[??] must be enabled for this to function.


int TileHeight πŸ”— Source

The drawn height (Y component) of the enemy in increments of one tile.

Note: SizeFlag[??] must be enabled for this to function.


int WeaponSprite πŸ”— Source

The sprite used to draw the enemy weapon.


int WeaponSFX πŸ”— Source

The sfx used when the enemy fires its weapon. If WeaponSFX <= 0 no sound will be played.


int[] Defense πŸ”— Source

The defense categories for the enemy.


bool[] SizeFlag πŸ”— Source

A set of flags that determine if the values for the Enemy Editor β€˜Size’ tab are rendered by the engine.


int[] Attributes πŸ”— Source

The β€˜Misc. Attributes’ of the enemy; now 32 of these; and datatype-insensitive.


bool[] Shield πŸ”— Source

The shield status of the enemy.

Valid indices: DIR_UP (front), DIR_DOWN (back), DIR_LEFT, DIR_RIGHT, 4 (Shield can be broken).


bool[] BFlags πŸ”— Source


int FrozenTile πŸ”— Source

The base tile used to draw the enemy, when the enemy is frozen solid. //Not yet implemented in-engine.


int FrozenCSet πŸ”— Source

The CSet value used to render the enemy, when the enemy is frozen solid. //Not yet implemented in-engine.


int Script πŸ”— Source

The npc action script used by this enemy.


int[] InitD πŸ”— Source

The eight InitD args used by the npc action script for this enemy.


int WeaponScript πŸ”— Source

The weapon action script assigned to this enemy.


int[] WeaponInitD πŸ”— Source

The eight InitD args assigned to the weapon script used by this enemy.


int ShadowSprite πŸ”— Source

The shadow sprite used by the enemy, 0-255


int SpawnSprite πŸ”— Source

The spawn sprite used by the enemy, 0-255


int DeathSprite πŸ”— Source

The death sprite used by the enemy, 0-255


Function descriptions#

void GetName(char32[] ptr) πŸ”— Source

Puts the text of the Enemy Name field into string β€˜ptr’.