Skip to content

RushDuel.CostSendOnFieldToGrave ​

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

Signature ​

lua
RushDuel.CostSendOnFieldToGrave(any filter, any min, any max, any except_self, any set_label_before, any set_object_before, any set_label_after, any set_object_after) -> 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.
  • except_self any: Type and behavior are not yet reviewed; see the source.
  • set_label_before any: Type and behavior are not yet reviewed; see the source.
  • set_object_before any: Type and behavior are not yet reviewed; see the source.
  • set_label_after any: Type and behavior are not yet reviewed; see the source.
  • set_object_after 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:325

lua
function RushDuel.CostSendOnFieldToGrave(filter, min, max, except_self, set_label_before, set_object_before,
    set_label_after, set_object_after)
    return RushDuel.CostSendMatchToGrave(filter, LOCATION_ONFIELD, min, max, except_self, false, false,
        set_label_before, set_object_before, set_label_after, set_object_after)
end

Used By ​

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

  • Detected in 23 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.CostSendOnFieldToGrave.
CardIDScriptDetected Calls
Advance Form120261032Rush/Scripts/c120261032.lua1
Sitarloot120283047Rush/Scripts/c120283047.lua1
Spell Extraction120246085Rush/Scripts/c120246085.lua1
Guardian Eatos120290065Rush/Scripts/c120290065.lua1
Abysskite Ultimail120239048Rush/Scripts/c120239048.lua1
Cyber Processor120244021Rush/Scripts/c120244021.lua1
Ancient Gear Supplier120271010Rush/Scripts/c120271010.lua1
Barrel-Up-Magic Liner's Force120305039Rush/Scripts/c120305039.lua1
Coredrasil the Spirit Tree Bunrei120306018Rush/Scripts/c120306018.lua1
Ancient Gear Medic120271009Rush/Scripts/c120271009.lua1
Sacred War of Arthenée120306058Rush/Scripts/c120306058.lua1
Benevolent Dragon120294011Rush/Scripts/c120294011.lua1
Lostream Gift120309042Rush/Scripts/c120309042.lua1
Star Cat Straynya120235036Rush/Scripts/c120235036.lua1
Celeb Rose Magician120244012Rush/Scripts/c120244012.lua1
Levia-Dragon - Daedalus120199000Rush/Scripts/c120199000.lua1
Bendorbreak the Conqueror120145018Rush/Scripts/c120145018.lua1
Stratohammer Mjolnir120287071Rush/Scripts/c120287071.lua1
Dynamic Dino Dynatyranno120274038Rush/Scripts/c120274038.lua1
Gray Storm Reverie120229001Rush/Scripts/c120229001.lua1
Space Yggdrago120260009Rush/Scripts/c120260009.lua1
Don A. Corn of the Verdant Vast120244023Rush/Scripts/c120244023.lua1
Rampaging Machine Headhorn120304013Rush/Scripts/c120304013.lua1

Script Examples ​

Advance Form (120261032) ​

Source: Rush/Scripts/c120261032.lua

lua
	return math.min(ct,2)
end
cm.cost=RD.CostSendOnFieldToGrave(Card.IsAbleToGraveAsCost,1,cm.max,false,nil,nil,Group.GetCount)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,0,LOCATION_GRAVE,1,nil) end

Sitarloot (120283047) ​

Source: Rush/Scripts/c120283047.lua

lua
	return RD.IsSummonTurn(c) and Duel.IsExistingMatchingCard(cm.confilter,tp,LOCATION_MZONE,0,1,nil)
end
cm.cost=RD.CostSendOnFieldToGrave(Card.IsAbleToGraveAsCost,1,1,false)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,0,LOCATION_ONFIELD,1,nil) end

Spell Extraction (120246085) ​

Source: Rush/Scripts/c120246085.lua

lua
	return c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_SPELLCASTER) and c:IsAttack(2000,2500) and not c:IsPublic()
end
cm.cost=RD.CostSendOnFieldToGrave(cm.costfilter,1,1,true)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end