I’m a big newbie when it come to coding and there are ‘’specials’’ type of steam achievements I want to put in my VN. I have no idea how to trigger an achievement for...
1. Playing the game in one language, so one achievement for English and another for French.
2. Using the Skip function.
3. Playing the game on a certain day, like Halloween.
4. Playing the game for x hours, let’s say two.
While lurking around the forums, I found some pieces of codes, but I’m pretty sure they won’t work if I put them like this.
Code: Select all
init:
$ import time
$ year, month, day, hour, minute, second, dow, doy, dst = time.localtime()
if month == 3 and day == 11:
$achievement.grant("birthday")
if month == 10 and day == 31:
$achievement.grant("halloween")
if get_skipping:
$achievement.grant("skip")
if Language = None:
$achievement.grant("french")
if Language = "English":
$achievement.grant("english")
$ hours= (int(renpy.get_game_runtime()) / 3600)
$ minutes= (int(renpy.get_game_runtime()) / 60)
if hours == 2:
$achievement.grant("twohours")