RushDuel.SelectGroupAndDoAction
Alias: RD.SelectGroupAndDoAction. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.SelectGroupAndDoAction(any hint, any filter, any check, any tp, any s_range, any o_range, any min, any max, any expect, any action) -> 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
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.tpany: Type and behavior are not yet reviewed; see the source.s_rangeany: Type and behavior are not yet reviewed; see the source.o_rangeany: 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.expectany: Type and behavior are not yet reviewed; see the source.actionany: 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:112
lua
function RushDuel.SelectGroupAndDoAction(hint, filter, check, tp, s_range, o_range, min, max, expect, action)
local hint_selection = RushDuel._private_is_include_public(s_range, o_range)
return RushDuel._private_action_select_group(hint, filter, check, tp, s_range, o_range, min, max, expect, hint_selection, false, action)
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 40 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.SelectGroupAndDoAction.
Script Examples
Lufer the Symbol of the Devils (120309059)
Source: Rush/Scripts/c120309059.lua
lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
RD.SelectGroupAndDoAction(aux.Stringid(m,1),cm.filter,cm.check,tp,LOCATION_MZONE,0,2,2,nil,function(g)
local reset=RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END
g:ForEach(function(tc)Analyze Phlogiston (120226001)
Source: Rush/Scripts/c120226001.lua
lua
local lv=g:GetSum(Card.GetLevel,nil)
local check=RD.Check(cm.check,lv)
RD.SelectGroupAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(cm.filter),check,tp,LOCATION_GRAVE,0,3,3,nil,function(sg)
if RD.SendToDeckAndExists(sg,e,tp,REASON_EFFECT) then
Duel.BreakEffect()Planet Aegis (120297006)
Source: Rush/Scripts/c120297006.lua
lua
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
RD.SelectGroupAndDoAction(aux.Stringid(m,1),cm.filter,cm.check,tp,LOCATION_ONFIELD,0,1,2,nil,function(g)
g:ForEach(function(tc)
local e1=Effect.CreateEffect(e:GetHandler())