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

Loot Drop Manager

PreviousBuff ManagerNextAI-Only Components

Last updated 3 months ago

Was this helpful?

The Loot Drop Manager (AC_LootDropManager) component is a lightweight loot selector which can be used to determine which item should be dropped based on a weighted loot table while also allowing for manual item overrides when necessary.

It can be attached to any enemy, container, or interactable object. It is added to the Soulslike Enemy (B_Soulslike Enemy) & Base Container (B_Container) classes.

How it Works

  • Loot Table Configuration:

    • The system uses a Data Table (Loot Table) that contains a list of potential item drops along with their weight scores.

    • The weights determine the probability of an item being selected when a drop is triggered.

  • Loot Selection Process:

    • When the PickItem event is called, the system:

      • Retrieves and asynchronously loads the assigned Loot Table asset. Then iterates through the table and selects an item based on its weight score.

      • If an Override Item is assigned, the system will select that item instead.

  • Spawning & Dispatching:

    • Once the selection is complete, the chosen item is sent through the OnItemReadyForSpawn dispatcher, making it available for world spawning.

Example Usage

Example from the Soulslike Enemy (B_Soulslike_Enemy) class