




🌟 Special thanks to our amazing supporters:
✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Benedikt][David Martínez Martí]
Fixed bugs of unlocking all achievements at the same time.
For those who have already unlocked all achievements and hope to unlock them again, you can go to the 'game' folder of your language and find script.rpy. Copy it and paste it in somewhere to keep it as a backup. Then change the content of script.py as the script below. And run once of the game to lock all achievements (don't forget to click Start\\\\\\\\\\ button in the game). Then copy the backup to replace the changed script.rpy, then run the game, you can unlock achievements one by one according to the storyline (won't unlock all achievements at the same time). The language version you used to lock the achievements must be the version you use to play the game to unlock them one by one. Instead of using third-party tools to lock achievements, this method should be used because third-party tools only superficially lock already unlocked achievements without actually locking them successfully, so that you can't unlock achievements when you play the game next time (because those achievements are actually already in an unlocked state). Each language version's achievement system is actually independent of each other, so if you've previously unlocked achievements for each language version, you should use this method to lock achievements multiple times for each version. For example, if you've previously played through the English and German versions and unlocked all the achievements for both, and you use the method in this article to lock the achievements for the English version, and then go to play the German version, you'll find that you can't unlock the achievements, that's because the achievements for the German version are still unlocked actually, and it just looks like they are locked because the English version's achievements are locked. So if you want to unlock the German version again, use the method described in this article to lock the German version, and then play the German version game again to unlock the achievements one by one.
#Copy start in here, if you change scrpt.rpy to the content below, it will lock all achievements for you.
init python:
ALL_ACHIEVEMENTS = \[
"achievement1", "achievement2", "achievement3",
"achievement4", "achievement5", "achievement6",
"achievement7"
]
def grant_achievement(achievement_name, keep_previous=True):
if achievement_name is None:
for ach in ALL_ACHIEVEMENTS:
achievement.clear(ach)
return
if not achievement.has(achievement_name):
achievement.register(achievement_name)
unlocked_achievements = \[]
if keep_previous:
unlocked_achievements = \[
ach for ach in ALL_ACHIEVEMENTS
if achievement.has(ach) and ach != achievement_name
]
for ach in ALL_ACHIEVEMENTS:
if ach != achievement_name and ach not in unlocked_achievements:
achievement.clear(ach)
achievement.grant(achievement_name)
achievement.sync()
label start:
$ grant_achievement(None, keep_previous=False)
screen achievement_popup(message):
modal True
zorder 100
frame:
style "default"
xalign 0.5
yalign 0.3
padding (20, 15)
text message:
size 90
color "#ff0000"
outlines \[(2, "#000000", 0, 0)]
xalign 0.5
show screen achievement_popup("All achievements locked.")
$ renpy.pause(2.0)
hide screen achievement_popup
return
#Copy end in here
[img src="https://clan.cloudflare.steamstatic.com/images/45581711/cd197212ab450b3149144655098b8403566423be.png"][/img]
[ 6265 ]
[ 1500 ]
[ 2017 ]