Adding new Stats
Here’s a step by step guide on how to add movement speed stats!
- You’re gonna have to open the
Statsscript and add your new stats into the Public enum EStat, it should look like this if you’ve done it correctly:
public enum EStat
{
Health = 0,
Mana = 1,
PhysicalAttack = 2,
MagicalAttack = 3,
PhysicalDefense = 4,
MagicalDefense = 5,
Agility = 6,
Luck = 7,
MovementSpeed = 8 // ADD THIS
}
then you’re also gonna have to bump up the Stat Count to 9 (found right below the public enum EStat)
public const int StatCount = 9; // 8 → 9
After that open the GameConfig script and add Movement Speed stat to the Public enum EOptionalCharacterStatistics it should look like this if you’ve done it right:
public enum EOptionalCharacterStatistics
{
None = 0,
Mana = 1 << 0,
MagicalAttack = 1 << 1,
MagicalDefense = 1 << 2,
Agility = 1 << 3,
Luck = 1 << 4,
MovementSpeed = 1 << 5, //ADD THIS
}
- Now you’re gonna head over to the
CFG_Game.assetand expandStat Terms Binding, here you’re gonna add another stat and name itmovement_speed(don’t forget to select Movement Speed in the left box too)
After this, you’re also gonna head expand Stat Increase Terms Binding and Stat Decrease Terms Binding, you’re basically gonna do the same thing, but you’re gonna add a: _increase and _decrease at the end (check attached screenshot)
After this, expand Game Terms and add movement_speed, simply after that expand movement_speed and choose your full name, short name, and icon.
Head over to the
Characterasset and duplicate any stat you’d like in it, after you’ve done that make sure that theUI TermandUI Character Statlooks like the third attached screenshot!Now head over to the
User Interferanceasset and click onCharacter, then addMovement Speed (UI Character Stat)with the other stats, and now it should work!
If there are any issues let me know!


💬 Comments (50)
Ah my bad i made a mistake
Go to
User Interferance(search for it in your project)and then go to
Characteroh my bad i didn’t see this
yep that was the problem it seems like!
Statsscript?,afterCharisma = 11StatsandGameConfigscripts with those📜 Scripts
Basically the whole
Statsscript is differentIt now counts how many stats you have by itself, so you don’t have to worry about that, i’m assuming that was the problem
Want to continue the conversation?