Skip to content

RushDuel.AttachLevel ​

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

Signature ​

lua
RushDuel.AttachLevel(any e, any card, any level, 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.
  • level 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:14

lua
function RushDuel.AttachLevel(e, card, level, reset, forced)
    return RushDuel.CreateSingleEffect(e, nil, card, EFFECT_UPDATE_LEVEL, level, reset, forced)
end

Used By ​

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

  • Detected in 44 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.AttachLevel.
CardIDScriptDetected Calls
Preferlyre120283046Rush/Scripts/c120283046.lua1
Pholus the Star Knight120203020Rush/Scripts/c120203020.lua1
Ice Age Pounder120304027Rush/Scripts/c120304027.lua2
Fiarma the Ally Spark120298025Rush/Scripts/c120298025.lua1
Peit the Ally Spark120298024Rush/Scripts/c120298024.lua1
Condurglar the Assisting Anthem120293064Rush/Scripts/c120293064.lua1
Tribute Kaiser120260073Rush/Scripts/c120260073.lua1
Royal Rebel's Great Mixer120306004Rush/Scripts/c120306004.lua1
Transam Assault Linac120272035Rush/Scripts/c120272035.lua1
Hungry Special Coupon120300055Rush/Scripts/c120300055.lua1
Dedicated Gaia The Fierce Knight120293032Rush/Scripts/c120293032.lua1
Kyoshee of the Forbidden Fist120297005Rush/Scripts/c120297005.lua1
Drahe the Wyrm Vassal120291004Rush/Scripts/c120291004.lua1
Fusionic Tribevern120261036Rush/Scripts/c120261036.lua1
Dragonic Scout120246028Rush/Scripts/c120246028.lua1
Chaos Material120293034Rush/Scripts/c120293034.lua1
Soen the Molten Martial Machine120304036Rush/Scripts/c120304036.lua1
Delirium Polynea120277033Rush/Scripts/c120277033.lua1
Jointech Prime Rex120109041Rush/Scripts/c120109041.lua1
Executie Mates120283050Rush/Scripts/c120283050.lua1
Royal Wisdom Guards120261031Rush/Scripts/c120261031.lua1
Archfiend Shaman120277020Rush/Scripts/c120277020.lua1
Glacies the Snowmeister of Sacred Splendor120253034Rush/Scripts/c120253034.lua1
Transam Linac Overwrite120245001Rush/Scripts/c120245001.lua1
...and 20 more

Script Examples ​

Preferlyre (120283046) ​

Source: Rush/Scripts/c120283046.lua

lua
		if c:IsFaceup() and c:IsRelateToEffect(e) then
			Duel.BreakEffect()
			RD.AttachLevel(e,c,2,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
			RD.CanSelectAndDoAction(aux.Stringid(m,2),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
				RD.SendToHandAndExists(g,e,tp,REASON_EFFECT)

Pholus the Star Knight (120203020) ​

Source: Rush/Scripts/c120203020.lua

lua
			Duel.BreakEffect()
			sg:ForEach(function(tc)
				RD.AttachLevel(e,tc,-4,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
			end)
		end

Ice Age Pounder (120304027) ​

Source: Rush/Scripts/c120304027.lua

lua
		local g=Duel.GetOperatedGroup()
		g:ForEach(function(tc)
			RD.AttachLevel(e,tc,1,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		end)
		RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),cm.filter,tp,LOCATION_MZONE,0,1,1,nil,function(sg)