Link.AddProcedure
Source Code | Usage Examples | Link Functions
Adds a Link Procedure to a card.
Signature
Link.AddProcedure(Card c, CardFilter|nil f, int min, [int max = c:GetLink(), function specialchk = nil, int des = The default string 1174: "Link Summon".]) → nil
Link.AddProcedure(c,f,min,max,specialchk,des)Parameters
Card
cThe monster that will receive the summoning procedure.
CardFilter|nil
fthe function that must return
truefor aCardto be a valid material.int
minThe minimum number of materials that must be used.
int
maxOptional. Defaults to
c:GetLink().The maximum number of monsters that can be used.
function
specialchkOptional. Defaults to
nil.An additional check that must be fulfilled after obtaining the group with materials (e.g. Akashic Magician). The signature of this function must be (c,lc,SUMMON_TYPE_LINK|MATERIAL_LINK,tp) where
cis the card to be used as material,lcis the card to be summoned and tp is the player doing the summon.int
desOptional. Defaults to
The default string 1174: "Link Summon"..An integer pointing to a string to be used as description when the player attempts the summon. Useful for monsters with multiple summoning procedures.