Progress bar support for AchievementPrototype

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
TimberwolfK
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri May 03, 2019 2:50 pm
Contact:

Progress bar support for AchievementPrototype

Post by TimberwolfK »

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:
07-28-2025, 17-49-27.png
07-28-2025, 17-49-27.png (103.99 KiB) Viewed 117 times
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)
Post Reply

Return to “Modding interface requests”