RushDuel.CostShowHand
Alias: RD.CostShowHand. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.CostShowHand(any filter, any min, any max, any set_label, any set_object) -> anyDescription
Rush Duel helper declared in RDCost.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.
Upstream source comment
text
代价: 把手卡给对方观看Parameters
filterany: 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.set_labelany: Type and behavior are not yet reviewed; see the source.set_objectany: 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/RDCost.lua:206
lua
function RushDuel.CostShowHand(filter, min, max, set_label, set_object)
return RushDuel._private_cost_select_match(HINTMSG_CONFIRM, filter, LOCATION_HAND, 0, min, max, true,
function(g, e, tp, eg, ep, ev, re, r, rp)
RushDuel.SetLabelAndObject(e, g, set_label, set_object)
Duel.ConfirmCards(1 - tp, g)
Duel.ShuffleHand(tp)
end)
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 46 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.CostShowHand.
Script Examples
Skysavior Watch (120235053)
Source: Rush/Scripts/c120235053.lua
lua
return not c:IsPublic() and c:IsRace(RACE_WARRIOR+RACE_FAIRY)
end
cm.cost=RD.CostShowHand(cm.costfilter,2,2)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 thenMiracle Pick (120253052)
Source: Rush/Scripts/c120253052.lua
lua
return not c:IsPublic() and c:IsLevel(7) and c:IsAttribute(ATTRIBUTE_LIGHT+ATTRIBUTE_DARK) and c:IsRace(RACE_PSYCHO) and RD.IsDefense(c,0)
end
cm.cost=RD.CostShowHand(cm.costfilter,1,1)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 thenLovely Wolf (120260046)
Source: Rush/Scripts/c120260046.lua
lua
return c:IsCode(list[1]) and c:IsAbleToHand()
end
cm.cost=RD.CostShowHand(cm.costfilter,1,1)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp) end