Redirector
A Redirector is the base class for components that redirect incoming Effects during processing.
Redirectors are executed by Processors and define how an Effect is redirected, including its target Actors, source Actor, conditions, and additional redirection settings.
Power provides the following Redirector types:
- Redirector
- Reflector
- Counter Effect
Redirector Signature
The Redirector Signature defines the common configuration shared by all Redirector types.
...
Fields
| Field | Description |
|---|---|
| Redirect Target | Determines which Actor or Actors receive the redirected Effect. See Redirect Targets below. |
| Relate To | Specifies which Interaction Actor is used when Redirect Target is set to Relation State. |
| Relate To Custom Actor | Defines the custom Actor when Relate To is set to Custom. |
| Target Relation | Specifies which Relation is used to obtain the redirected target Actors. |
| Team Flags | Defines the target teams using bitwise team flags. |
| Custom Targeter | Defines a custom target selection model. |
| Targeting Filter | Filters Actors selected through multi-targeting methods such as Relation State or Team Flags. |
| Target Actor Stat | Defines the Actor Stat used when Redirect Target is set to Actor Stat. |
| Redirected Source As | Determines which Actor becomes the Source of the redirected Effect. |
| Custom Redirector Source | Defines a custom source provider. |
| Redirector Actor Stat From | Determines which Actor provides the Actor Stat when Redirected Source As is set to Actor Stat. |
| Custom Actor For Actor Stat | Defines the custom Actor when Redirector Actor Stat From is set to Custom. |
| Redirector Actor Stat Key | The Stat Key used to retrieve the Actor Stat. |
| State Check | Enables conditional redirection based on Stat conditions. |
| Use Multi Stat Check | Evaluates the condition using multiple Stats instead of a single Stat. |
| Single Stat Checker | Defines the condition evaluated against a single Stat. |
| Multi Stat Checker | Defines the condition evaluated against multiple Stats. |
| Result Attribute Check | Enables a condition based on the Effect's Result Attributes. |
| Result Attributes | Defines the Result Attributes used by the condition. Since Result Attributes can be added throughout the processing funnel, this allows conditional redirection based on previous processing results. For example, a Redirector can redirect only Critical damage. |
| Result Attribute Check Type | Determines how the Result Attribute condition is evaluated. See Result Attribute Check Types below. |
| Override Target Environment | Overrides the Environment of the redirected Effect. |
| Targeting Environment Id | The Environment Id assigned to the redirected Effect when overriding is enabled. |
| Add Result Attribute If Pass | Adds a Result Attribute to the redirected Effect after a successful redirection. |
| Adding Attribute | The Result Attribute added to the redirected Effect. |
Redirect Targets
| Target | Description |
|---|---|
| Source | Redirects the Effect to the original source Actor. |
| Target | Redirects the Effect to the original target Actor. |
| Modifier Source | Redirects the Effect to the Actor that added the Modifier. This is particularly useful with SourceSeparated Stats. |
| Trigger Actor | Redirects the Effect to the Actor that triggered it. For example, when an Effector collides with an enemy, the Trigger Actor is the enemy, even if the Effect Definition targets the original source Actor. |
| Effector | Redirects the Effect to the Actor assigned to the Effector. |
| Relation State | Redirects the Effect to Actors obtained through a configured Relation. |
| Team Flags | Redirects the Effect to Actors whose teams match the specified bitwise Team Flags. |
| Custom | Uses a custom implementation derived from CustomTargeter to determine the target Actor or Actors. |
| World | Redirects the Effect to the PowerWorld Actor. |
| Actor Stat | Redirects the Effect to the Actor referenced by the specified Actor Stat. |
Result Attribute Check Types
| Type | Description |
|---|---|
| Exists | The condition passes if the Effect contains the specified Result Attributes. |
| Not Exists | The condition passes if the Effect does not contain the specified Result Attributes. |