Duel.GetActivityCount
Signature
lua
Duel.GetActivityCount(int player, int activity_type1, [int activity_type2], [... int]) -> int,...?Description
Returns activity counts for player in the same order as the requested activity_type values. Supported built-in activity types are ACTIVITY_SUMMON, ACTIVITY_NORMALSUMMON, ACTIVITY_SPSUMMON, ACTIVITY_FLIPSUMMON, ACTIVITY_ATTACK, and ACTIVITY_BATTLE_PHASE. Other values, including ACTIVITY_CHAIN in this binding, return 0.
Parameters
playerintactivity_type1intactivity_type2intoptional...intoptional
Returns
int- Count for activity_type1....?- Additional counts for each extra activity_type.
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:5066
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 83 indexed script(s).
- Search this function in the Script Explorer with
Duel.GetActivityCount.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Rank-Up-Magic Astral Force | 45950291 | Scripts/c45950291.lua | 1 |
| Numeron Calling | 77402960 | Scripts/c77402960.lua | 2 |
| Junk Warrior Extreme | 16327715 | Scripts/c16327715.lua | 1 |
| Numeron Chaos Ritual | 41850466 | Scripts/c41850466.lua | 2 |
| Red-Eyes Fusion | 6172122 | Scripts/c6172122.lua | 2 |
| Shining Hope Road | 62829077 | Scripts/c62829077.lua | 1 |
| Parallel World Fusion | 54283059 | Scripts/c54283059.lua | 1 |
| Cyber Network | 12670770 | Scripts/c12670770.lua | 1 |
| World of Prophecy | 29146185 | Scripts/c29146185.lua | 1 |
| Rank-Up-Magic Admiration of the Thousands | 96142517 | Scripts/c96142517.lua | 1 |
| Volcanic Queen | 63014935 | Scripts/c63014935.lua | 1 |
| Ties of the Brethren | 40450317 | Scripts/c40450317.lua | 1 |
| Golden Castle of Stromberg | 72283691 | Scripts/c72283691.lua | 1 |
| Shadow's Light | 61322713 | Scripts/c61322713.lua | 1 |
| Destiny End Dragoon | 76263644 | Scripts/c76263644.lua | 1 |
| Floowandereeze & Toccan | 17827173 | Scripts/c17827173.lua | 1 |
| Skull Flame | 99899504 | Scripts/c99899504.lua | 1 |
| Floowandereeze & Stri | 80433039 | Scripts/c80433039.lua | 1 |
| Time Maiden | 27107590 | Scripts/c27107590.lua | 1 |
| Blackwing - Silverwind the Ascendant | 33236860 | Scripts/c33236860.lua | 1 |
| Nekroz of Sophia | 21105106 | Scripts/c21105106.lua | 2 |
| Born from Draconis | 96699830 | Scripts/c96699830.lua | 1 |
| Lava Golem | 102380 | Scripts/c102380.lua | 1 |
| Hi-Speedroid Kendama | 97007933 | Scripts/c97007933.lua | 1 |
| ...and 59 more |
Script Examples
Rank-Up-Magic Astral Force (45950291)
Source: Scripts/c45950291.lua
lua
end
function c45950291.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.IsPlayerCanNormalDraw(tp) and Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0 end
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)Numeron Calling (77402960)
Source: Scripts/c77402960.lua
lua
end
function c77402960.getsummoncount(tp)
return Duel.GetActivityCount(tp,ACTIVITY_SUMMON)+Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)
end
function c77402960.rmfilter(c,fid)Junk Warrior Extreme (16327715)
Source: Scripts/c16327715.lua
lua
end
function s.getsummoncount(tp)
return Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)
end
function s.splimit(e,c,sump,sumtype,sumpos,targetp,se)