Checking Unlock State In Script

Discuss authoring naninovel scenario scripts.
Post Reply
abigail.corfman
Posts: 2
Joined: 10 Feb 2023 23:09

Checking Unlock State In Script

Post 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?

idaot
support
Posts: 262
Joined: 01 Aug 2020 08:25

Re: Checking Unlock State In Script

Post by idaot »

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

abigail.corfman
Posts: 2
Joined: 10 Feb 2023 23:09

Re: Checking Unlock State In Script

Post by abigail.corfman »

Thank you!

Post Reply