SlashCo Wiki

Player:StackedItemValue

 number Player:StackedItemValue( string valueName, any initialValue )

Description

Sums the given field across every source that can affect the player: their active perks, active effects, and both item slots.
Returns initialValue if nothing contributes to the sum, otherwise the summed value clamped to a minimum of 0.1.

Arguments

1string valueName

Field name to sum across perks, effects and items.

2any initialValue

Value returned if nothing contributes to the sum.

Returns

1number value

The summed value.