Skip to content

Duel.SelectTribute ​

Signature ​

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

Description ​

Lets player select min to max Tribute candidates for Normal Summoning or Setting c and returns the selected Group. mg can restrict the candidate pool. toplayer defaults to player; when toplayer differs, the core builds the extra release list for Tributing to that player's field.

Parameters ​

  • player int
  • c Card
  • min int
  • max int
  • mg Group|nil optional
  • toplayer int optional - default: player

Returns ​

  • Group

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 72 indexed script(s).
  • Search this function in the Script Explorer with Duel.SelectTribute.
CardIDScriptDetected Calls
Ehther the Heavenly Monarch96570609Scripts/c96570609.lua1
Koa'ki Meiru Rooklord10060427Scripts/c10060427.lua1
Erebus the Underworld Monarch23064604Scripts/c23064604.lua1
Metaltron XII, the True Dracombatant57761191Scripts/c57761191.lua1
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
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
Leo Wizard the Dark Fiend55423549Scripts/c55423549.lua1
Thestalos the Mega Monarch69230391Scripts/c69230391.lua1
The Tyrant Neptune88071625Scripts/c88071625.lua1
...and 48 more

Script Examples ​

Ehther the Heavenly Monarch (96570609) ​

Source: Scripts/c96570609.lua

lua
function c96570609.otop(e,tp,eg,ep,ev,re,r,rp,c)
	local mg=Duel.GetMatchingGroup(c96570609.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
	local sg=Duel.SelectTribute(tp,c,1,1,mg)
	c:SetMaterial(sg)
	Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)

Koa'ki Meiru Rooklord (10060427) ​

Source: Scripts/c10060427.lua

lua
function c10060427.otop(e,tp,eg,ep,ev,re,r,rp,c)
	local mg=Duel.GetMatchingGroup(c10060427.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
	local sg=Duel.SelectTribute(tp,c,1,1,mg)
	c:SetMaterial(sg)
	Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)

Erebus the Underworld Monarch (23064604) ​

Source: Scripts/c23064604.lua

lua
function c23064604.otop(e,tp,eg,ep,ev,re,r,rp,c)
	local mg=Duel.GetMatchingGroup(c23064604.otfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
	local sg=Duel.SelectTribute(tp,c,1,1,mg)
	c:SetMaterial(sg)
	Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)