Checking Unlock State In Script

Posted: 11 Feb 2023 00:25
by abigail.corfman

Hello!

I'm using the @unlock command to track achievements in my game. When I award players achievements I play a sound and put up a @toast to let them know they've accomplished something. I would like to NOT do that if they've already gotten the achievement.

Is there an existing way in a script to check whether or not an Unlockable Item is unlocked?


Re: Checking Unlock State In Script

Posted: 12 Feb 2023 15:38
by idaot

Use the HasPlayed() script expression: https://naninovel.com/guide/script-expr ... -functions


Re: Checking Unlock State In Script

Posted: 13 Feb 2023 00:19
by abigail.corfman

Thank you!