• Manual
  • Scripting API
  • Changelog
  • Contact
Search Results for

    Show / Hide Table of Contents
    • BattleBehaviour
      • BattleBehaviour.Fusion
        • FusionManager
        • GameCharacterFusion
      • Battle
      • BossSize
      • CharacterGroup
      • ScriptableBattlePosition
      • ScriptableBattleStage
      • TeamData
      • BattleBehaviour.Backup
        • BackupState
        • BattleBackup
    • GameActors
      • GameActor
      • GameCharacter
      • GameCharacter.AIState
      • GameItem
    • States
      • BattleState
      • ChangeStageState
      • FightState
      • FightState.LoseCondition
      • FightState.WinCondition
      • PreparationState
      • ResetSceneState
    • Battlefield
      • BattleGrid
      • BattleGrid.GridType
      • Bench
      • GridCell
      • GridCellEffect
      • SellZone
    • BattleUI
      • CharacterEnergyUI
      • CharacterHealthUI
      • CharacterStatsUI
      • DamagePopup
      • ItemDescriptionUI
      • ShopExpBarUI
      • StageUI
      • TraitDescriptionUI
      • TraitListUI
      • TraitListUI.OrderBy
      • TraitStatsUI
      • TraitUI
    • EditorScripts
      • BattleGridEditor
      • BattlePositionEditor
      • BenchEditor
      • GameCharacterEditor
      • NetworkObjectsListEditor
      • NFO_GameCharacterEditor
      • NGO_MenuActions
      • ReadOnlyDrawer
    • Formulas
      • BattleFormulas
      • BattleFormulas.DamageType
    • Movement
      • ApproximateAstarMovement
      • ExactAstarMovement
      • IBattleMovement
      • PathFinding2D
    • Multiplayer
      • BattleBehaviour
        • NetworkObjectList
        • StatsStruct
        • GameActors
          • NGO_GameCharacter
          • NGO_GameItem
        • Player
          • GamePlayer
          • IPlayer
        • States
          • MP_ConnectionState
          • MP_FightState
          • MP_PreparationState
      • ClientTransform
        • ClientNetworkTransform
      • EditorScripts
        • NGO_MenuActions
      • GamingServices
        • GamingServices
          • GamingServices.RelayHostData
          • GamingServices.RelayJoinData
      • UI
        • NetworkManagerUI
    • Shop
      • ScriptableShopItem
      • ShopCharacter
      • ShopGameItem
      • ShopItemInfo
      • ShopLevel
      • ShopLevelManager
      • ShopManager
      • ShopGUI
        • CurrencyUI
        • EquippedItemDescriptionUI
        • ShopItemUI
        • ShopUI
        • SpecialAttackDescriptionUI
        • Timer
      • ShopList
        • IShopList
        • ScriptableDeckList
        • ScriptableGroupItemList
        • ScriptableIndividualItemList
        • ShopItemList
    • Skills
      • ApplyBuffOnHitEffect
      • ApplyDebuffOnHitEffect
      • ArrowEffect
      • BuffEffect
      • BuffEffectInfo
      • FixedDamageOverTimeEffect
      • HealthMeteoriteAllEffect
      • HealthStealEffect
      • IAttackEffect
      • MeleeEffect
      • MeteoriteEffect
      • OnHitEffect
      • Projectile
      • RangedEffect
      • SimpleBuffEffect
      • SwordEffect
      • VariableDamageOverTimeEffect
    • Stats
      • CharacterStats
      • CharacterStats.CharacterStat
      • ItemModificator
      • StatModificator
      • StatsModificator
      • StatsModificator.ModificatorType
      • Trait
      • TraitOption
      • TraitOption.TraitTarget
    • Utility
      • AutoBattleSettings
      • ReadOnlyAttribute
      • UIUtility

    Class TraitOption

    Represents the effects that will be applied to a set of characters when the condition of having a certain number of characters in play is met.

    Inheritance
    Object
    TraitOption
    Namespace: AutoBattleFramework.Stats
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public class TraitOption

    Fields

    modificator

    Modification of the stats that will be applied to the characters when this option is applied.

    Declaration
    public StatsModificator modificator
    Field Value
    Type Description
    StatsModificator

    NumberOfTraits

    Number of characters in play required for this option to be activated.

    Declaration
    public int NumberOfTraits
    Field Value
    Type Description
    Int32

    OptionDescription

    Description of the effects of this option.

    Declaration
    public string OptionDescription
    Field Value
    Type Description
    String

    SelectedTraits

    The effects of this option will be applied to all characters that share at least one trait in this list. Only if Target is set to SelectedTraits.

    Declaration
    public List<Trait> SelectedTraits
    Field Value
    Type Description
    List<Trait>

    Target

    To whom the effects of this option apply.

    Declaration
    public TraitOption.TraitTarget Target
    Field Value
    Type Description
    TraitOption.TraitTarget

    TraitOptionColor

    Description of the effects of this option.

    Declaration
    public Color TraitOptionColor
    Field Value
    Type Description
    Color

    Methods

    Activate(GameCharacter, Trait)

    Activate this option in a character.

    Declaration
    public void Activate(GameCharacter character, Trait trait)
    Parameters
    Type Name Description
    GameCharacter character

    Character to which the effects of this option will be applied.

    Trait trait

    Trait that contains this option.

    Deactivate(GameCharacter, Trait)

    Dectivate this option in a character.

    Declaration
    public void Deactivate(GameCharacter character, Trait trait)
    Parameters
    Type Name Description
    GameCharacter character

    Character to which the effects of this option will be removed.

    Trait trait

    Trait that contains this option.

    OnActivation(GameCharacter, Trait)

    Method that is called only once when the option is activated.

    Declaration
    protected virtual void OnActivation(GameCharacter character, Trait trait)
    Parameters
    Type Name Description
    GameCharacter character

    Character that activates the option.

    Trait trait

    Trait containing this option.

    OnDeactivation(GameCharacter, Trait)

    Method that is called only once when the option is deactivated.

    Declaration
    protected virtual void OnDeactivation(GameCharacter character, Trait trait)
    Parameters
    Type Name Description
    GameCharacter character

    Character that deactivates the option.

    Trait trait

    Trait containing this option.

    In This Article
    Back to top Auto-Battle Framework documentation