RushDuel.AttachEffectIndes
Alias: RD.AttachEffectIndes. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.AttachEffectIndes(any e, any card, any value, any desc, 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.valueany: Type and behavior are not yet reviewed; see the source.descany: 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:79
lua
function RushDuel.AttachEffectIndes(e, card, value, desc, reset, forced)
local attach = RushDuel.CreateSingleEffect(e, desc, card, EFFECT_INDESTRUCTABLE_EFFECT, value, reset, forced)
attach:SetOwnerPlayer(e:GetHandlerPlayer())
return attach
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 73 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.AttachEffectIndes.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Lufer the Symbol of the Devils | 120309059 | Rush/Scripts/c120309059.lua | 1 |
| Rising Protect | 120304055 | Rush/Scripts/c120304055.lua | 1 |
| Sunset Rebirth | 120257066 | Rush/Scripts/c120257066.lua | 1 |
| Fusionic Defense | 120257064 | Rush/Scripts/c120257064.lua | 1 |
| Sevens Road Protection | 120217021 | Rush/Scripts/c120217021.lua | 1 |
| Super Princess of the Flock - Max Mutton [L] | 120293007 | Rush/Scripts/c120293007.lua | 1 |
| Voidvelg Kyrie | 120244006 | Rush/Scripts/c120244006.lua | 1 |
| Celeb Rose Influencers | 120257044 | Rush/Scripts/c120257044.lua | 1 |
| Sevens Road Charmy Witch | 120260062 | Rush/Scripts/c120260062.lua | 1 |
| Tamabot King Golem | 120285039 | Rush/Scripts/c120285039.lua | 1 |
| Voidvelg Elysium | 120227001 | Rush/Scripts/c120227001.lua | 1 |
| Voidvelg Elysium | 120273004 | Rush/Scripts/c120273004.lua | 1 |
| Divinebreath the Orchestral Music Fiend | 120247018 | Rush/Scripts/c120247018.lua | 1 |
| Fate of the World | 120271054 | Rush/Scripts/c120271054.lua | 1 |
| Roaring Firestorm Volcalize Phoenix | 120249016 | Rush/Scripts/c120249016.lua | 1 |
| OuTerverSe Burst Oblivion | 120290008 | Rush/Scripts/c120290008.lua | 1 |
| Eternal Galactica Oblivion | 120244035 | Rush/Scripts/c120244035.lua | 1 |
| Abysskite Ultimail | 120239048 | Rush/Scripts/c120239048.lua | 1 |
| Dragonic Escape | 120249062 | Rush/Scripts/c120249062.lua | 1 |
| Ultra Evolution Miracle | 120274051 | Rush/Scripts/c120274051.lua | 1 |
| Conduction Alchemicalizer Suirai | 120254042 | Rush/Scripts/c120254042.lua | 1 |
| Transam Variable Linac | 120245002 | Rush/Scripts/c120245002.lua | 1 |
| Wish of OuTerverSe the World-Shattering Emperor [L] | 120293058 | Rush/Scripts/c120293058.lua | 1 |
| Dice Key Retra | 120272008 | Rush/Scripts/c120272008.lua | 1 |
| ...and 49 more |
Script Examples
Lufer the Symbol of the Devils (120309059)
Source: Rush/Scripts/c120309059.lua
lua
local reset=RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END
g:ForEach(function(tc)
RD.AttachEffectIndes(e,tc,cm.indval,aux.Stringid(m,2),reset)
RD.AttachCannotToHandEffect(e,tc,1,aux.Stringid(m,3),reset)
RD.AttachCannotToDeckEffect(e,tc,1,aux.Stringid(m,4),reset)Rising Protect (120304055)
Source: Rush/Scripts/c120304055.lua
lua
RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),filter,tp,LOCATION_MZONE,0,1,1,nil,function(sg)
Duel.BreakEffect()
RD.AttachEffectIndes(e,sg:GetFirst(),cm.indval,aux.Stringid(m,3),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
endSunset Rebirth (120257066)
Source: Rush/Scripts/c120257066.lua
lua
Duel.BreakEffect()
g:ForEach(function(tc)
RD.AttachEffectIndes(e,tc,cm.indval,aux.Stringid(m,2),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
end)