How to make Achievements?

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Tony Li
Posts: 21050
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to make Achievements?

Post by Tony Li »

Okay, the issue with the background fade duration should be fixed, and you can also set the "Unlocked" alert message text to use the name or description:

VisualNovelFramework_2_0_3b4.unitypackage
User avatar
Alatriste
Posts: 181
Joined: Wed Nov 11, 2015 5:07 pm
Contact:

Re: How to make Achievements?

Post by Alatriste »

Ok, I got the background fade working fine. I forgot to ask if there is a way to cancel the fade or put the time variable to 0 from the sequencer.

I couldn't make work the achievement with the latest changes. How is the syntaxis for the Lua expression?
I tried a few options but I couldn't make it work:

UnlockAchievement("AchievementName", {1})
UnlockAchievement("AchievementName"{1})
User avatar
Tony Li
Posts: 21050
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to make Achievements?

Post by Tony Li »

Alatriste wrote: Mon Nov 12, 2018 1:10 pmOk, I got the background fade working fine. I forgot to ask if there is a way to cancel the fade or put the time variable to 0 from the sequencer.
In the Script field, use BackgroundFadeDuration. Example:

Code: Select all

BackgroundFadeDuration(0)
Alatriste wrote: Mon Nov 12, 2018 1:10 pmI couldn't make work the achievement with the latest changes. How is the syntax for the Lua expression?
In the Script field, use UnlockAchievement with only the name of the achievement. Example:

Code: Select all

UnlockAchievement("Creep")
The "{0}" and/or "{1} is for the Achievements component's Unlocked Text field in the inspector.
User avatar
Alatriste
Posts: 181
Joined: Wed Nov 11, 2015 5:07 pm
Contact:

Re: How to make Achievements?

Post by Alatriste »

All working now! 8-)

Thanks!
User avatar
Tony Li
Posts: 21050
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to make Achievements?

Post by Tony Li »

Great! I'll push this out to the Extras page then.
Post Reply