Progress bar support for AchievementPrototype
Posted: Mon Jul 28, 2025 5:00 pm
I've been playing around with creating some custom achievements, and unless I'm being very dumb and missing something (this is entirely possible) when setting up a custom achievement using AchievementPrototype and `player.unlock_achievement(...)` I don't see a way to mirror the setup of the built-in achievements which show a progress counter for most things related to an amount - like the following for Golem and Computer Age 1:
Would it be possible to have some means of declaring a progress goal on an achievement and updating it? Possibly something like a child of AchievementPrototype with an `amount` property and a `set_achievement_progress(name, amount)` on LuaPlayer. It's not a particularly high-demand or useful thing but it would be nice for fully custom achievements to be first class citizens in terms of players being able to see their progress toward them.
(For my case a simple progress bar like Computer age 1 would be sufficient, but I mention the Golem example in case it sparks some thoughts)
Would it be possible to have some means of declaring a progress goal on an achievement and updating it? Possibly something like a child of AchievementPrototype with an `amount` property and a `set_achievement_progress(name, amount)` on LuaPlayer. It's not a particularly high-demand or useful thing but it would be nice for fully custom achievements to be first class citizens in terms of players being able to see their progress toward them.
(For my case a simple progress bar like Computer age 1 would be sufficient, but I mention the Golem example in case it sparks some thoughts)