Skip to main content

Relative Stats for Target Stats and Attribute Stats

A Stat can participate in an Effect in two different roles:

  • As the Target Stat, whose value will be modified.
  • As an Attribute Stat, whose value is used by a Processor while processing an Effect.

These two roles often require different Relative Stats.

For example, consider the following scenarios:

  1. An Effect adds +5 to an Attack Stat.
  2. An Effect deals -10 damage to an enemy's Health Stat while using the Attack Stat as an Attribute Stat.

Now assume the Attack Stat has a Modifier Relative Stat that increases values by 10%.

In the first scenario, the BSModifier Processor uses the Attack Stat as the Target Stat. It therefore resolves the Modifier_Given Relative Stat and increases the incoming value from 5 to 5.5 before applying it to the Attack Stat.

In the second scenario, the target of the Effect is the enemy's Health Stat, while the Attack Stat is only used as an Attribute Stat during the ASModifier stage of the processing funnel to modify the Effect value. If the same Relative Stat were used here, the outgoing damage would also be increased by 10%, even though the Relative Stat was intended only to affect Attack buffs.

To avoid this ambiguity, Power allows different Relative Stats to be defined depending on whether a Stat is used as a Target Stat or as an Attribute Stat.

As shown in the samples, you will often see both Modifier_Given and Modifier_Given_AttributeStat Relative Keys.

  • Modifier_Given is resolved by BSModifier when the Stat is used as the Target Stat.
  • Modifier_Given_AttributeStat is resolved by ASModifier when the same Stat is used as an Attribute Stat to modify the Effect value.