SlashCo Wiki

Player:ItemValue

 any Player:ItemValue( string valueName, any fallback, boolean isSecondary )

Description

Returns the value of the given field from one of the player's active effects, or from the item in the primary (or secondary) slot if no active effect defines it.
Returns fallback if neither does. Assumes a survivor-only context and doesn't check the player's team.

Arguments

1string valueName

Field name to look up on the effect/item table.

2any fallback

Value returned if neither an effect nor the item defines the field.

3boolean isSecondary

If true, checks the secondary item slot instead of the primary one.

Returns

1any value

The resolved value.