Auxiliary.AddLinkProcedure
Signature
lua
Auxiliary.AddLinkProcedure(Card c, function|nil f, int min, [int max], [function|nil gf]) -> EffectDescription
Registers the standard Link Summon procedure for c and returns the created Effect. f filters each Link Material, min/max constrain the number of selected material cards, and gf optionally checks the selected group as a whole. The helper creates an Extra Deck EFFECT_SPSUMMON_PROC with SUMMON_TYPE_LINK, uses Auxiliary.GetLinkCount to match the Link Rating, records materials with Card.SetMaterial, and sends them to the GY with REASON_MATERIAL+REASON_LINK.
Parameters
cCard- Link Monster receiving the procedure.ffunction|nil- Optional per-material filter. nil means no extra filter beyond normal Link Material legality.minint- Minimum number of material cards that must be selected.maxintoptional - Maximum number of material cards. Defaults to c:GetLink() when omitted.gffunction|niloptional - Optional whole-group validator called as gf(selected_group, link_monster, player).
Returns
Effect- The registered Special Summon procedure effect.
Source
Utilities/procedure.lua:2128
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 469 indexed script(s).
- Search this function in the Script Explorer with
Auxiliary.AddLinkProcedure.
Script Examples
Levia-Dragoon - Daedalus (78579058)
Source: Scripts/c78579058.lua
lua
--link summon
c:EnableReviveLimit()
--aux.AddLinkProcedure(c,s.mfilter,2,3,s.glcheck)
local e0=Effect.CreateEffect(c)
e0:SetDescription(aux.Stringid(id,0))Azure Ocean Dragon Lord - Neo-Daedalus Rage (41570943)
Source: Scripts/c41570943.lua
lua
--link summon
c:EnableReviveLimit()
--aux.AddLinkProcedure(c,nil,3,4,s.glcheck)
local e0=Effect.CreateEffect(c)
e0:SetDescription(aux.Stringid(id,0))Fiendsmith's Sequence (49867899)
Source: Scripts/c49867899.lua
lua
local s,id,o=GetID()
function s.initial_effect(c)
aux.AddLinkProcedure(c,nil,2,2,s.lcheck)
c:EnableReviveLimit()
--