Showing alert messages

Announcements, support questions, and discussion for the Dialogue System.
lostmushroom
Posts: 185
Joined: Mon Jul 01, 2019 1:21 pm

Re: Showing alert messages

Post by lostmushroom »

It's one of yours I think. It's on the Visual Novel Menu Canvas. The UnlockAchievement(); function is used in the visual novel example - UnlockAchievement("Creep")
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Showing alert messages

Post by Tony Li »

I forgot you were using the VN starter framework. In that case, add "{0}" wherever you'd like the achievement name to appear, and optionally add "{1}" for the achievement description. Example:
  • Unlocked Text: Unlocked: {0}\n{1}
If the achievement name is "Ascension" and its Description is "You have risen to an important position." then the alert will be:

Code: Select all

Unlocked: Ascension
You have risen to an important position.
(The "\n" adds a newline.)
lostmushroom
Posts: 185
Joined: Mon Jul 01, 2019 1:21 pm

Re: Showing alert messages

Post by lostmushroom »

Yesss it works now, thanks Tony!
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Showing alert messages

Post by Tony Li »

Glad to help!
Post Reply