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) -> anyDescription
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
eany: Type and behavior are not yet reviewed; see the source.cardany: Type and behavior are not yet reviewed; see the source.codeany: Type and behavior are not yet reviewed; see the source.resetany: Type and behavior are not yet reviewed; see the source.forcedany: 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)
endUsed 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.
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)
endRed-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()