Skip to content

Duel.GetCustomActivityCount ​

Source Code | Usage Examples | Duel Functions

Returns the number of times a player has performed a specified custom activity that was registered through Duel.AddCustomActivityCounter.

Signature ​

Duel.GetCustomActivityCount(int custom_id, int player, ActivityCode activity_code) → int

lua
Duel.GetCustomActivityCount(custom_id,player,activity_code)

Parameters ​

  • int custom_id ​

    The counter's custom id.

  • int player ​

    The player to get the activities of.

  • ActivityCode activity_code ​

    The type of activity to get the count of.

Returns ​

  • int ​

    The number of times player has performed the activity.


See Also ​