Plugin for Unreal Engine 5: Valor Ability System
This plugin provides a robust framework for managing gameplay abilities and attributes in Unreal Engine 5. It includes a base character class with an integrated Ability System Component and a comprehensive set of attributes, making it easier to create complex gameplay mechanics primarily using Blueprints. Ideal for RPGs, action games, and any project utilizing the Gameplay Ability System.
- Base Character Class: Includes
AValorCharacter, a versatile base character class. - Ability System Component: Integrated
UAbilitySystemComponentfor managing abilities. - Comprehensive Attributes: Predefined attributes such as health, stamina, mana, strength, dexterity, intelligence, and experience points.
- Blueprint Integration: Easily used in Blueprint-only projects with optional C++ coding.
- Modular Design: Flexible structure suitable for a variety of gameplay mechanics.
- Clone or Download: Clone the repository or download the plugin as a ZIP file.
- Extract: If downloaded as a ZIP file, extract it to your Unreal Engine project's
Pluginsdirectory. - Build in your IDE.
- Enable Plugin: In Unreal Engine, navigate to
Edit > Plugins, and enable theValor Ability Systemplugin. - Restart Editor: Restart Unreal Engine to complete the plugin installation.
- Create a Character: Create a new Blueprint class based on
AValorCharacter. - Assign Abilities: In the Blueprint editor, select the Ability System Component and assign abilities to your character.
- Manage Attributes: Use Blueprints to initialize and manage character attributes.
- Set Up Input: Define input actions in Project Settings and bind them to abilities in your character Blueprints.
- Open Your Character Blueprint: Based on
AValorCharacter. - Access the Ability System Component: Drag the Ability System Component to the Blueprint graph.
- Set Initial Attribute Values: Use nodes to set initial values for attributes like health, stamina, etc.
// Pseudo-Blueprint instructions
Event BeginPlay
Set Health (Value: 100)
Set Stamina (Value: 100)
Set Mana (Value: 100)
// Add other attributes as needed
- Open the Character Blueprint.
- Find the Ability System Component.
- Use the
Give Abilitynode to assign abilities to the character.
// Pseudo-Blueprint instructions
Event BeginPlay
Give Ability (Ability: YourAbilityBlueprint)
For developers who prefer or need to use C++, the plugin also supports C++ enhancements:
- Create a Derived Class: Derive a new class from
AValorCharacterand add custom logic. - Initialize Attributes and Abilities: In the derived class, use the
BeginPlaymethod to initialize attributes and abilities.
void ACustomCharacter::BeginPlay()
{
Super::BeginPlay();
if (AbilitySystemComponent)
{
if (AttributeSet)
{
AttributeSet->Health.SetBaseValue(100.0f);
AttributeSet->Health.SetCurrentValue(100.0f);
AttributeSet->Stamina.SetBaseValue(100.0f);
AttributeSet->Stamina.SetCurrentValue(100.0f);
// Add other attributes as needed
}
}
}If you'd like to contribute to this plugin, feel free to submit pull requests or report issues.
This plugin is released under the MIT License. See the LICENSE file for details.
Special thanks to the Unreal Engine community for their invaluable resources and support.
Enjoy developing with the Valor Ability System plugin and bring your gameplay mechanics to life!