Skip to content

Duel.CheckTribute ​

Signature ​

lua
Duel.CheckTribute(Card c, int min, [int max], [Group|nil mg], [int toplayer], [int zone]) -> bool

Description ​

Checks whether there is a valid Tribute set for Normal Summoning or Setting c. max defaults to min, mg can restrict the candidate pool, toplayer defaults to c's current controller, and zone defaults to the current extra-summon zone limit when present or 0x1f otherwise.

Parameters ​

  • c Card
  • min int
  • max int optional - default: min
  • mg Group|nil optional
  • toplayer int optional - default: c's controller
  • zone int optional - default: current extra-summon zone limit or 0x1f

Returns ​

  • bool

Source ​

  • D:\Programs\GitHub\ygopro-core\libduel.cpp:4982

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 76 indexed script(s).
  • Search this function in the Script Explorer with Duel.CheckTribute.
CardIDScriptDetected Calls
Ehther the Heavenly Monarch96570609Scripts/c96570609.lua1
Union Activation38527680Scripts/c38527680.lua1
Koa'ki Meiru Rooklord10060427Scripts/c10060427.lua1
Erebus the Underworld Monarch23064604Scripts/c23064604.lua1
Quick Summon10086952Scripts/c10086952.lua2
Metaltron XII, the True Dracombatant57761191Scripts/c57761191.lua6
Clown Crew Biancaviso82159583Scripts/c82159583.lua1
Egyptian God Slime42166000Scripts/c42166000.lua1
Doodle Beast - Tyranno67725394Scripts/c67725394.lua1
The Winged Dragon of Ra - Sphere Mode10000080Scripts/c10000080.lua2
Primite Imperial Dragon81418467Scripts/c81418467.lua1
Dark Alligator34479658Scripts/c34479658.lua1
Zaborg the Mega Monarch87602890Scripts/c87602890.lua1
Bahalutiya, the Grand Radiance53318263Scripts/c53318263.lua1
Caius the Mega Monarch87288189Scripts/c87288189.lua1
Raiza the Mega Monarch69327790Scripts/c69327790.lua1
Master Peace, the True Dracoverlord12800564Scripts/c12800564.lua1
Blackwing - Simoon the Poison Wind81470373Scripts/c81470373.lua1
Gravekeeper's Oracle25524823Scripts/c25524823.lua2
Assault Lion67676619Scripts/c67676619.lua1
Slifer the Sky Dragon10000020Scripts/c10000020.lua1
Twilight Ninja Getsuga, the Shogun76930964Scripts/c76930964.lua1
Behemoth the King of a Hundred Battles13836592Scripts/c13836592.lua1
Cosmic Horror Gangi'el51192573Scripts/c51192573.lua1
...and 52 more

Script Examples ​

Ehther the Heavenly Monarch (96570609) ​

Source: Scripts/c96570609.lua

lua
	if c==nil then return true end
	local mg=Duel.GetMatchingGroup(c96570609.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
	return c:IsLevelAbove(7) and minc<=1 and Duel.CheckTribute(c,1,1,mg)
end
function c96570609.otop(e,tp,eg,ep,ev,re,r,rp,c)

Union Activation (38527680) ​

Source: Scripts/c38527680.lua

lua
		end
	else
		if not Duel.CheckTribute(c,minc,maxc) then return false end
	end
	if c:IsHasEffect(EFFECT_CANNOT_SUMMON,c:GetControler()) then

Koa'ki Meiru Rooklord (10060427) ​

Source: Scripts/c10060427.lua

lua
	local tp=c:GetControler()
	local mg=Duel.GetMatchingGroup(c10060427.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
	return c:IsLevelAbove(7) and minc<=1 and Duel.CheckTribute(c,1,1,mg)
end
function c10060427.otop(e,tp,eg,ep,ev,re,r,rp,c)