Card Effect Factory ‐ Battle Effects - DCGO2/DCGO-Card-Scripts GitHub Wiki
This section contains continuous effects related to battle-related stats, such as DP modification.
To change the DP of a card in security, use ChangeSecurityDigimonCardDPStaticEffect
public static ChangeCardDPClass ChangeSecurityDigimonCardDPStaticEffect<T>(
Func<CardSource, bool> cardCondition,
T changeValue,
bool isInheritedEffect,
CardSource card,
Func<bool> condition,
string effectName,
bool islinkedEffect = false)
- cardCondition: The condition that needs to be met by a card in security for its DP to be modified
- changeValue: The amount to change DP by, either an integer if the change is a constant value, or a function to determine the change dynamically
- isInheritedEffect: True if the card should grant this effect as an inherit, false if it should only apply with it as the top card
- card: The card who is adding this condition
- condition: a function to determine if this DP change is in effect or not
- effectName: The name of this effect
- isLinkedEffect: Determines whether the effect is only enabled when this card is linked to another card or not. Defaults to false.
To change a digimon's own DP, use ChangeSelfDPStaticEffect
public static ChangeDPClass ChangeSelfDPStaticEffect( T changeValue, bool isInheritedEffect, CardSource card, Func condition, bool isLinkedEffect = false)
- changeValue: The amount to change DP by, either an integer if the change is a constant value, or a function to determine the change dynamically
- isInheritedEffect: True if the card should grant this effect as an inherit, false if it should only apply with it as the top card
- card: The card who is adding this condition
- condition: a function to determine if this DP change is in effect or not
- isLinkedEffect: Determines whether the effect is only enabled when this card is linked to another card or not. Defaults to false.
To change another digimon's DP, use ChangeDPStaticEffect
public static ChangeDPClass ChangeDPStaticEffect( Func<Permanent, bool> permanentCondition, T changeValue, bool isInheritedEffect, CardSource card, Func condition, Func effectName, bool isLinkedEffect = false)
- permanentCondition: The condition that needs to be met by a permanent for its DP to be modified
- changeValue: The amount to change DP by, either an integer if the change is a constant value, or a function to determine the change dynamically
- isInheritedEffect: True if the card should grant this effect as an inherit, false if it should only apply with it as the top card
- card: The card who is adding this condition
- condition: a function to determine if this DP change is in effect or not
- effectName: The name of this effect
- isLinkedEffect: Determines whether the effect is only enabled when this card is linked to another card or not. Defaults to false.
To change a digimon's own security attack, use ChangeSelfSAttackStaticEffect
public static ChangeSAttackClass ChangeSelfSAttackStaticEffect( T changeValue, bool isInheritedEffect, CardSource card, Func condition)
- changeValue: The amount to change security effect by, either an integer if the change is a constant value, or a function to determine the change dynamically
- isInheritedEffect: True if the card should grant this effect as an inherit, false if it should only apply with it as the top card
- card: The card who is adding this condition
- condition: a function to determine if this DP change is in effect or not
To change another digimon's security attack, use ChangeSAttackStaticEffect
public static ChangeSAttackClass ChangeSAttackStaticEffect( Func<Permanent, bool> permanentCondition, T changeValue, bool isInheritedEffect, CardSource card, Func condition, string hashstring = null)
- permanentCondition: The condition that needs to be met by a permanent for its security attack to be modified
- changeValue: The amount to change DP by, either an integer if the change is a constant value, or a function to determine the change dynamically
- isInheritedEffect: True if the card should grant this effect as an inherit, false if it should only apply with it as the top card
- card: The card who is adding this condition
- condition: a function to determine if this DP change is in effect or not
- hashstring: identifies this DP change, the default of null is almost always correct.