Jump to content

steam achievements


drarem
 Share

Recommended Posts

I am adding two commands to the Lua API:

static void SetAchievement(const std::string& name);//lua

static void IncrementAchievementProgress(const std::string& name);//lua

  • Upvote 3

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

It's set in your Steamworks account.

 

I'm sure there's a function to retrieve the max value so you can display it in game, but I didn't need this for Leadwerks so I haven't bothered with it.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

I think in the steam account you set up a number of hard coded 'achievements'.. then you do a SetAchievement('hard coded achievement'), to set it to true to make the achievement 100%. For the increment, dont see how that works yet, but i'm guessing you can go from 0 to 100% for a certain achievement such as number of kills or what not.

  • Upvote 1
Link to comment
Share on other sites

Oh, so Set is actually completing it if it's more of a boolean type achievement, and increment if it's a progress type thing which would complete automatically once max value is reached.

 

 

Can we create achievements for our workshop games? Guessing no but thought I'd ask.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...