Flying Donkey GAS

Attributes, talent trees, classes, skills, damage balance and abilities for Unreal's Gameplay Ability System, made and checked in one editor window, the GAS Toolkit, that shows how they connect.

Flying Donkey GAS builds on Unreal's Gameplay Ability System (GAS): the engine's way of giving characters stats, abilities and effects that work the same in single player and multiplayer. It is one plugin, with nothing else to buy or install: the gameplay code, a ready-made character and its examples, and the GAS Toolkit, the editor window for the data that makes your characters play differently. That data is which stats they start with, which talents they can take, which classes they can be, which skills they learn and when, how hard a hit lands, and which abilities block or cancel each other. Every page of the toolkit has the same layout, every link between pages is a click away, and Validate finds the mistakes that would otherwise only show up in play. This guide installs the plugin, makes and plays a first class in ten minutes, explains every page and field, and lists every message Validate can give with how to fix it.

About Flying Donkey GAS · Flying Donkey GAS on Fab · Download the guide as a PDF

Install and set up

Flying Donkey GAS is one plugin. It holds the gameplay code (attributes, abilities, damage, a ready-made character, talents, classes and skills) and the GAS Toolkit, the editor window most of this guide is about. It needs no other product. This chapter installs it, says what it switches on and what your own C++ needs, and shows where the examples are.

Requirements

Engine Unreal Engine 5.8.
Platform Built and tested with the Windows editor.
Engine plugins Gameplay Abilities, Enhanced Input, Modular Gameplay and Game Features. They come with Unreal and switch on with Flying Donkey GAS: there is nothing to install.
Other products None. Everything in this guide is part of Flying Donkey GAS.
Project type Blueprint or C++. Installed from Fab, the plugin comes built and works in the editor of a Blueprint project too. Packaging a game needs Visual Studio 2022 with its C++ tools installed, whatever the project type: Unreal compiles the plugin into your game (for a Blueprint project it makes the C++ build target it needs by itself). A C++ project is needed to build the plugin from source (copied into the project's Plugins folder), and for the two C++ tasks: adding attributes (Generate GAS code writes that code for you) and changing an attribute's starting value.

Names in the code

The plugin's folder, its .uplugin file and its content root are FlyingDonkeyGAS, its modules start with FDGAS and its C++ classes with ASG. They are all Flying Donkey GAS: there is no second product to buy or install.

Install and enable

  1. Install Flying Donkey GAS from Fab (the Epic Games Launcher › Fab Library › Flying Donkey GAS › Install to Engine). Or copy the plugin's FlyingDonkeyGAS folder into your project's Plugins folder: it is then built from its source with your project, which must be a C++ project.
  2. Open your project. In Edit›Plugins, search for Flying Donkey GAS and tick Enabled. The four engine plugins switch on with it.
  3. Restart the editor when it asks.
  4. Open the toolkit from Tools›Flying Donkey GAS Toolkit. The version in its top bar is the plugin's.

Your own C++: the Build.cs modules

Blueprints and the toolkit need none of this. When C++ of your own uses GAS or the plugin's classes (an attribute set written by Generate GAS code is the usual case), list the modules it uses in your module's Build.cs file (Source/<YourModule>/<YourModule>.Build.cs), then build the project:

PublicDependencyModuleNames.AddRange(new string[]
{
    "Core", "CoreUObject", "Engine", "InputCore",
    "GameplayAbilities", "GameplayTags", "GameplayTasks"
});
Module Add it when your code uses
GameplayAbilities, GameplayTags, GameplayTasks Any GAS class: attribute sets, abilities, effects. Sets made by Generate GAS code need these three.
FDGASCore The plugin's attribute sets, ability bases, damage formula or Ability System Component.
FDGASCharacter The plugin's character (ASGCharacterBase).
FDGASProgression Talent trees, classes, skills, experience and levels.
FDGASInteraction, FDGASUI Interaction and harvesting, and the plugin's HUD widgets.

Where the examples are

In the Content Browser, open Settings and tick Show Plugin Content. The plugin's content appears under Plugins › Flying Donkey GAS, with the examples in its Examples folder (the path is /FlyingDonkeyGAS/Examples). Open them in the toolkit while you read: nothing in this guide changes them unless you press Save.

Example What it is
BP_ASGExampleCharacter A character with everything wired: the attribute sets, a class, a skill set, a talent tree, a heavy attack, Combat Controls (targeting, guard, dodge, a charged shot), a starting skill bar, mana, regeneration and a HUD with a crosshair. Its camera turns about a point above its head (the camera boom's Target Offset), so the crosshair is clear of the character. It has no body, because the plugin ships no meshes or animations: set your own Skeletal Mesh and Anim Class on its Mesh component, or play without one.
Data › DA_Class_Ranger, DA_Class_Archer, DA_Class_Thief A class and its two subclasses.
Data › DA_SampleTalentTree A talent tree of five nodes, one of which opens the choice of a subclass.
Data › DA_SkillSet Two skills: Heavy Strike and Fire Nova (GA_FireNova, learned at level 2).
Data › DA_DefaultAbilitySet An ability set.
Data › DA_ExampleCasterKit The example character's ability set: the mana attribute set and the effect that sets how fast stamina and mana come back.
Data › DA_ExampleUnitKit The ability set given to the example unit, which is not one of the plugin's characters: Fire Bolt, the mana to pay for it, and regeneration.
Data › DA_SampleAbilityRelationships Two tag rules.
Abilities › GA_HeavyMelee A melee attack.
Abilities › GA_FireBolt A projectile cast at the selected target, which it follows; with no target it flies to the crosshair. Costs mana, with a cooldown. Key 1.
Abilities › GA_Meteor An area attack that lands on the selected target, and needs one within 25 m. Its area is drawn where it lands. Key 2.
Abilities › GA_FireNova An area attack round its user: everything within 3.5 m takes 40, and the burst is drawn at that size. It takes no notice of the target. Costs mana, with a cooldown. Key 4, once learned.
Abilities › GA_Heal A heal: 40 health for 20 mana. Key 3.
Abilities › GA_ChargedShot A charged shot: hold F to draw, release to shoot at the crosshair.
Abilities › GA_Dodge A dodge that needs no animation: it moves the character 350 cm. Left Ctrl.
Abilities › BP_ASGExampleProjectile, BP_ASGExampleArrow Projectiles you can see: the plugin's projectile with a sphere for a body (Fire Bolt), and with a shaft that points the way it flies (the charged shot).
Abilities › BP_ASGExampleBurst An area marker you can see: the plugin's marker with a disc for a body. Meteor and Fire Nova draw their areas with it.
Abilities › GE_ASGExampleRegenRates A Gameplay Effect that sets Stamina Regen to 8 and Mana Regen to 4 a second.
UI › WBP_ASGHUD The HUD: level, health, stamina, hunger, thirst and mana; what is on each skill bar key; a target frame with the target's name and health; a marker over the target; and a crosshair.
UI › WBP_ASGVitalsCompact A slim strip of two bars, health and stamina, to place inside a screen of your own (a character or inventory screen).
Map › L_ASGExample A map to play straight away: open it and press Play. Ahead of the start, on an arc: a lever and a tree, training dummies that come back, a unit that is not one of the plugin's characters, a passive creature that runs when hurt, a wanderer and a PvP zone, with a hostile creature beyond them. To the left is a target lane and to the right an archery lane, each with a gold mark to stand on. Every station is labelled with what it does and the keys that use it. Blocks of the engine's shapes, coloured.
Map › BP_ASGExampleDummySpawner, BP_ASGExampleUnit Blueprint children of two example classes written in C++, ASGExampleSpawner and ASGExampleUnit (the Examples folder of the FDGASCharacter module): short classes to read and copy from.
Figure 1. The example map as play begins: the HUD (level, health, stamina, hunger, thirst and mana, then what is on the skill bar's keys), the keys, the stations on their arc, and the crosshair, a white dot in the middle of the screen.

The examples' class tags (Class.Ranger, Class.Ranger.Archer, Class.Ranger.Thief) and their cooldown tags (Cooldown.Ability.FireBolt, .Meteor, .Heal, .Dodge, .FireNova) come from the plugin's Config/Tags folder: they are in your project's tag list while the plugin is enabled.

With your own GAS setup

If your project already uses GAS with characters of its own, this is what works with them as they are, and what acts through the plugin's character.

Part With your own characters
Attributes Every attribute set in the project is listed, yours included, with Open the set's C++ and Changed by. The set switch acts only on characters made from the plugin's character.
Generate GAS code Writes a plain GAS attribute set (a UAttributeSet), so it works in any GAS project.
Abilities › Definitions Every ability Blueprint in the project is listed and can be edited. Abilities made from the plugin's bases also have its settings: cooldown, mana cost, action slot.
Abilities › Tag rules, Ability sets Act through the plugin's Ability System Component.
Talents, Classes, Skills Act through the plugin's character, which carries the parts that apply them (class, talents, skills, experience).
Balance Works out hits with the plugin's damage formula: the numbers are your game's when its hits are dealt with the plugin's damage effect.

Units of your own beside the plugin's character. A game can keep its own GAS characters as they are and use the plugin's character for others (a hero among an army's units, say). These parts work across the two:

You want How
To target your units The targeting component selects any actor with an Ability System Component, not only the plugin's characters: by the crosshair, by cycling, or with Select Target. Add the ASG Targetable interface to a unit that should answer for itself (not while dead, not its own side) and name itself on a target frame (Get Target Display Name).
The plugin's attacks to hurt your units The melee, area and projectile abilities hit any actor with an Ability System Component. A unit with none of the plugin's attribute sets takes the hit as a gameplay event, Event.Combat.Damage: its magnitude is the damage after the attacker's bonuses, its instigator the attacker. Handle it where the unit keeps its health (in a Blueprint, the Wait Gameplay Event to Actor node) and take the magnitude off. The first hit on each kind of unit writes one line in the Output Log saying so.
Your own damage effect instead Each of the three abilities has a Damage Effect Class. The hit's base damage is on the effect under the tag SetByCaller.Damage, so an effect made in the editor reads it with a Set By Caller magnitude. The plugin's formula (Added, Increased, More, critical hits, armor) is in its own damage effect, so an effect of yours works the damage out its own way.
To give a unit one of the plugin's abilities They are ordinary Gameplay Abilities: give one with the engine's Give Ability, or a whole kit with Grant Ability Set (below, under Ability sets), to any Ability System Component. On a component that is not the plugin's, tag rules and input tags do nothing, and a Mana Cost above 0 needs the plugin's mana attribute set (leave it at 0, or use a cost effect of your own).

See it working. The example map's purple post, BP_ASGExampleUnit, is such a unit: an actor with the engine's Ability System Component, none of the plugin's attribute sets and a health number of its own. It can be targeted, it takes the plugin's damage through the event, and it is given Fire Bolt by an ability set as play begins, with which it fires back at whoever hurts it. Its C++ class, ASGExampleUnit, is about a hundred lines.

Figure 2. The unit that is not one of the plugin's characters, after a Fire Bolt: its own health reads 75 of 100, the frame at the top names it, and the gold marker sits over it.

For a new character, the simplest route is a Blueprint class whose parent is the plugin's character, ASGCharacterBase. An existing character Blueprint can be given it as its parent (File›Reparent Blueprint in the Blueprint editor); it then has the plugin's Ability System Component, so remove its own if it had one.

Your first class in ten minutes

The quickest way to see what the toolkit does is to make something and play it. Here you make a talent tree with two nodes and a class that uses it, then play as that class: level up, take both talents, and watch maximum health rise from 100 to 175. Nothing here changes the plugin's examples.

  1. Make a level for it. File›New Level›Basic.
  2. Make a talent tree. Open Tools›Flying Donkey GAS Toolkit and choose Talents in the sidebar. Press + New; in the save window choose a folder of your own (/Game/Quickstart), type TT_Warden and press Save.
  3. Add the first node. Press + Row. In the Row inspector set Node Id to tough, Display Name to Tough and Cost to 1. Press ⊕ beside Modifiers, open the new entry, and set Attribute to ASGVitalAttributeSet.MaxHealth, Modifier Op to Add (Base) and Magnitude to 25.
  4. Add the second node. Press + Row again: Node Id tougher, Display Name Tougher, Cost 1, and a modifier of MaxHealth, Add (Base), 50.
  5. Link them. On the graph, hold Shift and drag from Tough onto Tougher: Tougher now needs Tough. Press Lay out by tier, then Validate (it says No problems found.) and Save talent tree.
Figure 3. The tree after step 5: Tougher needs Tough, and Validate found nothing.
  1. Make a class. Choose Classes and press + Row; save it as DA_Class_Warden. In the Row inspector open Class Tag, choose Add New Gameplay Tag, type Class.Warden and add it. Set Display Name to Warden and Talent Tree to TT_Warden, then press Save class.
  2. Place a character. In the Content Browser open Settings, tick Show Plugin Content, and open Plugins › Flying Donkey GAS › Examples. Drag BP_ASGExampleCharacter into the level near the Player Start. In its Details panel set Auto Possess Player to Player 0 and Default Class to DA_Class_Warden.
  3. Use the plain game mode. Open Window›World Settings and set GameMode Override to GameModeBase, so your project's own game mode brings in no character of its own for this test.
  4. Play. Press Play. The example character has no body, so you see the level from where it stands, with its HUD in the corner. Open the console with the tilde key (~, under Esc) and type showdebug abilitysystem: among the attributes listed is MaxHealth 100.00.
  5. Level up and take the talents. Type ke * ASGGrantXP 500, then ke * ASGAllocate tough, then ke * ASGAllocate tougher, each followed by Enter. The experience takes the character to level 3 with two talent points, and each talent costs one. The list now shows MaxHealth 175.00: 100, plus 25, plus 50. (The HUD's health bar stops short of full: health is still 100, of a larger maximum.)
Figure 4. The class after step 6: its tag, and its talent tree a click away.

That is the whole loop: data made in the toolkit, played straight away. ke * runs one of the character's test functions; chapter 14 lists the rest. The chapters that follow cover each page in depth.

What the GAS Toolkit is

A character made with Flying Donkey GAS is mostly data. Its health and stamina are attributes. Its class says which abilities it starts with and which talent tree it grows along. Its skills say what it can learn at each level. Its abilities say how hard a swing lands and how long until it can swing again, and a few rules say which abilities stop each other. The GAS Toolkit is the one window where all of this is made, changed and checked.

The idea in one minute

Gameplay Ability System (GAS)
Unreal's built-in system for character stats, abilities and effects. Everything in this guide sits on top of it, which is why it all works the same in single player and in multiplayer.
Attribute
A number a character has: Health, Stamina, Armor, Crit Chance. Attributes come in attribute sets, groups such as Vitals or Offense.
Gameplay Effect
A change to attributes: a heal, a poison, a buff that lasts a minute, a bonus that lasts forever. Talents and classes change attributes through effects.
Ability
Something a character does: a sword swing, a fireball, a flinch when struck. Each ability is a Blueprint asset made from one of the plugin's bases.
Ability tag
An ability's name for the rules: Ability.Melee, Ability.Special. Tag rules match abilities by their tags.
Talent tree
Nodes a player spends talent points on. A node can change stats, grant an ability, or open the choice of a subclass.
Class
An identity (Ranger) with starting stat changes, abilities and a talent tree. A subclass (Archer) extends a class.
Skill set
A list of skills a player learns, each granting one ability at a level and a cost in skill points.
Tag rule
"While an ability with this tag runs, abilities with those tags can't start": blocking, cancelling and requiring, by tags alone.
Ability set
A kit of abilities, passive effects and attribute sets, given to a character all at once and taken back all at once.

How the pieces connect

This Uses Set on its page
A class A talent tree, abilities, a parent class, subclasses Classes
A talent node Attributes (its stat changes), an ability, other nodes (its prerequisites) Talents
A skill An ability, other skills (its prerequisites) Skills
A tag rule Ability tags, and tags on the character (State.Stunned) Abilities › Tag rules
An ability set Abilities (with input tags), effects, attribute sets Abilities › Ability sets
A hit's damage The attacker's and the target's attributes Balance shows it

The toolkit shows these links in both directions. A class lists the tree and abilities it uses; an ability lists every skill, class, talent node and ability set that gives it. Go to buttons and gold links jump between them. The pictures in this guide show the plugin's examples (chapter 1); your own project shows your own assets.

Before you start: gameplay tags

Flying Donkey GAS names things with gameplay tags: short dotted names such as Ability.Melee or State.Stunned. Tag fields offer your project's tags in a list; to make a new tag, open a tag field and choose Add New Gameplay Tag, or use Edit›Project Settings›Project›GameplayTags. The plugin defines Ability.Melee, Ability.Special, State.Stunned, State.HitReacting, InputTag.Melee and InputTag.Special itself.

Tag family Used for Examples
Ability.… An ability's tags, matched by tag rules Ability.Melee, Ability.Special
State.… Conditions a character is in State.Stunned, State.HitReacting
InputTag.… Which input starts an ability in an ability set InputTag.Melee, InputTag.Special
Class.… A class's identity, added while the class is active Class.Ranger, Class.Ranger.Archer
Cooldown.… The tag an ability's cooldown holds while it runs Cooldown.Ability.Heal

The window

A tour

Figure 5. The GAS Toolkit on its Talents page, showing the plugin's sample talent tree.
PartWhat it is for
1SectionsThe six parts of the toolkit. Click one to open its page; the one open is lit in gold.
2Page headerWhere you are, the page's name, and what it is for.
3Page buttonsThe page's own buttons, then Validate (look for mistakes) and Save (write the asset to disk). Save is gold.
4SourceThe asset this page edits (here, a talent tree), + New to make another, its type, and the Workspace / All fields switch.
5RowsEverything in the source: here, the tree's nodes. Search them, add one (+ Row) or remove the selected one (the bin).
6WorkspaceThe page's own view of its data: here, the talent graph. Click in it to select a row.
7Row inspectorEvery field of the selected row. Changes apply as you make them; Save keeps them.
8Source & referencesWhere the row lives and what links to it, with links that go there. Click the heading to fold it away.
9Status barThe source and row you are on, and whether there are unsaved changes.
10Version, settings, helpThe plugin's version; the gear opens the toolkit's settings (chapter 10); ? explains the open page and every field on it.

Opening it

Open it from Tools›Flying Donkey GAS Toolkit. It opens as a tab you can dock anywhere, like any editor window: beside the Content Browser, or on a second screen. It opens on Attributes; the sidebar (part 1) switches pages.

To open it on a particular asset, right-click a talent tree, class, skill set, ability Blueprint, tag-rule mapping or ability set in the Content Browser and choose Edit in GAS Toolkit: the toolkit opens (or comes to the front) on that asset's page. Editor scripts can do the same: Open In Toolkit and Open Toolkit, in Blueprints (Editor Utility Widgets) and Python (unreal.ASGToolkitLibrary). User Guide, in the top bar beside ?, opens this guide.

Your game's own menu

A project can move the toolkit's menu entry into a menu of its own with two lines in Config/DefaultEditor.ini: [GameplayAuthoring] and Menu= followed by the menu's name. If the entry is not under Tools in your project, ask whoever set the project up where it went.

Every page works the same way

Each page edits one kind of data, and every page is laid out like the one in the tour. Read it left to right:

  1. Source (part 4): the asset the page edits, such as a talent tree or a skill set. Click it for a list of every asset of that kind, with a search box. On Classes, Abilities and Ability sets every asset is a row of its own, so the source line simply counts them.
  2. Rows (part 5): the entries in the source, such as the tree's nodes or the set's skills. Type in Find row… to narrow the list.
  3. Workspace (part 6): the page's own view of the data: a graph, a table, an overview with links. Clicking in it selects rows too.
  4. Row inspector (part 7): every field of the selected row, to change.
Figure 6. The source picker, searched for "Sample".

+ New (in the source bar) makes a new source asset, and + Row adds a row: a new entry in the source, or, on the pages where every asset is a row, a new asset. A new asset is placed with the editor's save window: choose a folder on the left, type a name at the bottom, press Save. It exists in the editor straight away, and on disk once it is saved.

Workspace / All fields (at the end of the source bar) swaps the middle for the whole source asset, every field, as the editor's ordinary details panel shows it. Use it for anything the workspace does not show; press Workspace to go back.

Figure 7. All fields on the Classes page (the switch at the end of the source bar): the whole class asset, as the editor's details panel shows it.

The Row inspector and All fields are the editor's details panel. If you have used one before, nothing here is new:

You see It means
A triangle beside a group name Click to fold or unfold the group.
A tag box with a ▾ Pick a gameplay tag from the project's list; the × clears it.
An asset box (a picture and a ▾) Click the ▾ to pick an asset. The arrow button puts in the asset selected in the Content Browser; the folder button shows the chosen one there.
N Array elements with ⊕ and a bin A list: ⊕ adds an entry, the bin empties the list. Each entry's own ▾ inserts, duplicates or deletes it.
A curved arrow at the end of a row The field differs from its default; click to put the default back.
A flag beside a text box Its translation settings (Unreal's localization): open it to see whether the text is gathered for translation.
A warning triangle on that flag The text is not marked for translation and won't be gathered. If your game will be translated, open the flag and tick Localize.
A search box at the top Type part of a field's name to show only the fields that match.

Saving and validating

Changes apply in the editor as you make them: play in the editor and you play with them. The status bar says Unsaved changes until they are written to disk.

Save (the gold button; its name says what it saves, such as Save talent tree) writes the page's asset. When the editor is connected to source control (Perforce, Git and so on) Save checks the file out first, or marks a new asset to be added. A line under the header says what happened: Saved DA_SampleTalentTree., or why it was not saved.

Validate looks for anything that would stop the data working in play, without saving. Save runs the same checks after it saves, so you see them either way.

Figure 8. Validate found nothing wrong.
Figure 9. A mistake made on purpose (Savagery asks for a node the tree does not have): Validate names it.
PartWhat it is
1A problemRed: something that will not work in play. Click the line to select the row it is about.
2DismissHides the messages. Validate again at any time.

A Problem (red) will not work in play as it is: a prerequisite that is not in the tree, a skill with no ability. A Note (gold) works but is probably a mistake: a node with no display name. Chapter 11 lists every message and what to do about it.

Attributes

Figure 10. The Attributes page on the plugin's vitals set, Health selected.
PartWhat it is for
1The set switchWhether characters get this set. Saved in the project's settings.
2Where it comes fromCORE: a set that comes with the plugin. PROJECT: one of your own.
3The tableEach attribute's starting value, its maximum, its category, and whether it is sent to other players.
4Open the set's C++Opens the set's source file in your code editor, to change a starting value.
5Changed byEvery class and talent node that changes this attribute, with links.

The Attributes page lists every attribute set in your project. Pick one in the source (the plugin's own sets come first: vitals, offense, defense, then the rest by name).

The set switch

Added to characters decides whether characters get the set. Off, the set stays in the code but no character has it: a game without hunger or thirst switches the survival set off, and those stats simply do not exist in play. The switch is saved straight away in the project's Config/DefaultGame.ini (checked out first under source control). If that file is read-only, the line under the switch says so, and the change lasts only until the editor closes.

Which characters

The switch applies to characters built on the plugin's character base: a switched-off set is taken off them when they start. A character that is not built on that base is not affected.

The table and the inspector

Column What it shows
Attribute The attribute's name. A Max… attribute that pairs another (MaxHealth with Health) is shown with it, not on a row of its own.
Starts at Its starting value: the set's own default, before any class, talent or effect changes it.
Max The paired maximum's starting value. The attribute is kept at or under it.
Category The group it is listed under in the editor.
Multiplayer Replicated: sent to every player. Local: kept where it is changed (a Damage attribute that only passes a hit along, for example).

The Row inspector shows the selected attribute's facts. Source & references shows the set's C++ file and Changed by: every class and talent node whose stat changes name the attribute, with links.

Changing a starting value

Attributes are C++: this is how the Gameplay Ability System works, not a choice of the plugin. A starting value is set in the set's constructor, such as InitHealth(100.f). Open the set's C++ opens the file in your code editor; change the number and build the project.

In play, attributes are moved by Gameplay Effects: a class's starting stat changes, a talent node's modifiers, a potion. Those are data, edited on the other pages; only the starting value is code.

Generate GAS code: a new attribute set

Generate GAS code writes a whole new attribute set for you, so a new stat needs no C++ typing:

  1. Press Generate GAS code. A window opens: Generate GAS Code — Attribute Set.
  2. Set name: the class name after its U (MyGameAttributeSet).
  3. Module: the code module to write into. It starts as your project's first game module (from its .uproject); leave it unless you know you want another. A name that is not one of the project's modules is refused, with the list of the ones it has.
  4. Press + Add Attribute for each stat and fill in its row: Attribute (its name, such as Sanity), Has Max? (also make a MaxSanity that it is kept under), Add Event? (announce each change, for UI and gameplay to react to) and Category.
  5. Press Generate .h / .cpp. The window lists the two files it wrote: in Source/<Module>/, or in its Public and Private folders when the module has them. It never overwrites a file: a set name already used is refused.
  6. Build the project. Your module's Build.cs needs the GAS modules (chapter 1 shows the lines); the window warns when GameplayAbilities is missing. The new set appears on this page.

A new set still has to reach your characters. Either create it on your character in C++ (CreateDefaultSubobject<UMyGameAttributeSet>(TEXT("MyGameAttributes"));, as the plugin's README shows), or, with no code, add it to an ability set's Granted Attribute Sets (chapter 10) and give that set to the character.

Talents

A talent tree is a set of nodes a player spends talent points on. Pick a tree in the source, or press + New to make one. A class uses a tree through its Talent Tree field (chapter 7).

The graph

Figure 11. The sample tree: three roots in tier 1, Vitality II under Vitality I, and Ranger's Path (selected), which needs Warmonger and Vitality II.
PartWhat it shows
1TierThe rows of the tree, from the top. A node's tier is the second number of its UI Position.
2A nodeIts name, its cost in points and what it needs (Root: nothing). A column is a branch.
3A prerequisiteA line from a node down to a node that needs it. The selected node's lines are gold.
4The selected nodeFilled gold. A gold outline marks a node that unlocks specializations.

Each node sits in a cell: a column (a branch of the tree) and a tier (rows going down). Lines run from a prerequisite down to the nodes that need it. A game's talent page reads the same cells, so the tree looks the same in play as it does here.

To Do this
Select a node Click it (or its row on the left). Its fields open in the inspector.
Move a node Drag it to another cell. Dropped on a taken cell, the two nodes swap, so two nodes never share a cell.
Make one node a prerequisite of another Hold Shift and drag from the first node onto the second.
Pan Drag with the right mouse button, or drag empty space with the left.
Zoom The mouse wheel.
Tidy the whole tree Lay out by tier: every node goes to the tier of its prerequisites' depth, under its first prerequisite where there is room.

The graph fits the whole tree in view when it opens and when the window changes size, until you pan or zoom it yourself. Double-click empty space to fit it again.

Nodes

+ Row adds a node in the first free cell, named New node with an id such as node_6. The bin removes the selected node and takes it out of every other node's prerequisites.

Figure 12. The selected node's fields, then its source and references: what it requires, what it leads to and which classes use the tree.
Field What it does
Node Id The node's unique name in the tree. Prerequisites and saved characters refer to it: rename it before the game is played, not after.
Display Name What players see.
Description The node's text for players (several lines allowed).
Icon The picture a talent page shows.
Cost Talent points to take it (at least 1).
Prerequisites The ids of the nodes that must be taken first. Shift-dragging on the graph fills this in.
Modifiers Stat changes while the node is taken (below).
Granted Ability An ability the node gives.
Unlocks Specializations Taking it lets the player choose a subclass (the class's level and points-spent route also still works). Drawn with a gold outline.
UI Position The node's cell: column, then tier. Dragging sets it.

Modifiers

Each modifier changes one attribute while the node is taken:

Field What it does
Attribute The attribute it changes, picked from every attribute set (ASGVitalAttributeSet.MaxHealth).
Modifier Op How it applies. Add (Base): adds to the attribute (+25 maximum health). Multiply (Additive): multipliers of this kind are added together first (1.5 and 1.5 make 2), then applied. Divide (Additive): the same, dividing. Multiply (Compound): multiplies on its own (1.5 and 1.5 make 2.25). Add (Final): adds after every multiplier. Override: sets the value outright.
Magnitude How much: 25 for +25; 1.1 for 10% more with a multiply.

Damage bonuses use the buckets

For damage, add to the offense set's attributes rather than multiplying damage directly: AddedDamage (flat), IncreasedDamagePercent (percentages that add together) and MoreDamageMultiplier (a multiplier of its own). The sample tree's Warmonger and Savagery do this. The Balance page (chapter 9) shows what they come to.

Making a tree

  1. Press + New, choose a folder and a name (TT_Ranger).
  2. Press + Row for each node; give each a Node Id, a Display Name, a Cost and its Modifiers.
  3. Shift-drag from each prerequisite onto the node that needs it.
  4. Press Lay out by tier, then drag nodes sideways into the branches you want.
  5. Press Validate, then Save talent tree.
  6. On the Classes page, set the class's Talent Tree to the new tree.

Classes

Figure 13. The Classes page on the sample Ranger: its tree and its two subclasses.
PartWhat it shows
1At a glanceParent, subclasses offered, what it takes to choose it, the cost to change subclass, and its starting stat changes.
2Progression & loadoutThe class's talent tree (its own or a parent's) and the abilities it grants.
3FamilyThe class's parent and the subclasses it offers.
4Go toOpens the linked asset on its own page.

Every class asset in the project is a row. + Row makes a new class (you choose its folder and name). The overview shows the selected class at a glance, then cards for everything it links to, each with Go to. Every field is in the Row inspector:

Field What it does
Class Tag Added to the character while the class is active (Class.Ranger, or Class.Ranger.Archer for a subclass). Your game can check for it.
Display Name, Description What players see.
Parent Class The class this one extends. A subclass gets its parent's stat changes, abilities and tree, then adds its own. Empty: a base class.
Attribute Modifiers Starting stat changes (the same kind of modifier as a talent node's).
Attribute Effect A Gameplay Effect to apply instead of the modifiers, for a class whose stats are already an effect of your own. Modifiers work in multiplayer too.
Granted Abilities Abilities the class gives.
Talent Tree The class's tree. Empty: the nearest parent's.
Presentation › Flavor, Highlights A class picker's card: a sentence of character, and a few short strengths.
Subclasses › Available Subclasses The subclasses a player may choose from this class.
Subclasses › Spec Change Cost In-game currency to change subclass later (your economy reads it).
Gating › Required Level The level a player needs to choose this as a subclass.
Gating › Required Talent Points Spent Talent points a player must have spent to choose it (0: none). A talent node that unlocks specializations is another way in.

Parent and subclass go together

Making Archer a subclass of Ranger takes two fields: Ranger's Available Subclasses lists Archer, and Archer's Parent Class is Ranger. With only the first, Archer is offered but inherits nothing; Validate says so.

Source & references lists the classes that offer this one as a subclass, and the classes whose parent it is.

Skills

Figure 14. The sample skill set: Heavy Strike (selected) costs a point from level 1; Fire Nova is learned automatically at level 2.
PartWhat it is for
1Unlock scheduleEach skill's level and point cost, typed in place, how it is learned and the ability it grants. Click a row to select it.
2What it grantsThe selected skill's ability.
3Go toOpens the ability on the Abilities page.

A skill set is a list of skills a player can learn, each granting one ability. Pick a set in the source, or + New to make one. In the table, type a new Level or Points straight into the row; the rest is in the inspector:

Field What it does
Skill Id The skill's unique name in the set. Prerequisites and saved characters refer to it.
Display Name, Description What players see.
Ability The ability learned.
Cost Skill points to learn it (0: free).
Required Level The earliest level it can be learned.
Auto Unlock Learned for free the moment the level is reached.
Prerequisites The ids of skills needed first.

Learned skills and the skill bar. A learned skill's ability is given to the character; it starts from a key once it is on a skill bar slot. Tick Slot Learned Skills on the character and each skill goes on the first bar by itself as it is learned, in the first empty slot after the character's Starting Skill Bar; a skill the player later takes off the bar stays off. It is unticked by default, for a game whose players arrange their own bars. The example character has it ticked: reach level 2 on the example map and Fire Nova appears on key 4.

A skill's numbers live on its ability

How hard Fire Nova hits and how wide it reaches are the ability's settings, not the skill's. To make a stronger Fire Nova, make a new ability from the same base (chapter 10), set its numbers, and point the skill's Ability at it.

Balance

Balance works out what one hit deals, with the game's own damage formula, so you can try numbers before changing any data.

The formula

Damage = (Base + Added) × (1 + Increased % ÷ 100) × More

then, on a critical hit, × Crit Multiplier (never less than 1), then × 100 ÷ (100 + Armor), then × (1 − Damage Reduction % ÷ 100), with the reduction capped at 90%.

Keeping Added, Increased and More in separate buckets stops bonuses from all stacking on each other: ten +10% bonuses make +100% (Increased), while a ×1.5 (More) multiplies everything else. Armor gives less for each point the more there is:

Target armor 0 25 50 100 150 200 300 900
Part of a hit that gets through 100% 80% 67% 50% 40% 33% 25% 10%

Scenarios

Figure 15. The sample scenario "Against an armored elite": a 100 damage hit against 150 armor and 10% reduction deals 36.
PartWhat it shows
1Target armorDrag the slider under it to try more or less armor.
2Before mitigationThe hit before the target's armor and reduction.
3Damage dealtWhat the hit deals (the large number). The bar is the part of the hit that gets through.
4The readoutsHow much was mitigated, a critical hit, the average hit with the crit chance, and hits to defeat the target.
5Starting defaultsThe values characters start with; Use them copies them into the scenario.
6The scenario's numbersEvery number of the scenario: the attacker's, then the target's.

Each row is a scenario: an attacker's numbers against a target's. The first time the page opens it makes two: a starting character, and the same character against an armored elite. + Row adds a scenario (from the starting values); the bin removes one (the last one stays). Scenarios are kept in your own editor settings for this project. They never change the game, so try anything.

Worked through for the elite in the picture: 100 base damage, no bonuses, against 150 armor and 10% reduction. Armor lets through 100 ÷ 250 = 40%, so 40; the reduction takes 10% of that, so 36. A critical hit (×1.5) deals 54. With a 5% crit chance the average hit is 36 × 0.95 + 54 × 0.05 = 36.9, so a target with 300 health takes 9 hits.

Field What it is
Name The scenario's name in the list.
Base Damage The ability's own damage (a melee ability's Damage, for example).
Added Damage, Increased Damage %, More Multiplier The attacker's three damage buckets.
Crit Chance %, Crit Multiplier How often a hit is critical, and how much more it deals.
Target Armor, Target Damage Reduction % The target's mitigation. The slider in the preview sets the armor too.
Target Health For "hits to defeat".

Starting defaults lists the values characters start with (the attribute sets' own defaults); Use them copies them into the scenario, keeping its name and base damage.

Abilities

Figure 16. The Abilities section's header.
PartWhat it is for
1Ability pagesDefinitions (the abilities), Tag rules, Ability sets.
2+ New abilityMakes an ability from one of the four bases.
3Compile and saveCompiles the ability's Blueprint, then saves it.

The Abilities section has three pages, chosen with the tabs under its title.

Definitions

Figure 17. The sample melee ability, GA_HeavyMelee: the sample skill Heavy Strike gives it.
PartWhat it shows
1At a glanceThe base it was made from, its cooldown and cost, its action bar slot, how it runs, and whether its Blueprint compiles.
2Ability tagsThe names tag rules match against.
3Open BlueprintOpens the Blueprint editor, for changes to the ability's graph.
4Given byEvery skill, class, talent node and ability set that gives it to a character.

Every ability Blueprint in the project is a row; the line under each name is the base it was made from. The Row inspector holds the ability's settings (its Class Defaults), so an ability is tuned here without opening its Blueprint.

Make an ability

  1. Press + New ability and choose a base:
    • Melee attack: a swing or a combo, with montages, a hit window and hitstop.
    • Area attack: damage in a radius around the user.
    • Projectile and Charged shot: a launched projectile; the charged one draws while held (chapter 11).
    • Dodge: a root-motion dodge or roll (chapter 11).
    • Heal or buff: changes the user's own attributes, once or for a time.
    • Hit reaction: a flinch played when struck.
    • Blank: an empty ability that follows the tag rules, for a graph of your own.
  2. Choose a folder and a name in the save window (GA_FireNova). Abilities are found by their class, not their folder, so organise them however you like.
  3. The new ability opens on this page (not in the Blueprint editor). Set its numbers and its tags (AssetTags, in the Tags group) in the inspector.
  4. Press Compile and save.

Every ability's settings

These come from the plugin's ability base, so every ability made from one of its bases has them:

Setting What it does
AssetTags (Default AbilityTags) (Tags group) The ability's names for tag rules (Ability.Melee). The engine's own field, shown with its full name.
Action Slot The action bar slot it sits in (1 to 12); 0 keeps it off the bar.
Display Name, Description, Icon What the action bar and tooltips show.
Mana Cost Mana spent each time it starts (ignored when a Cost Gameplay Effect Class is set).
Cooldown Seconds The wait before it can start again (ignored when a Cooldown Gameplay Effect Class is set).
Cooldown Tag The tag the cooldown holds while it runs (Cooldown.Ability.Heal). A cooldown needs one: without it, the cooldown never holds the ability back (Validate says so).
Allow While Dead It may start at zero health (a resurrection).
Allow While Guarding It may start while the character guards.
Target Use How it uses the target its user has selected (see Targeting). Ignore: it takes no notice of one. Use when there is one: with a target selected and in range it acts on it, and otherwise acts as if set to Ignore. Require: it starts only with a target selected and in range.
Max Target Range The farthest the target may stand from the user for the ability to act on it (centimetres); 0 is any distance.
Face Target The user turns to face the target as the ability starts.

An ability set to Require that cannot start says why with a tag, for your interface to show: Ability.Fail.NoTarget, or Ability.Fail.OutOfRange. The target is always the one the server holds for that character, never one a client names.

Melee attack settings

Setting What it does
Damage The swing's base damage (the formula's Base).
Damage Effect Class The Gameplay Effect that deals it (the plugin's damage effect by default).
Trace Range, Trace Radius How far the swing reaches and how wide it sweeps (centimetres).
Montage to Play One attack animation. Used when Combo Montages is empty; with neither, the hit lands at once.
Combo Montages A combo, in order: each press moves to the next.
Combo Reset Time Seconds of rest after which the combo starts again from the first.
Default Impact Time, Combo Impact Times When the hit lands, in seconds into the animation, for animations with no hit-window marker (-1: use the marker).
Swing Seconds Without Animation With no animation at all, a swing still takes this long (0.6 s): the hit lands at once (or at Default Impact Time) and the next swing waits for it, so a held button or fast clicks swing at a fighting pace.
Skeleton Animation Sets Different animations for other skeletons; the numbers stay shared.
Interact with Hit Actors The swing also hits things that are not characters (a tree to chop).
Face Aim on Attack A player's swing turns the body to where the camera aims.
Hit Stop Duration, Hit Stop Time Dilation, Hit Stop Affects Victim The short freeze on impact that sells a heavy hit.
Hit Camera Shake A camera shake on impact.
Send Hit React The target flinches (its hit reaction plays).
Stop at Character Contact, Body Contact Margin A swing that meets a body stops there instead of passing through.
AI Follows Through, AI Picks Random Step For creatures: swings play in full, and each attack is a random step of the combo.

Area attack and hit reaction settings

Setting What it does
Damage, Radius (area attack) Damage dealt to everything within the radius (centimetres).
Damage Type Tag (area attack) The damage's kind (Damage.Type.Fire), for resistances.
Centre (area attack) On the user: round whoever uses it. On the target: round the target the ability acts on (set Target Use), and round the user when it has none.
Area Marker Class (area attack) An ASG Area Marker spawned at the area's centre as the attack lands and told the radius, so the player sees how far the attack reached: a flat disc on the ground that grows to the radius and goes, drawn on every machine. The plugin's own marker has no mesh. Make a Blueprint child of it, give its Disc a mesh that lies flat (the engine's Cylinder) and a material, and set the child here. None: nothing is drawn.
Hit React Montage (hit reaction) The flinch animation. Empty: the character is only marked State.HitReacting for React Duration.
React Duration (hit reaction) How long the mark lasts with no animation.
Skeleton Animations, Preserve Active Montage (hit reaction) Flinches for other skeletons; whether a flinch may interrupt an attack in progress.

An area marker's own settings: Mesh Radius is the mesh's radius at scale 1 (50 cm for the engine's Cylinder), Height Scale how thick the disc is drawn (0.03), Grow Seconds how long it takes to reach the radius (0.2), Show Seconds how long it lasts in all (0.8), and Ground Search how far below the centre it looks for ground to lie on (500 cm). For effects of your own in place of the disc, use the marker's On Area Shown event, which runs on every machine with the radius.

Figure 18. Fire Nova from the target lane's mark: its burst drawn round the player at its true 3.5 m, short of the nearest dummy 4.5 m away.

Compile and save compiles the Blueprint, then saves it. Changes made in the inspector mark the Blueprint changed, so they are kept even if the Blueprint editor is never opened. Open Blueprint opens the Blueprint editor, for changes to the ability's graph: the one thing this page doesn't do.

Tag rules

Figure 19. The sample rule for Ability.Special: while a special runs, melee attacks can't start; starting one stops a melee attack in progress; being stunned stops it starting.

Tag rules let abilities block, cancel or require each other with no wiring inside them. A mapping is an asset holding a list of rules; pick one in the source, or + New to make one. Each rule is a row:

Field What it does
Ability Tag The rule applies to abilities with this tag.
Ability Tags to Block While such an ability runs, abilities with these tags can't start.
Ability Tags to Cancel When such an ability starts, running abilities with these tags stop.
Activation Required Tags It can start only while the character has every one of these tags.
Activation Blocked Tags It can't start while the character has any of these.

The workspace says each in plain words, as the picture shows. The examples' two rules: a stunned character can't attack at all; a special attack (the example heavy attack is one: Ability.Melee and Ability.Special) blocks melee swings while it runs and cuts off a swing in progress.

Use the mapping

A mapping does nothing until a character uses it. On your character Blueprint, select the Ability System Component and set Tag Relationship Mapping to the mapping, or call SetTagRelationshipMapping in play.

Ability sets

Figure 20. The sample ability set: two abilities, each started by an input tag.

Every ability set in the project is a row. + Row makes a new one. The workspace lists the set's abilities (with their level and input tag, and Go to), its passive effects and its attribute sets.

Field What it does
Granted Abilities Each ability with its Ability Level and an optional Input Tag: the input that starts it.
Granted Effects Passive Gameplay Effects (a stance, an aura) with their level.
Granted Attribute Sets Attribute sets the kit adds (a way to give characters a set with no code).

Give a set to a character with its Default Ability Sets (given on spawn), or call GrantAbilitySet in play. For an actor that is not the plugin's character, Grant Ability Set (found under the ability set's own functions) gives the kit to any Ability System Component and returns what it gave; hand that to Remove Ability Set to take it all back. Has Ability, on the plugin's Ability System Component, says whether a character has an ability of a class, from any source: a class, a skill, a talent, an ability set or a Game Feature. To start abilities from input by data alone, add an Ability Input Binding component to the pawn and map each Input Action to the matching Input Tag.

Gameplay systems

Beyond the data the toolkit edits, the plugin's character comes with the systems a combat game needs: cameras, dodging, guarding, projectiles, hit reactions, targeting, a HUD, PvP rules, creature brains, interaction and harvesting, survival needs, regeneration and respawning. Each section says what the system does, how to switch it on, and its main settings, which are in the Details panel of the character Blueprint or of the component named.

Controls

The character plays with no input assets at all. Each control below falls back to its key only while no Enhanced Input action is set for it (the character's Input group, with your mapping contexts in Default Mapping Contexts): assign your own actions and they take over, with no double input.

Key Does
W A S D, mouse Move and look.
Space Jump.
Left mouse Light attack; hold to keep swinging.
Right mouse Heavy attack.
E Interact (and harvest).
1 to 0 The skill bar's ten slots.
X Switch between first and third person.
Mouse wheel Zoom the third-person camera (Alt + wheel too).

Combat Controls. Tick Combat Controls on the character and it brings targeting, guarding, dodging and a ranged attack of its own, with these keys:

Key Does
Tab The next target in front, nearest first. Shift + Tab: the previous one.
T Target what the crosshair is on; again to engage it; again to clear it.
Left Alt, held Guard.
Left Ctrl Dodge (the character's Dodge Ability Class).
F The ranged attack (the character's Ranged Ability Class): press to shoot, or hold and release for a charged shot.

The example character has it ticked. It is off on a character of your own until you tick it, so that updating the plugin never puts a new key in a game that is already using Tab or T for something else. With it ticked, the character uses the targeting and guard components it already has and adds one of each only when it has none, so a character that brought its own never ends up with two. Each key gives way to an input action when one is set: Target Action, Next Target Action, Previous Target Action, Guard Action, Dodge Action and Ranged Attack Action, in the character's Input group. Each key's function is also there for a Blueprint, a touch button or a menu to call: Use Target Command, Select Next Target, Select Previous Target, Start Guard, Stop Guard, Dodge, Start Ranged Attack and Release Ranged Attack.

The skill bar. The character's Skill Bars component holds the abilities the number keys start: three bars of ten slots (Num Bars, Slots Per Bar), the first open and the others opened with Unlock Bar, which calls Try Pay Bar Unlock Cost so your game can charge for it. Put an ability on a slot with Assign Ability To Slot on the character (the active bar) or Assign Ability on the component (any bar), from your own skill book, a learned skill or a talent; Set Active Bar switches the bar the keys use, and On Skill Bars Changed tells your interface to redraw. In multiplayer the server keeps the bars and each player sees their own: a player's own changes go to the server, which only slots abilities the character already has. A game without skill bars unticks Use Skill Bar in Project Settings›Plugins›Flying Donkey GAS — Skill Bar: the number keys are then left free (an inventory's hotbar keeps them in every Game Style) and no slot fires; abilities, talents and skills work as before.

What is on the bar at the start. Starting Skill Bar, on the character, is a list of abilities given to the character and put on its first bar when it is first possessed, in order: the first on key 1. Leave an entry empty to leave that slot empty. With Slot Learned Skills ticked, skills the character learns follow in the next empty slots (chapter 8).

With an inventory's hotbar on the same character. Flying Donkey Inventory's hotbar (a toolbelt of items) also uses the number keys and the wheel. Its Game Style shares them: under Survival the hotbar keeps 1 to 0 and the wheel, the skill bar moves to Shift + 1 to 0, and Alt + wheel zooms; under RPG and Custom the skill bar keeps the number keys and the hotbar takes them with Shift. Any component of yours can take part the same way, through component tags: the skill bar is tagged UsesNumberKeys; a component tagged ClaimsNumberKeys takes the plain number keys (the skill bar answers with Shift), one tagged UsesShiftNumberKeys takes them with Shift, and one tagged ClaimsMouseWheel takes the plain wheel (the camera zooms with Alt).

Health and stamina at the start. A character starts play with full health and stamina, after its class, talents and derived stats have set their maximums (Start With Full Vitals, on). Untick it when your save system restores them; Fill Vitals fills them from a Blueprint at any time. Whether they come back by themselves afterwards is Regenerate Vitals (see Regeneration below).

Cameras

Third person uses a camera boom behind the character; first person puts the camera at the head. On the character, First Person Camera Socket names the socket or bone the first-person camera sits on (head), and Head Bone To Hide In First Person hides the head so it doesn't fill the view. Set First Person switches views from a Blueprint, and Set First Person Blended glides between them.

Camera Boom setting What it does
Ignore Characters Characters running past, and what they carry, never pull the camera in. On by default.
Min Zoom Length, Max Zoom Length The nearest and farthest the player can zoom (120 and 900 cm).
Zoom Step The distance one wheel notch moves the camera (60 cm).
Zoom Interp Speed How quickly the camera eases to the new distance (0 jumps at once).

Dodging

A Dodge ability (Abilities›+ New ability›Dodge) plays a root-motion animation that moves the character; walls and other bodies stop it. Set Animations (one entry per skeleton: the skeleton and its dodge montage), Play Rate, and Require Grounded (no dodging in the air). A dodge gives no immunity by itself: for invulnerable frames, add a tag rule or a short effect. Give it to characters like any ability: through a skill, a class, or an ability set with an input tag; or set it as the character's Dodge Ability Class, which Combat Controls gives the character and starts with its dodge key.

A body with no dodge animation. Set Distance Without Animation (350 cm in the example) and a body with no animation in the list still dodges: it is moved that far over Seconds Without Animation (0.25), along the way it is being moved, or backwards when it is standing still, and walls and other bodies stop it as they stop the animated dodge. At 0, the default, a dodge with no animation for the body does nothing.

Guarding

With Combat Controls ticked the character has a guard and holds it up while its guard key is down. Without it, add an ASG Guard Component to the character and call its Request Guard from your input: true on press, false on release. While the character guards, melee hits from in front are reduced, and stamina pays for what the guard stopped; with too little stamina the guard breaks for a moment. Projectiles and area damage are not blocked.

Setting What it does
Arc Degrees How wide the guarded front is (120°).
Damage Reduction The share of a blocked hit that is stopped (0.75).
Stamina Per Prevented Damage Stamina spent for each point stopped (1).
Break Recovery Seconds How long a broken guard stays down (1 s).
Blocked State Tags Tags that prevent guarding (State.Stunned, or a state of your own).

Abilities with Allow While Guarding off (melee and projectile attacks) can't start during a guard.

Projectiles and charged shots

A Projectile ability (+ New ability›Projectile) launches a projectile from the server that damages the first thing it hits. A Charged shot draws while its input is held and looses on release: a longer draw hits harder and flies faster. Start a charged shot from the character's Ranged Ability Class (Combat Controls) or from an ability set's input tag, so both the press and the release reach it.

A projectile with no target flies along its user's view, starting at the user's eyes. In third person that line runs beside the one through the middle of the screen, so a shot aimed with a crosshair passes over or beside what the crosshair is on. Tick Aim At View Centre and the shot goes from the eyes to what the middle of the player's screen is on. With Target Use set, it launches at the selected target instead, and Homing Acceleration lets it follow a target that moves.

Setting What it does
Projectile Class The projectile actor. The plugin's ASGProjectile is invisible: make a Blueprint child of it, add a mesh or an effect, and set it here.
Damage, Speed, Lifetime, Launch Offset Base damage (25), speed (2,500 cm/s), seconds before it is removed (3), and how far in front of the character it starts (60 cm).
Minimum Draw Seconds, Full Draw Seconds (charged) Releasing before the minimum cancels the shot; at the full draw it is at full strength (0.2 and 1 s).
Aim At View Centre Off, as it is unless you tick it: a shot with no target flies along the view from the user's eyes. On: it flies to what the middle of the player's screen is on, which is the first character or the first thing that blocks visibility in the view's line, or with nothing there a point Speed × Lifetime away. A user no player controls shoots along its view either way.
Homing Acceleration With a target, how hard the projectile turns toward it in flight (cm/s²), keeping its speed. 0: it flies straight from where it was launched.
Maximum Hold Seconds (charged) A shot held this long is let down without firing (15 s).
Minimum Damage Multiplier, Minimum Speed Multiplier (charged) The strength of a shot released at the minimum draw (0.4 and 0.35 of full).
Figure 21. On the archery lane with the crosshair on the far dummy: the charged shot, drawn as a shaft, on its way to it.

Hit reactions

Every one of the plugin's characters is given the Hit React Ability Class set on it (the plugin's hit reaction by default), so anything struck by a melee attack with Send Hit React flinches. Make your own with + New ability›Hit reaction, set its Hit React Montage, and set it on the character. Without a montage, the character is only marked State.HitReacting for React Duration, which tag rules can use.

Targeting

With Combat Controls ticked the character has a targeting component and its keys. Without it, add an ASG Targeting Component to the player character and call its functions from your input.

A target is any actor with an Ability System Component: one of the plugin's characters, or an actor of your own. There are three ways to pick one:

  • The target command (Use Target Command, T): the first use selects what the crosshair is on, or the nearest hostile in front; the second engages it, which puts the player in combat before any blow lands; the third clears it.
  • Cycling (Cycle Target, Tab): steps through the hostiles in front of the view, nearest first, and round again; backwards with Shift. With nothing in front it steps through everything in range. Cycling selects without engaging.
  • By name (Select Target, Clear Target): from a nameplate, a party frame or a script.

The server checks and replicates the target, so party frames and nameplates can show it, and a target that dies, is destroyed or goes beyond Keep Range drops by itself. Abilities read the same target: see Target Use under Every ability's settings.

Setting What it does
Select Range How far away a target can be selected (4,000 cm).
Keep Range A target further than this is dropped (6,000 cm).
Can Target Which of the plugin's characters can be targeted: living ones no player controls, and other players when the PvP rules allow. Override it in a Blueprint for factions.
Can Target Actor The rule for any actor. One of the plugin's characters goes through Can Target; another actor needs an Ability System Component and, when it has the ASG Targetable interface, must agree.
Target Aim Radius (on the character) How close to the middle of the view a target must be for the target command to take it (60 cm).

Showing the target. The HUD widget has a target frame and a marker for it (The HUD, below). The name a frame shows for one of the plugin's characters is its Target Display Name.

Figure 22. On the target lane, with the farthest dummy targeted: the frame at the top names it and shows its health, and the gold marker sits over it.

Get Target Actor gives the target whatever it is; Get Target gives it when it is one of the plugin's characters. On Target Actor Changed fires when the target or its engaged state changes.

The HUD

The example's HUD, WBP_ASGHUD, is a Widget Blueprint whose parent class is the plugin's ASGPlayerStatusWidget. The character shows the widget set as its HUD Widget Class to the player who controls it. To make your own, make a Widget Blueprint with that parent and add widgets with these names: the class finds each one by its name and keeps it up to date. Every one is optional; leave out what your game does not show.

Widget name Type Shows
LevelText Text The character's level.
HealthBar, StaminaBar Progress Bar Health and stamina against their maximums.
HungerBar, ThirstBar Progress Bar The two survival needs.
ManaBar Progress Bar Mana, on a character with the mana attribute set; hidden on one without.
SkillBarText Text What is on each key of the active skill bar, as 1 Fire Bolt 2 Meteor. An ability is named by its Display Name, or by the skill that teaches it.
TargetPanel Any widget Shown only while the player has a target: put the two below inside it.
TargetNameText Text The target's name: a plugin character's Target Display Name, or what another actor answers to Get Target Display Name (ASG Targetable); the actor's own name when that is empty.
TargetHealthBar Progress Bar The target's health, when it has the plugin's vitals.
TargetMarker Any widget, on a Canvas Panel, anchored top left Kept over the target in the world, so the player sees which one is selected. Target Marker Height sets how far above the target's middle it sits (115 cm).

For names of your own (a title, a level beside the name), override Get Target Display Name in the widget's graph.

A crosshair needs no name and no code: any widget anchored to the middle of the screen. The example's is a small Image called Crosshair. It marks what the target command (T) takes and where a shot with Aim At View Centre goes. In third person the middle of the screen has to be clear of the character to be of use: raise the camera boom's Target Offset (the example's is 115 cm up), so the camera turns about a point above the head.

PvP rules

Players are the characters with an ASG PvP Flag Component; everything else (creatures, NPCs) can always be hurt and can always hurt players. The server's mode is in Project Settings›Plugins›Flying Donkey GAS — PvP:

Mode Players hurt each other
PvE Never, except inside a PvP zone.
PvP Always.
Mixed When both have flagged themselves, or are in a PvP zone. Flagging on is immediate; flagging off takes Flag Off Cooldown Seconds (180 s).

A player flags with the component's Request Flag. An ASG PvP Zone volume placed in the level makes players inside it fight whatever the mode. The plugin's melee, area and projectile attacks, its damage effect and targeting all follow these rules, and Can Harm answers the same question for your own code. With no flag components in the game, nothing changes.

Creature brains

Two small components move and fight for characters no player controls. They are simple brains, not a behaviour-tree system. Both need the character to have an AI controller (the default for placed characters). Give the level a NavMesh Bounds Volume so they walk round walls and props; without a navigation mesh they still wander and chase, in straight lines.

ASG Hostile AI Component. Notices players it can see within Aggro Radius (1,200 cm), chases them, and uses its Attack Ability within Attack Range (170 cm), with Attack Interval (1 s) between attacks. It walks home when led beyond Leash Radius (2,200 cm) or after losing sight for Lost Sight Seconds (3 s). Sight Channel is what blocks its view. A hostile one hurt by a player turns on them, even from beyond its Aggro Radius. Passive makes a creature that never fights (a deer) and flees when hurt (with its ASG Ambient AI Component's Flee settings when it has one). The creature is given the attack ability if it doesn't have it.

ASG Ambient AI Component. What a character does while not fighting. Mode Wander roams within Wander Radius (800 cm) of home; Patrol walks the Patrol Points in order; both pause for Min Pause Seconds to Max Pause Seconds (3 to 9 s). Flee Radius, Flee Distance and Flee Speed Scale make it run from players. Stop For Players makes a friendly NPC stop and turn to a player who looks at it within Stop Radius (500 cm), for the time set in Project Settings›Plugins›Flying Donkey GAS — Ambient AI. A character with both components roams until the hostile brain has a target.

Interaction and harvesting

The character's Interaction Component looks from the camera (Trace Distance 350 cm, Reach 300 cm), and E uses what it finds. To make something usable, make a Blueprint child of ASG Interactable Actor and handle its On Interacted event (tick Consume On Interact for something used once), or add the ASG Interactable interface to any actor.

An ASG Harvest Node (a tree, a rock, a bush) is an interactable that is hit rather than used: with E, or with a melee swing whose ability has Interact with Hit Actors. Each hit fires On Resource Harvested with its Resource Tag (Resource.Wood) and counts down Hits To Deplete (3); the last hit removes the node. Required Tool Tag limits it to a harvester that has that tag: a loose tag on its Ability System Component while an axe is equipped, for example.

The node gives no items itself

Harvesting says what was gathered; putting it in a bag is the inventory's job. Bind On Resource Harvested and add the items with your inventory: Flying Donkey Inventory, or your own.

Survival needs

Tick Survival Needs on the character: hunger, thirst and fatigue then drain over time, and an empty need costs health every second. The HUD shows hunger and thirst. The rates are in Project Settings›Plugins›Flying Donkey GAS — Survival:

Setting What it does
Hunger, Thirst, Fatigue Minutes To Empty Real minutes for a full need to empty (60, 45 and 90; 0 stops that need).
Drain Multiplier A server-wide speed: 2 drains twice as fast, 0 pauses survival.
Starving, Dehydrated, Exhausted Health Loss Per Second Health lost each second while that need is empty (1, 1.5 and 0).

Food and drink are ordinary effects that raise the needs. Temperature is an attribute too, for your weather or zones to change; the drain leaves it alone.

Derived stats

Tick Derived Stats on the character and the four primary stats feed the others, the tabletop way: each primary's modifier is (stat − 10) ÷ 2, rounded down, so 10 adds nothing and 14 adds two steps. Vigor raises MaxHealth, Strength raises AddedDamage, Dexterity raises CritChance and Intelligence raises MaxStamina, by the amounts per step in Project Settings›Plugins›Flying Donkey GAS — Derived Stats (10, 2, 0.01 and 5). The bonuses follow every change to the primaries (points spent, talents, gear) by themselves.

Regeneration

The vitals set has Health Regen and Stamina Regen, and the mana set Mana Regen: amounts a second, 0 to begin with. Tick Regenerate Vitals on the character and it regains each of them every second, up to the maximum. A character at zero health regains nothing, and one with an empty survival need (hunger, thirst or fatigue at zero) regains no health until the need is met; its stamina and mana still come back. Unticked, the default, the regen attributes are numbers for effects of your own to read.

Set the rates the way any attribute is changed: a class's or a talent's stat changes (the example Archer has Health Regen 5), or a Gameplay Effect (the example's GE_ASGExampleRegenRates sets the other two, and an ability set grants it).

A unit that is not one of the plugin's characters gets the same by being granted the effect, ASGRegenerationGameplayEffect, in an ability set's Granted Effects; taking the set back stops it. The example unit's kit does this for its mana.

Respawning

Add an ASG Respawn Component to anything that comes back: a creature, a resource, a chest. Call Start Countdown when it dies; On Respawn Due fires when the time is up, and your game spawns it again. The time comes from Defaults (Delay Seconds 600, with the corpse's lifetime and burn time), or from a Profile row of a data table (row type ASGRespawnSettings) so many spawners share one setting. Get Remaining Seconds (−1 when none is running) and Restore Countdown carry a countdown through a save; Start Countdown says false only when the settings are invalid. The example map's training dummies come back this way: ASGExampleSpawner keeps one character standing at its place, starts the countdown when it dies and spawns another when the time is up (8 seconds there).

Every message Validate gives

Problems (will not work in play as it is) are marked ✖ and show in red; notes (work, but probably not as you meant) are marked ✱ and show in gold. Click a message in the toolkit to select the row it is about.

Page Message What to do
Talents ✖ Node N has no Node Id Give it a unique Node Id.
Talents ✖ A and B share the id X Rename one: ids are unique in a tree.
Talents ✖ X requires itself Take its own id out of its Prerequisites.
Talents ✖ X requires Y, which is not in this tree Fix the id in its Prerequisites, or add the missing node.
Talents ✖ X's prerequisites lead back to it Break the loop: one of the nodes in it must not need the next.
Talents ✖ X costs N points Set Cost to 1 or more.
Talents ✖ X has a modifier with no attribute Pick the modifier's Attribute, or delete the modifier.
Talents ✖ Every node has a prerequisite Clear one node's Prerequisites so it can be taken first.
Talents ✱ X has no Display Name Give it one: players would see its id.
Talents ✱ X and Y share a cell Drag one aside, or Lay out by tier.
Talents ✱ This tree has no nodes yet + Row adds one.
Page Message What to do
Classes ✖ X has no Class Tag Pick a Class Tag (Class.…).
Classes ✖ X's parent classes loop back on themselves One class in the chain must not have the next as its parent.
Classes ✖ X has an empty subclass slot Pick the subclass, or delete the entry.
Classes ✖ X has an empty granted-ability slot Pick the ability, or delete the entry.
Classes ✱ X and Y share the tag Z Give each class its own tag.
Classes ✱ X has no Display Name Give it one.
Classes ✱ X offers Y, but Y's Parent Class is not X Set Y's Parent Class to X.
Classes ✱ X has no talent tree Set Talent Tree, here or on a parent class.
Page Message What to do
Skills ✖ Skill N has no Skill Id Give it a unique Skill Id.
Skills ✖ A and B share the id X Rename one.
Skills ✖ X has no Ability Pick the ability it grants.
Skills ✖ X requires itself / requires Y, which is not in this set Fix its Prerequisites.
Skills ✖ X's prerequisites lead back to it Break the loop.
Skills ✱ X can be learned at level N, but its prerequisite Y needs level M Raise X's Required Level, or lower Y's.
Skills ✱ X has no Display Name Give it one.
Skills ✱ This set has no skills yet + Row adds one.
Page Message What to do
Abilities ✖ X does not compile Open its Blueprint: the compiler lists what is wrong.
Abilities ✖ X has a N s cooldown but no Cooldown Tag Pick a Cooldown Tag (Cooldown.…), one per ability.
Abilities ✱ X has no ability tags Add tags (AssetTags), so tag rules can match it.
Tag rules ✖ Rule N has no Ability Tag Pick its Ability Tag, or delete the rule.
Tag rules ✖ X both needs and is blocked by Y Take Y out of one of the two lists: as it is, the ability can never start.
Tag rules ✱ Rules N and M are both for X Merge them into one rule: both apply, which is hard to follow.
Tag rules ✱ X blocks its own tag / cancels its own tag Usually a mistake: no second one could start, or each would stop the last.
Ability sets ✖ X has an empty ability, effect or attribute set slot Fill it in, or delete the entry.
Ability sets ✱ X uses the input tag Y twice One input would start both: give each its own tag.
Attributes ✱ Set.X starts at N, above its maximum M Lower the starting value, or raise the maximum, in the set's C++.
Balance ✱ A More multiplier of 0 / reduction over 90% / crit multiplier under 1 The formula treats these as no damage, 90% and 1.

Settings

The toolkit's settings

Figure 23. The toolkit's settings in Editor Preferences.

The gear in the top bar opens Edit›Editor Preferences›Plugins›Flying Donkey GAS Toolkit. These settings are yours alone, for this project (they are not shared through source control).

Setting What it does
Content Folders The folders the toolkit's lists, pickers, references and Validate look in, with everything below them. Empty: the whole project. In a large project, list only the folders you are working on; the source line then says which folders it counts.

Project settings

Setting Where What it does
Disabled Attribute Sets Project Settings›Plugins›Flying Donkey GAS — Attribute Sets The sets switched off on the Attributes page. Saved in Config/DefaultGame.ini, shared with the team.
Mode, Flag Off Cooldown Seconds Project Settings›Plugins›Flying Donkey GAS — PvP The server's PvP mode (chapter 11).
Drain times, health loss Project Settings›Plugins›Flying Donkey GAS — Survival Survival needs (chapter 11).
Amounts per step Project Settings›Plugins›Flying Donkey GAS — Derived Stats Derived stats (chapter 11).
NPC_Target_Delay Project Settings›Plugins›Flying Donkey GAS — Ambient AI How long a friendly NPC stays turned to a player who looked away.
Use Skill Bar Project Settings›Plugins›Flying Donkey GAS — Skill Bar Off for a game without skill bars: no skill keys, no slot fires (chapter 11).
Menu Config/DefaultEditor.ini, section [GameplayAuthoring] The editor menu that holds the toolkit's entry (Tools by default).

Tips and troubleshooting

Getting the most out of it

  • Follow the links. Every gold link and Go to button opens the linked asset on its own page, on the right row. It is the quickest way to see how a class, its tree and its abilities fit together.
  • Validate before Save, and before a release. It costs nothing and catches the silent mistakes: a prerequisite spelled wrong never errors in play, the node just can never be taken.
  • Name by kind. TT_ for talent trees, C_ or DA_Class_ for classes, SS_ for skill sets, GA_ for abilities, AS_ for ability sets: the source picker's search then finds each kind by its prefix.
  • Ids are forever. Node and skill ids are what saved characters store. Choose them before players play, and change display names instead.
  • Build tags as a tree. Class.Ranger.Archer under Class.Ranger: a check for Class.Ranger then covers every Ranger subclass.
  • Try it in Balance first. Before giving a talent +100% Increased Damage, make a scenario with it and see what a hit comes to against your toughest enemy.
  • Search the inspector. The inspector's search box finds a field by part of its name: type combo for the combo settings.
  • Scope the lists. In a big project, set Content Folders (the gear) to the folders you are working on.

Troubleshooting

The Output Log says No GameplayCueNotifyPaths were specified (a warning from Unreal's GAS).
Unreal looks for gameplay cues in the whole of /Game until it is told where yours are. Add this to Config/DefaultGame.ini, with your own cue folder: [/Script/GameplayAbilities.AbilitySystemGlobals] and on the next line +GameplayCueNotifyPaths=/Game/GameplayCues. Any GAS project shows the warning until then; the plugin leaves the choice of folder to you.
A packaged game stops as it starts, and its log says Unable to load plugin 'FlyingDonkeyGAS' with The missing dependency is GameplayAbilities.
The project is Blueprint-only and the plugin is in the project's own Plugins folder. Unreal compiles a game for a Blueprint project only when the project uses a code plugin the stock game program lacks, and it counts a plugin in the project's folder as one the stock program has. The game is then packaged with the stock program, which has neither this plugin nor the engine's Gameplay Abilities. Open Edit›Plugins, tick the engine's Gameplay Abilities plugin and restart the editor: the project now names an engine code plugin of its own, and Unreal compiles the game when it packages. Adding any C++ class to the project does the same. Either way, packaging needs Visual Studio 2022 with its C++ tools.
A warning triangle shows beside a name or description.
Unreal's sign that the text isn't marked for translation: nothing is wrong with the data, and the game shows it as typed. If your game will be translated, open the flag beside the text box and tick Localize. Text typed in the toolkit is marked for translation already.
The tag I want is not in the list.
Open a tag field and choose Add New Gameplay Tag, or add it in Project Settings›Project›GameplayTags, then pick it again.
Save says Not saved: … could not be written.
The file is read-only: usually source control has it locked and the editor could not check it out (no connection, or someone else has it checked out). Check it out in your source control tool, then Save again. The Output Log says more.
The set switch says the change lasts only until the editor closes.
Config/DefaultGame.ini is read-only. Check it out, then switch the set again.
An asset I made doesn't appear in a list.
It is outside the toolkit's Content Folders (the gear). Add its folder, or clear the list.
A new attribute set doesn't appear on Attributes.
The project has not been built since Generate wrote it. Build, then reopen the editor if needed.
A talent node can never be taken.
Press Validate: a prerequisite that is not in the tree, or a loop of prerequisites, makes a node unreachable.
A subclass doesn't get its parent's abilities.
Its Parent Class is empty or another class. Listing it in the parent's Available Subclasses is not enough (chapter 7).
An ability's cooldown never holds it back.
It has Cooldown Seconds but no Cooldown Tag. Validate on Definitions finds every such ability.
A tag rule does nothing.
The mapping is not set on the character's Ability System Component, or the ability does not carry the rule's Ability Tag (check its tags, AssetTags, on Definitions).
My changes are gone after restarting the editor.
They were not saved: the status bar said Unsaved changes. The editor also lists unsaved assets when it closes.
The talent graph is too small or off to one side.
Double-click empty space in the graph: it fits the whole tree in view again.

Testing in play

The plugin's character has test functions for trying data without playing through it. In play, open the console (the tilde key, ~) and type ke * followed by the function and its values:

Type What it does
ke * ASGGrantXP 500 Gives 500 experience, with the levels and points that come with it.
ke * ASGAllocate vitality_1 Takes a talent node, by its id.
ke * ASGRespec Gives back every talent point spent.
ke * ASGUnlockSkill aoe_strike Learns a skill, by its id, for its skill points.
ke * ASGAssignSlot 4 aoe_strike Puts a learned skill's ability in a skill bar slot (slot 0 is key 1).
ke * ASGSpendAttr Strength 2 Spends attribute points on a primary stat: Strength, Dexterity, Intelligence or Vigor.
ke * ASGSurvival 1 Starts the survival drain (0 stops it), as the Survival Needs tick box does.
showdebug abilitysystem Lists the character's attributes on screen. Type it again to hide them.

ke * runs the function on everything in play that has it: with several of the plugin's characters in the level, each of them gets it. To type the commands without ke *, set your Player Controller's Cheat Class to ASGCheatManager: the commands then work as they are, in play in the editor and in development builds.

Glossary

Ability set
A kit of abilities, effects and attribute sets given and taken back as one.
Ability tag
A gameplay tag on an ability, matched by tag rules.
Asset
A file in your project's Content folder: a class, a talent tree, an ability.
Attribute
A number a character has, such as Health; part of an attribute set (C++).
Bucket
One of the three ways damage bonuses add up: Added (flat), Increased (percentages added together), More (a multiplier of its own).
Cell
A talent node's place on the graph: column and tier.
Gameplay Effect
An asset that changes attributes, once or for a time.
Gameplay tag
A short dotted name the engine keeps in one list per project (State.Stunned).
Mitigation
What the target's armor and damage reduction take off a hit.
Prerequisite
A node or skill that must be taken first.
Row
One entry of the page's source: a node, a skill, a class, a rule.
Source
The asset a page edits.
Subclass
A class whose Parent Class is another class; it inherits, then adds.
Tag rule
A rule that blocks, cancels or requires abilities by their tags.

Quick reference

Open

  • Tools›Flying Donkey GAS Toolkit
  • Right-click an asset › Edit in GAS Toolkit
  • The gear: which folders the lists use

Every page

  • Source › Rows › Workspace › Inspector
  • + New (a source) · + Row · the bin (remove)
  • Validate · Save (gold)
  • Workspace / All fields

Talents graph

  • Drag: move (onto a node: swap)
  • Shift-drag: make a prerequisite
  • Right-drag: pan · wheel: zoom
  • Double-click: fit the tree
  • Lay out by tier

Damage

  • (Base + Added) × (1 + Inc% ÷ 100) × More
  • Crit × Crit Multiplier
  • × 100 ÷ (100 + Armor) × (1 − DR%)

Before you save

  • Every node and skill: a unique id
  • Subclass: parent lists it, it names the parent
  • Cooldown: needs a Cooldown Tag
  • Tag rules: set the mapping on the ASC

Abilities

  • + New ability: Melee attack, Area attack, Projectile, Charged shot, Dodge, Heal or buff, Hit reaction, Blank
  • Compile and save
  • Open Blueprint only for the graph

Test in play

  • ke * ASGGrantXP 500
  • ke * ASGAllocate <node id>
  • showdebug abilitysystem

Support and licence

Support

For help, bug reports and requests, use the support contact on Flying Donkey GAS's Fab listing. Please include your engine version, the plugin's version (in the toolkit's top bar), what you did, what happened, and any message the toolkit showed; the Output Log's lines from that moment help most.

Licence

Flying Donkey GAS is licensed to you under the terms of its Fab listing (the Fab End User Licence Agreement). What you make with it, including the code Generate GAS code writes, is yours to use in your games. The plugin ships no meshes, animations or other art.