Skip to content

Card.AddCounter ​

Signature ​

lua
Card.AddCounter(Card c, int countertype, int count, [bool singly]) -> bool

Description ​

Attempts to add count counters of countertype to c and returns whether the core accepted the addition. The card must be affected by the resolving reason effect. The current reason player is used as the player adding the counters. When singly is true, counter-limit checks allow a partial addition up to the remaining limit.

Parameters ​

  • c Card
  • countertype int
  • count int
  • singly bool optional - default: false

Returns ​

  • bool

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3683

Guided Examples ​

Learn how to use this function in context:

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 144 indexed script(s).
  • Search this function in the Script Explorer with Card.AddCounter.
CardIDScriptDetected Calls
Deftero Enneacraft - "alazoneIA"92171126Scripts/c92171126.lua1
Enneacraft - Asta.PIXEA28454232Scripts/c28454232.lua1
Enneacraft - Archa.TAIL81237046Scripts/c81237046.lua1
Enneacraft - Atil.SPIA71801447Scripts/c71801447.lua1
Enneacraft - Aiza.LEON82359538Scripts/c82359538.lua1
Starving Venom Wing Dragon5148778Scripts/c5148778.lua1
Enneacraft - Atori.MAR54842941Scripts/c54842941.lua1
Endymion, the Mighty Master of Magic3611830Scripts/c3611830.lua2
Angello Vaalmonica3048768Scripts/c3048768.lua1
Bunny Ear Enthusiast39643167Scripts/c39643167.lua1
Reflection of Endymion39000945Scripts/c39000945.lua3
Dimonno Vaalmonica30432463Scripts/c30432463.lua1
Ekto Enneacraft - "tromarIA"29570824Scripts/c29570824.lua1
Magister of Endymion66104644Scripts/c66104644.lua4
Enato Enneacraft - "oknirIA"55965529Scripts/c55965529.lua1
Cubic Rebirth71442223Scripts/c71442223.lua1
Trito Enneacraft - "exapatisIA"44716748Scripts/c44716748.lua1
Proto Enneacraft - "orgIA"56187077Scripts/c56187077.lua1
Limit Code86607583Scripts/c86607583.lua1
Servant of Endymion92559258Scripts/c92559258.lua4
Reversal Box2606417Scripts/c2606417.lua1
Performapal Turn Trooper220414Scripts/c220414.lua1
Cubic Mandala8837932Scripts/c8837932.lua1
Mythical Beast Medusa54965929Scripts/c54965929.lua2
...and 120 more

Script Examples ​

Deftero Enneacraft - "alazoneIA" (92171126) ​

Source: Scripts/c92171126.lua

lua
function s.ctop(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	c:AddCounter(0x71,1)
end
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)

Enneacraft - Asta.PIXEA (28454232) ​

Source: Scripts/c28454232.lua

lua
function s.ctop(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	c:AddCounter(0x71,1)
end
function s.cfilter(c)

Enneacraft - Archa.TAIL (81237046) ​

Source: Scripts/c81237046.lua

lua
function s.ctop(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	c:AddCounter(0x71,1)
end
function s.cfilter(c)