Skip to content

RushDuel.ChangeCode ​

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

Signature ​

lua
RushDuel.ChangeCode(any e, any card, any code, any reset, any forced) -> any

Description ​

Rush Duel helper declared in RDAttach.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.

Upstream source comment ​

text
赋予: 改变卡名

Parameters ​

  • e any: Type and behavior are not yet reviewed; see the source.
  • card any: Type and behavior are not yet reviewed; see the source.
  • code any: Type and behavior are not yet reviewed; see the source.
  • reset any: Type and behavior are not yet reviewed; see the source.
  • forced 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/RDAttach.lua:234

lua
function RushDuel.ChangeCode(e, card, code, reset, forced)
    return RushDuel.CreateSingleEffect(e, nil, card, EFFECT_CHANGE_CODE, code, reset, forced)
end

Used By ​

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

  • Detected in 69 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.ChangeCode.
CardIDScriptDetected Calls
The Noodle Art of Flavor Shift120300053Rush/Scripts/c120300053.lua1
Red-Eyes Mars Dragon120306034Rush/Scripts/c120306034.lua1
Botonaginata the Music Princess120290009Rush/Scripts/c120290009.lua1
Soleil, the Fairy of Skysavior120235020Rush/Scripts/c120235020.lua1
Darkness Jointech Tyrant120257018Rush/Scripts/c120257018.lua1
Harpie Lady Feather Duster120279002Rush/Scripts/c120279002.lua1
Lua, the Fairy of Skysavior120235021Rush/Scripts/c120235021.lua1
Imaginary Leading Actor120271029Rush/Scripts/c120271029.lua1
Battletested Curse of Dragon120249031Rush/Scripts/c120249031.lua1
Voidvelg Whiterider120109060Rush/Scripts/c120109060.lua1
Accel Wonder Dark120285005Rush/Scripts/c120285005.lua1
Voidalfr Buprestruve120300003Rush/Scripts/c120300003.lua1
Blue-Eyes Vision Dragon120252004Rush/Scripts/c120252004.lua1
Vic Viper Beginning120294026Rush/Scripts/c120294026.lua1
Battletested Gaia The Fierce Knight120249032Rush/Scripts/c120249032.lua1
Cyber Processor120244021Rush/Scripts/c120244021.lua1
Skull Archfiend of Confusion120277023Rush/Scripts/c120277023.lua1
The Swordsman Who Doles Out Victory120290023Rush/Scripts/c120290023.lua1
Enceladustellime120304003Rush/Scripts/c120304003.lua1
Rare Dragorite120294008Rush/Scripts/c120294008.lua1
Vic Viper Spread Bomb120294025Rush/Scripts/c120294025.lua1
Etraynze the Sprinting Shadow Flower Ninja120285012Rush/Scripts/c120285012.lua1
The Draco120294002Rush/Scripts/c120294002.lua1
Resurrection Heliacal Riser120304039Rush/Scripts/c120304039.lua1
...and 45 more

Script Examples ​

The Noodle Art of Flavor Shift (120300053) ​

Source: Rush/Scripts/c120300053.lua

lua
	local filter=RD.Filter(cm.filter,tc)
	RD.SelectAndDoAction(aux.Stringid(m,1),filter,tp,LOCATION_MZONE,0,1,1,nil,function(g)
		RD.ChangeCode(e,g:GetFirst(),ac,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
	end)
end

Red-Eyes Mars Dragon (120306034) ​

Source: Rush/Scripts/c120306034.lua

lua
	local c=e:GetHandler()
	if c:IsFaceup() and c:IsRelateToEffect(e) then
		RD.ChangeCode(e,c,list[1],RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		if Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_GRAVE,0,1,nil) then
			RD.CanDraw(aux.Stringid(m,2),tp,1)

Botonaginata the Music Princess (120290009) ​

Source: Rush/Scripts/c120290009.lua

lua
	local c=e:GetHandler()
	if c:IsFaceup() and c:IsRelateToEffect(e) then
		RD.ChangeCode(e,c,list[1],RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
			Duel.BreakEffect()