Skip to main content

Map Dif Value

Subtracts the second Stat from the first (first − second), maps the difference with a ValueMapper and returns the result as the multiplier.

Ships for Float and Int (the Int variant rounds the result).

FieldDescription
Value MapperMin, Max, optional Curve, then Final Modifier (Add / Multiply). See Map Value for how the mapping works.

Example​

The higher your level above the target's, the more damage. Stats: the Source's Level, the Target's Level. Value Mapper: Min 0, Max 10, Final Modifier Add, Final Offset 1.

Your levelTarget levelDifferenceMultiplier
5501
10551.5
155102

The mapping uses the absolute distance from Min, so a level below the target's also raises the multiplier: 5 vs 10 → 1.5. Use a Curve that stays at 0 on that side, or a condition, if only higher levels should count.