Skip to content

Duel.AddCustomActivityCounter

Source Code | Usage Examples | Duel Functions

Registers an activity counter for tracking activities of a specified type with an associated custom id, excluding actions that match a filter. The count can be retrieved with Duel.GetCustomActivityCount, not Duel.GetActivityCount.

Signature

Duel.AddCustomActivityCounter(int custom_id, ActivityCode activity_code, function exclusion_filter) → nil

lua
Duel.AddCustomActivityCounter(custom_id,activity_code,exclusion_filter)

Parameters

  • int custom_id

    A unique id for the activity counter.

  • ActivityCode activity_code

    The type of activity to count.

  • function exclusion_filter

    A function for actions to exclude from the count.