Skip to content

Targets

Nischhelm edited this page Feb 26, 2025 · 11 revisions

Activatable Gems define a list of targets on which the activated effect will apply on.

Default Socketed target types are

  • Self
  • Other
  • Self AOE
  • Other AOE

A potion gem effect will

  • Self: apply the potion effect on the player that wears the gems in their sockets
  • Other: apply the potion effect on the "other" entity defined by the activator (for example the hit entity in Attacking activator)
  • Self AOE: apply the potion effect on entities around the player, excluding the player itself
  • Other AOE: apply the potion effect on the "other" entity defined by the activator, excluding that "other" entity.

AOE targets require a specified Block Range integer, which will be used to find entities in an AABB around the target with the specified radius.

Conditions

Every target can have a condition. Different than the condition of the Activator, this condition will be checked for each entity that will be a target of this effect. So for example in Self AOE the activator condition checks on activation, while the target condition will check for each AOE target around the player. This allows for example to set a chance for the effect to trigger individually by affected entity instead of globally for all targets.

Example where an effect will trigger on bystanding enemies if they are burning, and can apply on the player with a rare chance of 1%:

"Targets": [
        {
          "Target Type": "Self AOE",
          "Condition": { "Condition Type": "Is Burning" }
        },
        { 
          "Target Type": "Self",
          "Condition": { "Condition Type": "Chance", "Chance":0.01 }
        }
]

Clone this wiki locally