Achievement's syntax

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
neometalero
Regular
Posts: 196
Joined: Sun Oct 23, 2016 3:51 am
Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Deviantart: neometalero
Contact:

Achievement's syntax

#1 Post by neometalero »

Hi I have some doubts about the achievement's syntax. I already have the steam api on my project. I just need to insert this code to define the achievement?

Code: Select all

init: 
        $achievement.register("achi_ID")
        $achievement.sync()
 
and this to grant it?

Code: Select all

$achievement.grant("achi_ID")
$achievement.sync()
Working on many weird narrative games at Curse Box Studios
Image
https://www.curseboxstudios.com/

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Achievement's syntax

#2 Post by PyTom »

You shouldn't need to call sync in either case.

That's plausibly correct otherwise, but it depends on the details of the achievement that you registered in steam.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
neometalero
Regular
Posts: 196
Joined: Sun Oct 23, 2016 3:51 am
Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Deviantart: neometalero
Contact:

Re: Achievement's syntax

#3 Post by neometalero »

PyTom wrote: Sun May 20, 2018 10:53 am You shouldn't need to call sync in either case.

That's plausibly correct otherwise, but it depends on the details of the achievement that you registered in steam.
Tks for the reply, I read that the sync was not necessary for steam because it sync automatically but I was not sure.
Working on many weird narrative games at Curse Box Studios
Image
https://www.curseboxstudios.com/

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Zodiac_Stories