Cast Restrictor
The Cast Restrictor Processor determines whether the Source Actor is allowed to apply an Effect.
The restriction is evaluated differently depending on the Effect type:
- For Base Stat Effects (BS), it determines whether the Source Actor is allowed to modify the Target Stat.
- For Attribute Stat Effects (AS) and Multi Attribute Stat Effects (MAS), it determines whether the Source Actor is allowed to use the Attribute Stat while applying the Effect.
For example:
- A Source Actor may be prevented from modifying a Health Stat (BS).
- A Source Actor may be prevented from dealing damage using an Attack Attribute Stat, meaning it cannot apply Effects that use Attack as an Attribute Stat (AS/MAS).
Cast Restriction is evaluated only on the Source Actor.
The Cast Restrictor Stat is resolved as follows:
- For BS Processors, the Restrictor Stat is obtained from the Source Actor using the Stat Key referenced by the Target Stat's CastRestrictorRelativeKey.
- For AS/MAS Processors, the Restrictor Stat is obtained directly from the Attribute Stat's CastRestrictorRelativeKey, since the Attribute Stat already belongs to the Source Actor.
The resolved Stat must be an Int Stat, or a SigSep / SrcSep list of them. A list checks its Stats in order and the first one above 0 restricts the cast. A restricted cast adds the Restricted Result Key to the Effect's result attributes.
Fields
| Field | Description |
|---|---|
| Cast Restrictor Relative Key | The Relative Key used to resolve the Cast Restrictor Stat. |
| Restricted Result Key | The Result Attribute added when the cast is restricted. |
| Use Conditional Modifier | Allows the Cast Restrictor value to be conditionally modified before it is evaluated. |
| Conditional Modifier | The Processor used to conditionally modify the Cast Restrictor value. |
Variations
Ships as BS, AS and MAS, each with an Effector form. See the Processor naming scheme.
| Suffix | Resolves the Restrictor Stat from | Use case |
|---|---|---|
| (none) | The Source Actor | Silence sets the Source's Cast Restrictor to 1, so that Actor cannot apply Health Effects at all. |
_Effector | The Effector's Actor | A cursed sword carries the restriction itself. Its wielder can still cast spells and punch — but nothing swung with that blade lands. |
MAS blocks the Effect if any of its Attribute Stats is restricted.