Fusion.CreateSummonEff
Source Code | Usage Examples | Fusion
Functions
Creates an effect that performs a Fusion Summon. Can be used with Normal Spell/Trap Cards by default.
Signature
Fusion.CreateSummonEff(Card c
, [FusionMonsterFilter fusfilter
, FusionMaterialFilter matfilter
= Card.IsAbleToGrave
, FusionExtraMaterial extrafil
= nil
, FusionMaterialOperation extraop
= nil
, Card|Group|FusionMandatoryMaterial gc
= nil
, FusionStage2 stage2
= nil
, int exactcount
, int sum_type
= SUMMON_TYPE_FUSION|MATERIAL_FUSION
, int location
= LOCATION_EXTRA
, int chkf
= chkf and chkf|tp or tp
, int desc
= 1170
, function preselect
= nil
, bool nosummoncheck
= false
, EffectTarget extratg
= false
, int mincount
= nil
, int maxcount
= nil
, int sumpos
= POS_FACEUP
]) → Effect
Fusion.CreateSummonEff(c,fusfilter,matfilter,extrafil,extraop,gc,stage2,exactcount,sum_type,location,chkf,desc,preselect,nosummoncheck,extratg,mincount,maxcount,sumpos)
Parameters
Card
c
The Card that will perform the Fusion Summon.
FusionMonsterFilter
fusfilter
Optional.
A filter that must return true for the monster to be Fusion Summoned, along with the default Fusion mechanic checks.
FusionMaterialFilter
matfilter
Optional. Defaults to
Card.IsAbleToGrave
.A filter that must return true for the candidate materials.
FusionExtraMaterial
extrafil
Optional. Defaults to
nil
.A function that returns an additional group of materials.
FusionMaterialOperation
extraop
Optional. Defaults to
nil
.A function to perform on the Fusion materials.
Card|Group|FusionMandatoryMaterial
gc
Optional. Defaults to
nil
.Card(s) that must be used as materials.
FusionStage2
stage2
Optional. Defaults to
nil
.A function to perform after the summon.
int
exactcount
Optional.
The exact number of materials that must be used (e.g. Ostinato)
int
sum_type
Optional. Defaults to
SUMMON_TYPE_FUSION|MATERIAL_FUSION
.The summon type that will be use for the summon.
int
location
Optional. Defaults to
LOCATION_EXTRA
.The location the monsters can be summoned from.
int
chkf
Optional. Defaults to
chkf and chkf|tp or tp
.A FusionProcFlag to be used for the Fusion Summon.
int
desc
Optional. Defaults to
1170
.An integer pointing to a string for the effect's description.
function
preselect
Optional. Defaults to
nil
.A function to perform before Fusion Summoning a selected monster. If this function is provided, the Fusion Summon can not be cancelled.
bool
nosummoncheck
Optional. Defaults to
false
.If
true
, the monster does not need to be Special Summonable in its current state.EffectTarget
extratg
Optional. Defaults to
false
.Additional target function that will be executed when activating the effect. Useful when extra operation info must be set.
int
mincount
Optional. Defaults to
nil
.The minimum number of materials that must be used.
int
maxcount
Optional. Defaults to
nil
.The maximum number of materials that can be used.
int
sumpos
Optional. Defaults to
POS_FACEUP
.The monster's summoning position.