Hello! I'm having a strange issue with granting achievements during the game.
Here's one achievement as an example:
define ACHex = Achievement( name = _("EXTERMINATOR"), id = "Exterminator", description = _("Get the good ending to the RATS scenario after choosing to kill them."), unlocked_image = "gui/ach/Exterminatora.png", locked_image = "locked_achievement", hidden = False, hide_description=True, )
My issue lies with the [achievementName].grant() function. It's very strange, because while some instances of the function work, others (and the ones I need most) don't seem to. For example, when I grant the achievement as a screen function like this (for testing purposes only):
textbutton "GET" action Function(ACHex.grant)
It works! The art and description show up, which is what I want. But the problem is that I want to grant the achievements in the game itself as you play. But, when I do so by putting this in the actual scene of the game:
$ ACHex.grant()
Nothing happens. I've toggled all of my achievements to hide and unhide them while testing, so I can confirm that they all have the proper art, title, and description once their achievements are granted. I've also made sure to restart the game, and double check that Steams support is up to date (My game is already on Steam so this was just to be sure).
The main thing I want to know is how I can get the achievements to be granted in real time as you play like in the example above (only functional lol). Any help would be awesome, this is a neat tool and I'd like to get it working! ✌✨