Skip to content

Card.EnableCounterPermit ​

Signature ​

lua
Card.EnableCounterPermit(Card c, int countertype, [int location], [function condition]) -> void

Description ​

Registers a single-card counter permit effect allowing c to receive counters of countertype in the chosen range. If location is omitted, monsters default to LOCATION_MZONE and non-monsters default to LOCATION_SZONE + LOCATION_FZONE. An optional condition callback is stored on the permit effect.

Parameters ​

  • c Card - Card receiving the counter permit effect.
  • countertype int - Counter type that c is allowed to hold.
  • location int optional - Single-effect range for the permit. Omitted defaults to LOCATION_MZONE for monsters, otherwise LOCATION_SZONE + LOCATION_FZONE.
  • condition function optional - Optional condition callback stored on the permit effect; ignored unless this argument is a function.

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 181 indexed script(s).
  • Search this function in the Script Explorer with Card.EnableCounterPermit.
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
Enneacraft - Atori.MAR54842941Scripts/c54842941.lua1
Endymion, the Mighty Master of Magic3611830Scripts/c3611830.lua1
Veda Kalarcanum40785230Scripts/c40785230.lua1
Angello Vaalmonica3048768Scripts/c3048768.lua1
Reflection of Endymion39000945Scripts/c39000945.lua1
Dimonno Vaalmonica30432463Scripts/c30432463.lua1
Ekto Enneacraft - "tromarIA"29570824Scripts/c29570824.lua1
Magister of Endymion66104644Scripts/c66104644.lua1
Enato Enneacraft - "oknirIA"55965529Scripts/c55965529.lua1
Black-Winged Assault Dragon73218989Scripts/c73218989.lua1
Trito Enneacraft - "exapatisIA"44716748Scripts/c44716748.lua1
Proto Enneacraft - "orgIA"56187077Scripts/c56187077.lua1
Limit Code86607583Scripts/c86607583.lua1
Servant of Endymion92559258Scripts/c92559258.lua1
Reversal Box2606417Scripts/c2606417.lua1
Lightsworn Sanctuary52665542Scripts/c52665542.lua1
Performapal Turn Trooper220414Scripts/c220414.lua1
Mythical Beast Master Cerberus53842431Scripts/c53842431.lua1
Mythical Beast Medusa54965929Scripts/c54965929.lua1
...and 157 more

Script Examples ​

Deftero Enneacraft - "alazoneIA" (92171126) ​

Source: Scripts/c92171126.lua

lua
	--pendulum summon
	aux.EnablePendulumAttribute(c)
	c:EnableCounterPermit(0x71,LOCATION_PZONE)
	--counter
	local e0=Effect.CreateEffect(c)

Enneacraft - Asta.PIXEA (28454232) ​

Source: Scripts/c28454232.lua

lua
	--pendulum summon
	aux.EnablePendulumAttribute(c)
	c:EnableCounterPermit(0x71,LOCATION_PZONE)
	--counter
	local e0=Effect.CreateEffect(c)

Enneacraft - Archa.TAIL (81237046) ​

Source: Scripts/c81237046.lua

lua
	--pendulum summon
	aux.EnablePendulumAttribute(c)
	c:EnableCounterPermit(0x71,LOCATION_PZONE)
	--counter
	local e0=Effect.CreateEffect(c)