Soulslike Framework Docs
  • Welcome to Soulslike Framework!
  • Framework Overview
    • About the Framework
    • Features & Systems
    • Before Purchasing
    • Personal Assistance
  • Getting Started
    • Setting up Animations
      • Setup Locomotion Blendspaces
      • Setup Custom Montages
    • Using the Utility Tools
      • Easy Setup Tool
      • Asset Creators
      • Asset Browsers
    • Actor Tags
    • Finding References
  • Workflow
    • Using a Custom Character
    • Creating & Editing Actions
    • Creating & Editing Stats/Attributes
    • Creating & Editing Status Effects
    • Creating & Editing Buffs
    • Creating & Editing Items
      • Creating & Editing Weapons
    • Creating an Enemy
    • Creating Cinematics
  • Animation Notifies
    • Damaging & Combo's
      • Register Attack Notify
      • Weapon Trace Notify
        • AI Weapon Trace Notify
      • Fist Trace Notify
        • AI Fist Trace Notify
      • Area of Effect Damage Notify
      • Spawn Projectile Notify
        • AI Spawn Projectile Notify
    • Defensive
      • Try Guard Notify
      • Hyper Armor Notify
      • Invincibility Frame Notify
    • Feedback
      • Weapon Trail Notify
        • AI Weapon Trail Notify
      • Camera Shake Notify
        • World Camera Shake Notify
      • Launch Field Notify
      • Chaos Field Notify
      • Footstep Notify
    • Miscellaneous
      • Input Buffer Notify
      • Interrupt Montage Notify
      • Camera Sequence Notify
      • Set Movement Mode Notify
      • AI State Notify
      • AI Rotate Towards Target Notify
      • Adjust Stat Notify
  • Components / Managers
    • Player Specific Components
      • Input Buffer
      • Action Manager
      • Combat Manager
      • Interaction Manager
      • Inventory Manager
      • Equipment Manager
      • Ladder Manager
      • Progress Manager
      • Save/Load Manager
      • Radar & Radar Element Components
      • Central Debug Component
    • Shared Components
      • Stat/Attribute Manager
      • Status Effect Manager
      • Weapon Collision Manager
      • Buff Manager
      • Loot Drop Manager
    • AI-Only Components
      • AI Interaction Manager
      • AI Behavior Manager
      • AI Combat Manager
      • AI Boss Manager
  • Extending Functionality
    • Using Motion Warping
    • Custom Saving/Loading
    • Adding New Settings
    • Extending Weapon Animsets
    • Weapon Specific Impact Sounds
    • Resetting Enemies After Resting
Powered by GitBook
On this page
  • How It Works
  • Example Usage

Was this helpful?

  1. Components / Managers
  2. Shared Components

Buff Manager

PreviousWeapon Collision ManagerNextLoot Drop Manager

Last updated 3 months ago

Was this helpful?

The Buff Manager (AC_BuffManager) component is responsible for managing buffs that can be applied to the player, typically gained from items or triggered gameplay events. Unlike the AC_StatusEffectManager, which tracks status effects like poison or burning, buffs are generally positive or neutral enhancements such as temporary stat boosts, increased movement speed, or resistance effects.

This component ensures that buffs are correctly applied & removed, preventing issues such as duplication or persistence after loading from save data.

It is added to the Base Character class by default (B_Base_Character).

How It Works

  • Adding Buffs

    • When an item grants a buff, the TryAddBuff() method is called. This method loads and creates an instance for the Buff Object. It ensures that effect duplication does not happen while loading from a save.

  • Removing Buffs

    • Buffs can be removed through various functions:

      • RemoveBuffOfType() → Removes a single buff of a specified type.

      • RemoveAllBuffsOfType() → Removes all active buffs of a given type.

      • RemoveBuffWithTag() → Removes a buff using a gameplay tag reference.

      • RemoveAllBuffsWithTag() → Removes all instances of the buffs associated with a gameplay tag.

    • Buffs are removed either immediately or through a delayed removal system. The delayed method ensures that no race conditions occur.

  • UI & Widget Integration

    • Whenever a buff is added or removed, the OnBuffDetected dispatcher fires, allowing connected UI elements (e.g., buff icons) to update accordingly.

Example Usage