llms.txt: machine-readable documentation index. Markdown version of this page is also available.

Ninja Bear Studio Plugins Help

Grant Starting Attributes and Abilities

Give a character 25 energy and a Recover ability that restores 50. Use a character from First Steps and an Attribute Set supplied by your project. The example uses an Energy attribute declared by UTrainingAttributeSet. Substitute your set and attribute names throughout.

Start the character with 25 energy

  1. Create a Data Table with the AttributeMetaData row structure. Name the row TrainingAttributeSet.Energy and set Base Value to 25. The part before the dot is the reflected name of the class that declares the attribute. For a native class, omit the C++ prefix U.

  2. Open the character's G.A.S. Setup asset. Under Default Attribute Sets, add your set, assign the table to Attribute Table, and leave Instantiation Scope at Both. If your set clamps energy to a maximum, initialize that maximum to at least 75.

Grant a recovery move

  1. Create an instant Gameplay Effect named GE_RecoverEnergy. Add a modifier for Energy, choose the additive operation, and set the magnitude to 50.

  2. Create GA_Recover as a Blueprint based on NinjaGASGameplayAbility. On Activate Ability, call Commit Ability. On success, use Apply Gameplay Effect to Owner with GE_RecoverEnergy at level 1. End the ability on both the success and failure paths.

  3. Add GA_Recover to the bundle's Default Gameplay Abilities at level 1. In a standalone test, use Try Activate Ability by Class on the character's component from a test button or a level event after initialization.

React to a Grant

For a passive move, give a NinjaGASGameplayAbility the exact asset tag Ability.Passive. The base ability tries to activate it when its avatar is set. A permanent starting bonus that only changes a value or grants a tag can go directly in Default Gameplay Effects.

For a C++ ability bar, read the abilities already granted when the bar opens, then listen to OnAbilityGiven() on the Ninja component for later grants. Its callback receives const FGameplayAbilitySpec&. Use the spec's class to choose the icon and its handle to identify the grant. Remove the delegate binding when the bar closes or changes components.

Try It in Play

Inspect the character with showdebug abilitysystem. Energy should read 25 before you press the button, and the abilities list should already include GA_Recover. Activate it once and check for 75. If you see the grant but energy stays at 25, check the effect's target attribute and whether the ability committed. If energy starts at zero, check the table's row name and which bundle is assigned.

25 November 2026