Skip to content

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) -> 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.
  • value any: Type and behavior are not yet reviewed; see the source.
  • desc 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: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
end

Used 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.
CardIDScriptDetected Calls
Lufer the Symbol of the Devils120309059Rush/Scripts/c120309059.lua1
Rising Protect120304055Rush/Scripts/c120304055.lua1
Sunset Rebirth120257066Rush/Scripts/c120257066.lua1
Fusionic Defense120257064Rush/Scripts/c120257064.lua1
Sevens Road Protection120217021Rush/Scripts/c120217021.lua1
Super Princess of the Flock - Max Mutton [L]120293007Rush/Scripts/c120293007.lua1
Voidvelg Kyrie120244006Rush/Scripts/c120244006.lua1
Celeb Rose Influencers120257044Rush/Scripts/c120257044.lua1
Sevens Road Charmy Witch120260062Rush/Scripts/c120260062.lua1
Tamabot King Golem120285039Rush/Scripts/c120285039.lua1
Voidvelg Elysium120227001Rush/Scripts/c120227001.lua1
Voidvelg Elysium120273004Rush/Scripts/c120273004.lua1
Divinebreath the Orchestral Music Fiend120247018Rush/Scripts/c120247018.lua1
Fate of the World120271054Rush/Scripts/c120271054.lua1
Roaring Firestorm Volcalize Phoenix120249016Rush/Scripts/c120249016.lua1
OuTerverSe Burst Oblivion120290008Rush/Scripts/c120290008.lua1
Eternal Galactica Oblivion120244035Rush/Scripts/c120244035.lua1
Abysskite Ultimail120239048Rush/Scripts/c120239048.lua1
Dragonic Escape120249062Rush/Scripts/c120249062.lua1
Ultra Evolution Miracle120274051Rush/Scripts/c120274051.lua1
Conduction Alchemicalizer Suirai120254042Rush/Scripts/c120254042.lua1
Transam Variable Linac120245002Rush/Scripts/c120245002.lua1
Wish of OuTerverSe the World-Shattering Emperor [L]120293058Rush/Scripts/c120293058.lua1
Dice Key Retra120272008Rush/Scripts/c120272008.lua1
...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)
		end

Sunset 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)