Skip to content

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) -> any

Description ​

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 ​

  • 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.
  • set_label any: Type and behavior are not yet reviewed; see the source.
  • set_object 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/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)
end

Used 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.
CardIDScriptDetected Calls
Skysavior Watch120235053Rush/Scripts/c120235053.lua1
Miracle Pick120253052Rush/Scripts/c120253052.lua1
Lovely Wolf120260046Rush/Scripts/c120260046.lua1
Devil Foolish120244026Rush/Scripts/c120244026.lua1
Lovely Rabbit120300018Rush/Scripts/c120300018.lua1
Soleil, the Fairy of Skysavior120235020Rush/Scripts/c120235020.lua1
Road Servant Flare120109050Rush/Scripts/c120109050.lua1
Lua, the Fairy of Skysavior120235021Rush/Scripts/c120235021.lua1
Chemipet Chirp120261009Rush/Scripts/c120261009.lua1
Celeb Rose Wiz120253008Rush/Scripts/c120253008.lua1
Dark Matter String120261024Rush/Scripts/c120261024.lua1
Intersprime120257003Rush/Scripts/c120257003.lua1
Plectclive the Dynamauve Deadly Dirge120253043Rush/Scripts/c120253043.lua1
Quick Attack Knight120293037Rush/Scripts/c120293037.lua1
Legendary Hunter120271046Rush/Scripts/c120271046.lua1
Hybridrive Orbuster120264007Rush/Scripts/c120264007.lua1
Zombie Fireworks120217082Rush/Scripts/c120217082.lua1
Voidvelg Logisticos120244007Rush/Scripts/c120244007.lua1
Reifu the Dimensional Sworn Ally120309028Rush/Scripts/c120309028.lua1
Legendary Scout120271047Rush/Scripts/c120271047.lua1
Legendary Shooter120271045Rush/Scripts/c120271045.lua1
Space Call120260018Rush/Scripts/c120260018.lua1
Super Electromagnetic Maximum120239024Rush/Scripts/c120239024.lua1
Lovely Dove120260047Rush/Scripts/c120260047.lua1
...and 22 more

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 then

Miracle 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 then

Lovely 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