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
c
The monster that will receive the summoning procedure.
CardFilter|nil
f
the function that must return
true
for aCard
to be a valid material.int
min
The minimum number of materials that must be used.
int
max
Optional. Defaults to
c:GetLink()
.The maximum number of monsters that can be used.
function
specialchk
Optional. 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
c
is the card to be used as material,lc
is the card to be summoned and tp is the player doing the summon.int
des
Optional. 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.