Skip to content

RushDuel.ChangePosition ​

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

Signature ​

lua
RushDuel.ChangePosition(any target, any effect, any player, any reason, any pos) -> any

Description ​

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 ​

  • target any: Type and behavior are not yet reviewed; see the source.
  • effect any: Type and behavior are not yet reviewed; see the source.
  • player any: Type and behavior are not yet reviewed; see the source.
  • reason any: Type and behavior are not yet reviewed; see the source.
  • pos 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/RDAction.lua:236

lua
function RushDuel.ChangePosition(target, effect, player, reason, pos)
    local hints = Group.CreateGroup()
    local group = RushDuel.ToGroup(target):Filter(RushDuel.FilterChangePositionTarget, nil, effect, player, reason, hints)
    local tc = hints:GetFirst()
    if tc then
        Duel.Hint(HINT_CARD, 0, tc:GetOriginalCode())
    end
    if group:GetCount() > 0 then
        if pos == nil then
            return Duel.ChangePosition(group, POS_FACEUP_DEFENSE, POS_FACEUP_DEFENSE, POS_FACEUP_ATTACK, POS_FACEUP_ATTACK)
        else
            return Duel.ChangePosition(group, pos)
        end
    else
        return 0
    end
end

Used By ​

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

  • Detected in 178 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.ChangePosition.
CardIDScriptDetected Calls
Valkyrian Guard120231066Rush/Scripts/c120231066.lua1
Freshberry Collaboration120301071Rush/Scripts/c120301071.lua1
Fuden Issen120309034Rush/Scripts/c120309034.lua1
Sparkhearts Makma120298023Rush/Scripts/c120298023.lua1
Imaginary Arc Turbulence120196013Rush/Scripts/c120196013.lua1
Necromaid Trickment120294063Rush/Scripts/c120294063.lua1
Spice Cross Secret Recipe120261060Rush/Scripts/c120261060.lua1
Curse of the Magiclad Dragon120304061Rush/Scripts/c120304061.lua1
Shannah the Clad Dragon Researcher120304017Rush/Scripts/c120304017.lua1
Galactica Lost Oblivion120277042Rush/Scripts/c120277042.lua1
Heavenly Bliss120203033Rush/Scripts/c120203033.lua1
Lullalabind120246073Rush/Scripts/c120246073.lua1
Evolution Result Flash120290063Rush/Scripts/c120290063.lua1
Lovely Wolf120260046Rush/Scripts/c120260046.lua1
Animagica Majesty120277063Rush/Scripts/c120277063.lua1
False Sun120264033Rush/Scripts/c120264033.lua1
Void Veil120227029Rush/Scripts/c120227029.lua1
Plasmatic Model Smart Owl120285019Rush/Scripts/c120285019.lua1
Blaze Fiend Overlord Zebulth120287033Rush/Scripts/c120287033.lua1
Transam Scride120109036Rush/Scripts/c120109036.lua1
Hysteric Eyes120304063Rush/Scripts/c120304063.lua1
Yamiterasu the Divine Ruler120199036Rush/Scripts/c120199036.lua1
Ether Escape120235062Rush/Scripts/c120235062.lua1
Intercepting Gaia120249061Rush/Scripts/c120249061.lua1
...and 154 more

Script Examples ​

Valkyrian Guard (120231066) ​

Source: Rush/Scripts/c120231066.lua

lua
		local filter=RD.Filter(cm.posfilter,e,tp)
		RD.CanSelectGroupAndDoAction(aux.Stringid(m,1),HINTMSG_POSCHANGE,filter,cm.poscheck,tp,LOCATION_MZONE,0,1,3,nil,function(g)
			if RD.ChangePosition(g,e,tp,REASON_EFFECT,POS_FACEUP_DEFENSE)~=0 then
				local og=Duel.GetOperatedGroup()
				og:ForEach(function(tc)

Freshberry Collaboration (120301071) ​

Source: Rush/Scripts/c120301071.lua

lua
	local filter=RD.Filter(cm.filter,e,tp)
	RD.SelectAndDoAction(HINTMSG_POSCHANGE,filter,tp,LOCATION_MZONE,0,1,1,nil,function(g)
		if RD.ChangePosition(g,e,tp,REASON_EFFECT,POS_FACEUP_DEFENSE)~=0 and e:GetLabel()==1 then
			RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_DESTROY,cm.desfilter,tp,0,LOCATION_MZONE,1,1,nil,function(sg)
				Duel.Destroy(sg,REASON_EFFECT)

Fuden Issen (120309034) ​

Source: Rush/Scripts/c120309034.lua

lua
	local filter=RD.Filter(cm.filter,e,tp)
	RD.SelectAndDoAction(HINTMSG_SET,filter,tp,0,LOCATION_MZONE,1,1,nil,function(g)
		if RD.ChangePosition(g,e,tp,REASON_EFFECT,POS_FACEDOWN_DEFENSE)~=0
			and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil)
			and Duel.SelectEffectYesNo(tp,g:GetFirst(),aux.Stringid(m,1)) then