Behaviors

Docs

Behaviors are the basic unit of specifying how enemies act in the world. They have some rules that determine how they are executed.
In this section, you will find all Behaviors that can be used.


AnnounceOnDeath

Sends out an announcement when the host dies.

AoeDamage

Creates a blast around the host that can deal damage.

BackAndForth

Makes the host move back and forth around its current location.

BringEnemy

Summons an already existing entity to the host's position.

Buzz

Moves to a random point at a given distance

ChangeMusic

Changes the world music.

ChangeMusicOnDeath

Changes music when the host dies.

ChangeSize

Causes the host to change sprite size.

Charge

Moves straight toward a nearby player's position, then stop.

Circle

Moves in a circle around the nearest player.

ClearTag

Removes a tag.

ConditionalEffect

Set a condition effect on the monster

ConditionEffectRegion

Gives an effect to players within a certain area

Decay

Kill the host after a certain amount of time

Destroy

Deletes nearby objects

DropPortalOnDeath

Spawns a portal on death with a probability

Duration

Behavior continues for a set amount of time

Flash

Flashes a given color for a certain amount of time

Follow

Moves toward a nearby player

GoTo

Moves toward a given position on the map

Grenade

Throws an AOE at a player or given point

GroundTransform

Changes the tiles around the entity

Heal

Heals enemies for a given amount

HealPlayer

Heals the closest player

HealPlayerMP

Heals players mana

Jump

Moves the host to a random position in the given area.

KillPlayer

Kills player when a specific message is said

MakeMinions

Spawns minions in waves

MobConditionEffectRegion

Gives condition effect to mobs in the region

MoveLine

Moves in a straight line heading in direction of the angle given

MultiplyLootValue

Multiplies the loot chances of the host entity

MutePlayer

Mutes players that are set as AttackTarget

OpenGate

Removes all walls in a given area

Orbit

Circle around a given entity or player.

Order

Switches a targeted entity to another state.

PlaceMap

Places a setpiece.

PlayerLightning

The host shoots out lightning that does damage to other entities (for PlayerOwner).

PlaySound

Play a sound to players nearby to host.

Prioritize

Goes through a list of cycle behaviors, and if one cannot be performed, switches to the next behavior.

Protect

Keep close to a monster of the given type.

RemoveConditionEffect

Removes the given condition effect from host.

RemoveTileObject

Removes the target TileObject within an area.

ReturnToSpawn

Makes the host move back to spawnpoint.

ScaleHP

Adjusts the hosts health based on how many players are present.

Sequence

Goes through a list of cycle behaviors, and switches between ticks

SetAltTexture

Use an alternative texture.

SetAltTextureSequence

Use an alternative texture in sequential order.

SetTag

Adds a tag.

Shoot

Shoots projectile(s).

StatBoostRegion

Gives a stat boost to players within a certain area

StayAbove

Host will stay above a certain altitude.

StayBack

Attempt to stay at least a certain distance from target

StayCloseToSpawn

Attempt to stay at least a certain distance from target

Swirl

Circle around an area (player or just point)

Taunt

Send single chat message.

TeleportToTarget

Teleports to the host's target entity.

Timed

Ticks the given child behaviors for a given time.

TossObject

Throw an object.

TransferDamage

Transfers damage amounts on death to targeted entity.

Transform

Transforms host into targeted entity.

Wander

Move in a random direction.

WhileEntityNotWithin

Ticks the given child behavior while entity is not within range.

WhileEntityWithin

Ticks the given child behavior while entity is within range.