Target Options Entity

Target Options Entity

The target_options entity defines valid targeting options for skills and interactions, controlling what entities can be targeted by abilities.

Key Properties

  • id: Option ID
  • target_key: Target identifier
  • target_label: Display name

Common Target Options

  • self: Target only the skill owner
  • enemy: Target hostile entities
  • ally: Target friendly entities
  • aoe: Area of effect targeting multiple entities
  • ground: Target a ground location
  • none: No target required (self-cast)

Targeting Behavior

Self Target

Skills target only the owner. Used for:

  • Self-buffs and healing
  • Defensive abilities
  • Transformation skills

Enemy Target

Skills target hostile entities. Used for:

  • Attack skills
  • Debuffs
  • Damage-over-time effects

Ally Target

Skills target friendly entities. Used for:

  • Healing abilities
  • Group buffs
  • Support skills

AOE Target

Skills affect multiple targets in an area. Used for:

  • Area damage skills
  • Group healing
  • Mass buffs/debuffs

Ground Target

Skills target a specific location. Used for:

  • Placed effects (traps, zones)
  • Summoning abilities
  • Location-based skills

No Target

Skills activate without requiring target selection. Used for:

  • Passive abilities
  • Automatic self-buffs
  • Toggle skills

Skill Integration

Target options work with skill configuration:

  • Range: Maximum distance for target validation
  • allowSelfTarget: Enable/disable self-targeting
  • autoValidation: Automatic target validation

Target Validation

The system automatically validates:

  • Target is within skill range
  • Target type matches target option
  • Target is alive/valid
  • Line of sight (if configured)

Custom Target Options

Create custom target options for specialized mechanics:

  • Building/structure targeting
  • Vehicle/mount targeting
  • Specific entity type targeting
  • Condition-based targeting

Database Relations

  • skills_skill: Skills using these target options

Implementation

Target options are typically predefined in the system. When creating skills, select appropriate target option based on skill behavior.

Package

Target validation integrated in @reldens/skills package skill execution flow.

Go Up