Page 4 of 4

Re: How to make Achievements?

Posted: Sun Nov 11, 2018 2:58 pm
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

Re: How to make Achievements?

Posted: Mon Nov 12, 2018 1:10 pm
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})

Re: How to make Achievements?

Posted: Mon Nov 12, 2018 1:42 pm
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.

Re: How to make Achievements?

Posted: Mon Nov 12, 2018 4:54 pm
by Alatriste
All working now! 8-)

Thanks!

Re: How to make Achievements?

Posted: Mon Nov 12, 2018 7:02 pm
by Tony Li
Great! I'll push this out to the Extras page then.