EffectCost
subtype of function
A function used to check or perform an activated effect's cost, usually passed to Effect.SetCost.
Functions that use this type as parameter
Functions that use this type as parameter
Cost.AND- Combines multiple cost functions into one.aux.AddEquipProcedure- Adds procedure for equipping Spells.
Functions that return this type
Functions that return this type
Cost.AND- Combines multiple cost functions into one.Cost.Detach- Deleted alias ofCost.DetachFromSelf.Cost.DetachFromSelf- Creates a cost function that detaches materials from the activating card.Cost.Discard- Creates a cost function for effects that discard a card(s) as cost.Cost.HardOncePerChain- Creates a cost function for "hard once per chain" effects.Cost.PayLP- Creates a cost function for effects that pay LP as cost.Cost.SoftOncePerChain- Creates a cost function for "soft once per chain" effects.aux.DiscardCost- Alias ofCost.Discard.aux.PayLPCost- Alias ofCost.PayLP.aux.dxmcostgen- Deprecated alias ofCost.DetachFromSelf.
Signature
function(Effect e, int tp, Group eg, int ep, Group ev, Effect re, int r, int rp, int chk) → bool
function(e,tp,eg,ep,ev,re,r,rp,chk)Parameters
Effect
eThe effect being activated.
int
tpThe player activating the effect.
Group
egA group of cards associated to the event that prompted the effect activation. The specifics of this group vary depending on the event code.
int
epThe player associated to the event that prompted the effect activation.
Group
evA value associated to the event that prompted the effect activation. The specifics of this value vary depending on the event code.
Effect
reThe effect that caused the event that prompted the effect activation.
int
rComposite Reason value of the event that prompted the effect activation.
int
rpThe player that caused the event that prompted the effect activation.
int
chkMust be
0when checking if the cost can be paid, and1when performing the cost.