RushDuel.SendDeckTopToGraveAndCanSelectGroup
Alias: RD.SendDeckTopToGraveAndCanSelectGroup. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.SendDeckTopToGraveAndCanSelectGroup(any player, any count, any desc, any hint, any filter, any check, any min, any max, ... any) -> anyDescription
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
playerany: Type and behavior are not yet reviewed; see the source.countany: Type and behavior are not yet reviewed; see the source.descany: Type and behavior are not yet reviewed; see the source.hintany: Type and behavior are not yet reviewed; see the source.filterany: Type and behavior are not yet reviewed; see the source.checkany: Type and behavior are not yet reviewed; see the source.minany: Type and behavior are not yet reviewed; see the source.maxany: 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:517
lua
function RushDuel.SendDeckTopToGraveAndCanSelectGroup(player, count, desc, hint, filter, check, min, max, ...)
if Duel.DiscardDeck(player, count, REASON_EFFECT) ~= 0 then
local g = Duel.GetOperatedGroup()
local mg = g:Filter(filter, nil, ...)
if #mg >= min then
local sg = RushDuel.CanSelect(desc, hint, player, mg, check, min, max, ...)
if sg and #sg > 0 then
g:Sub(sg)
return sg, g
end
end
return Group.CreateGroup(), g
end
return Group.CreateGroup(), Group.CreateGroup()
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 2 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.SendDeckTopToGraveAndCanSelectGroup.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Reminiscence of the Epic Tale | 120272054 | Rush/Scripts/c120272054.lua | 1 |
| OuTerverSe Jumble Recovery | 120290040 | Rush/Scripts/c120290040.lua | 1 |
Script Examples
Reminiscence of the Epic Tale (120272054)
Source: Rush/Scripts/c120272054.lua
lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local sg,og=RD.SendDeckTopToGraveAndCanSelectGroup(tp,4,aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),cm.check,1,2)
if sg:GetCount()>0 then
Duel.BreakEffect()OuTerverSe Jumble Recovery (120290040)
Source: Rush/Scripts/c120290040.lua
lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local sg,og=RD.SendDeckTopToGraveAndCanSelectGroup(tp,3,aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),cm.check,1,2)
if sg:GetCount()>0 then
Duel.BreakEffect()