Monster Programming

Various commands can be used to control monsters either by creating them from scratch in DelvEdit, or via monsters.dat, which is the most ideal way to keep a full list of what you have available. Those commands are as follows.

Command

Description

Type

yOffset

Adjusts a monster's Y Offset in relation to ground level.

Float

maxHp

How much health a monster has.

Int

floating

Toggles between flying and ground movement.

Boolean

name

The name of the monster.

String

speed

The monster's current walking speed.

Float

tex

The non-animated placeholder texture for the monster.

String

atk

The monster's attack damage.

Int

bloodType

The monster's blood particle color.

String

bloodPoolDecal

The monster's blood decal used for walls and floors.

String

bloodSplatterDecal

A secondary decal used in the same manner as the pool decal.

String

stepHeight

How high of a ledge a monster can step up to from its current height.

Float

canOpenDoors

Enables / Disables the ability for a monster to open doors.

Boolean

alertSound

The sound used when a monster sees the player.

String

attackSound

The sound used when a monster attacks the player.

String

dieSound

The sound used when a monster dies.

String

hurtSound

The sound used when a monster is hurt.

String

idleSound

The sound used when a monster is idling.

String

walkAnimation

A list of frames used for the monster's walking animation.

Array

attackAnimation

A list of frames used for the monster's attack animation.

Array

hurtAnimation

A list of frames used for the monster's hurt animation.

Array

dieAnimation

A list of frames used for the monster's death animation.

Array

spriteAtlas

The sprite atlas used for the monster's animation frames.

String

chasetarget

Enables / Disables player chasing behavior.

Boolean

hasAttackAnim

Specifies whether or not a special animation sequence should be played when the monster attacks.

Boolean

painChance

The chance of a monster being stunned when attacked.

Float

attackStartDistance

Sets how far away a monster must be from a player before they will start to attack them.

Float

damageType

Designates which damage type is inflicted by a monster's melee attacks.

String

ranged

Enables / Disables ranged attack behavior.

Boolean

collision

Sets up collision parameters for the monster's hitbox.

Array

triggersOnDeath

A trigger initiated upon a monster's death.

String

baseLevel

scale

Increases or decreases a monster's size. Y Offset will likely need to be changed as well if scale for a monster is modified.

Float

spell

Sets up a list of spells available for the monster to choose from.

Object

projectile

Sets up a list of projectiles available for the monster to choose from.