Skip to main content

Custom Targeter

A Custom Targeter returns a list of Actors. Select it wherever an Effect Target can be Custom — a Redirector's Redirection Target, a State Based Effect's Effect Target, an Effector's definition, a Skill's Direct targeting.

Write your own by deriving from CustomTargeter and overriding GetTargets(IActorProvider actorProvider, int environmentId). Two ship with Power.

By Relation State (Filtered)​

Create › Power › Misc › Custom Targeter › By Relation State (Filtered)

The same scope as a Relation State target, as a reusable asset — handy when the same filtered scope is used from several places.

FieldDescription
Relate ToThe Interaction Actor the relation is measured from (Source, Target…).
Relation StateWhich relation: Me, Team, Ally, Neutral, Enemy (flags, so several can be combined).
FilterAn optional Targeting Filter.

Static Actors​

Create › Power › Misc › Custom Targeter › Static Actors

The live Actors with the given Actor Ids (Player, a boss…), found through PowerWorld.GetActor. Ids with no live Actor are skipped.

FieldDescription
Actor IdsThe static Actor Ids to return.

Examples​

Custom TargeterAssetReturns
By Relation State (Filtered)CustomTargeter_TeamMembersInRange_3DC — Relate To Target, Relation State Team, a range filterthe Ravenmark Bow's mark spreads from a dying enemy to its teammates in range
By Relation State (Filtered)CustomTargeter_EnemiesNearTarget_R3D (Kodes) — Relate To Target, Relation State Team, TargetingFilter_InRange6_R3Dthe foes near the one that was hit, for chain lightning
Static ActorsActor Ids = the Playerthe Player, for a Skill whose Direct targeting always hits it

Slay The Sphere adds its own targeter by code: CustomTargeter_RandomCardInHand_STS returns a random card Actor from the hand.