Skip to content

RushDuel.CostChangePosition ​

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

Signature ​

lua
RushDuel.CostChangePosition(any filter, any min, any max, any position, 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.
  • position 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:497

lua
function RushDuel.CostChangePosition(filter, min, max, position, except_self, set_label_before, set_object_before,
    set_label_after, set_object_after)
    local action = RushDuel._private_action_change_position(position, set_label_before, set_object_before,
        set_label_after, set_object_after)
    return RushDuel._private_cost_select_match(HINTMSG_POSCHANGE, filter, LOCATION_MZONE, 0, min, max, except_self,
        action)
end

Used By ​

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

  • Detected in 9 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.CostChangePosition.
CardIDScriptDetected Calls
Moonforce Ziggy120300014Rush/Scripts/c120300014.lua1
Super Soldier Radiance120293042Rush/Scripts/c120293042.lua1
Luna Moonforce Alba120300038Rush/Scripts/c120300038.lua1
Dragon Remover120261035Rush/Scripts/c120261035.lua1
Yamiluna the Dark Devotee120246046Rush/Scripts/c120246046.lua1
Lostream Nemora120309037Rush/Scripts/c120309037.lua1
Asbolus the Star Knight120190002Rush/Scripts/c120190002.lua1
Draco the Doctor120294003Rush/Scripts/c120294003.lua1
Bonded Bowing120140010Rush/Scripts/c120140010.lua1

Script Examples ​

Moonforce Ziggy (120300014) ​

Source: Rush/Scripts/c120300014.lua

lua
	return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
end
cm.cost=RD.CostChangePosition(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,0,LOCATION_MZONE,1,nil) end

Super Soldier Radiance (120293042) ​

Source: Rush/Scripts/c120293042.lua

lua
end
cm.cost1=RD.CostSendHandToDeckBottom(cm.costfilter1,1,1,false)
cm.cost2=RD.CostChangePosition(cm.costfilter2,1,1)
cm.cost=RD.CostChoose(HINTMSG_TODECK,cm.cost1,HINTMSG_POSCHANGE,cm.cost2)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)

Luna Moonforce Alba (120300038) ​

Source: Rush/Scripts/c120300038.lua

lua
		and not Duel.IsExistingMatchingCard(cm.confilter,tp,LOCATION_GRAVE,0,6,nil)
end
cm.cost=RD.CostChangePosition(cm.costfilter,1,1)
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()