Skip to content

RushDuel.RevealDeckTopAndCanSelect ​

Alias: RD.RevealDeckTopAndCanSelect. Requires the matching Rush Duel Lua bootstrap.

Signature ​

lua
RushDuel.RevealDeckTopAndCanSelect(any player, any count, any desc, any hint, any filter, any min, any max, ... any) -> any

Description ​

Rush Duel helper declared in RDAction.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.

Upstream source comment ​

text
操作: 翻开卡组并可以选择卡

Parameters ​

  • player any: Type and behavior are not yet reviewed; see the source.
  • count any: Type and behavior are not yet reviewed; see the source.
  • desc any: Type and behavior are not yet reviewed; see the source.
  • hint any: Type and behavior are not yet reviewed; see the source.
  • filter any: Type and behavior are not yet reviewed; see the source.
  • min any: Type and behavior are not yet reviewed; see the source.
  • max any: Type and behavior are not yet reviewed; see the source.
  • ... any: Type and behavior are not yet reviewed; see the source.

Returns ​

  • any: Return contract has not been reviewed; inspect the source below.

Source ​

Rush/Utilities/RDAction.lua:442

lua
function RushDuel.RevealDeckTopAndCanSelect(player, count, desc, hint, filter, min, max, ...)
    Duel.ConfirmDecktop(player, count)
    local g = Duel.GetDecktopGroup(player, count)
    local mg = g:Filter(filter, nil, ...)
    if #mg >= min then
        local sg = RushDuel.CanSelect(desc, hint, player, mg, nil, min, max)
        if sg and #sg > 0 then
            g:Sub(sg)
            return sg, g
        end
    end
    return Group.CreateGroup(), g
end

Used By ​

Generated from the local Rush/Scripts/ folder and rush_cards.cdb.

  • Detected in 51 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.RevealDeckTopAndCanSelect.
CardIDScriptDetected Calls
Soleil, the Fairy of Skysavior120235020Rush/Scripts/c120235020.lua1
Abysslayer Quintiamat120257021Rush/Scripts/c120257021.lua1
Rurigra the Eternal120285028Rush/Scripts/c120285028.lua1
Cornetlass the Music Princess120287066Rush/Scripts/c120287066.lua1
Rising HERO Argent120263010Rush/Scripts/c120263010.lua1
Lostream Record120309044Rush/Scripts/c120309044.lua1
Lovely Ange120272026Rush/Scripts/c120272026.lua1
Voidvelg Whiterider120109060Rush/Scripts/c120109060.lua1
Hybridrive Orbuster120264007Rush/Scripts/c120264007.lua1
Memory of Sunlit120300051Rush/Scripts/c120300051.lua1
Scissor Hercules120298038Rush/Scripts/c120298038.lua1
Summoner Monk120307009Rush/Scripts/c120307009.lua1
Fist the Star Protector's Roaring Gauntlet120306011Rush/Scripts/c120306011.lua1
Leave it to the Sparkhearts!120298021Rush/Scripts/c120298021.lua1
Weaksauce Brassdes120304066Rush/Scripts/c120304066.lua1
Imaginary Arc Actor120271037Rush/Scripts/c120271037.lua1
Kibatsu the Cutting Edge Deity120246052Rush/Scripts/c120246052.lua1
Encounter of the Stars120305025Rush/Scripts/c120305025.lua1
Dice Key Mekuru120261010Rush/Scripts/c120261010.lua1
Dark Magician's Curtain120238012Rush/Scripts/c120238012.lua1
Meteor Drake120253028Rush/Scripts/c120253028.lua1
Necromaid Order120294051Rush/Scripts/c120294051.lua1
Evasive Chaos Ninjutsu Art of Goshinichu120277054Rush/Scripts/c120277054.lua1
Mercissus the Planetairy120293053Rush/Scripts/c120293053.lua1
...and 27 more

Script Examples ​

Soleil, the Fairy of Skysavior (120235020) ​

Source: Rush/Scripts/c120235020.lua

lua
		if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<4 then return end
		Duel.BreakEffect()
		local sg,g=RD.RevealDeckTopAndCanSelect(tp,4,aux.Stringid(m,1),HINTMSG_ATOHAND,cm.thfilter,1,1)
		if sg:GetCount()>0 then
			Duel.DisableShuffleCheck()

Abysslayer Quintiamat (120257021) ​

Source: Rush/Scripts/c120257021.lua

lua
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	if RD.Draw()~=0 and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
		local sg,g=RD.RevealDeckTopAndCanSelect(tp,5,aux.Stringid(m,2),HINTMSG_ATOHAND,cm.thfilter,1,3)
		if sg:GetCount()>0 then
			Duel.DisableShuffleCheck()

Rurigra the Eternal (120285028) ​

Source: Rush/Scripts/c120285028.lua

lua
		if RD.SendToDeckBottom(g,e,tp,REASON_EFFECT)~=0
			and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>3 then
			local sg,lg=RD.RevealDeckTopAndCanSelect(tp,4,aux.Stringid(m,1),HINTMSG_ATOHAND,cm.thfilter,1,1)
			if sg:GetCount()>0 then
				Duel.DisableShuffleCheck()