Auto Play and Skip All buttons

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

Re: Auto Play and Skip All buttons

Post by Tony Li »

Hi,

I'll assume your dialogue entry nodes' Conditions use Dialogue System variables -- for example, the "TalkedToNPC" variable in How To: Run a Conversation Only Once.

To reset everything (e.g., all variables and quest states), call DialogueManager.ResetDatabase(). Or, if you're using the Save System, call PixelCrushers.SaveSystem.RestartGame("mainmenu") to reset all data saved in memory (including the Dialogue System variables and quests) and load a scene named "mainmenu".

If you don't want to write a script, you can add a SaveSystemMethods componenet to a UI Button and configure OnClick() to call SaveSystemMethods.RestartGame.
mac
Posts: 81
Joined: Sat Aug 22, 2020 7:54 pm

Re: Auto Play and Skip All buttons

Post by mac »

That works!
Another small thing, how can I change so the last character that has said a line stays active when a response menu pops up?
Currently, when a response menu pops up, both characters get unfocused, I would like to keep the last character that has talked focused.
User avatar
Tony Li
Posts: 21989
Joined: Thu Jul 18, 2013 1:27 pm

Re: Auto Play and Skip All buttons

Post by Tony Li »

Hi,

Try setting the subtitle panel(s) to Always From Start, Always Once Shown, or Until Superceded.
mac
Posts: 81
Joined: Sat Aug 22, 2020 7:54 pm

Re: Auto Play and Skip All buttons

Post by mac »

Hmm I guess this didn't really work, Always From Start and Always Once Shown changed nothing, while Until Superceeded and Only During content made the NPC invisible once the PC became the one talking, breaking the dialogue, but maybe that's because those settings alter the visibility (which is fine as it is), when I'm trying to change the focus logic?
User avatar
Tony Li
Posts: 21989
Joined: Thu Jul 18, 2013 1:27 pm

Re: Auto Play and Skip All buttons

Post by Tony Li »

Hi,

Can you send me a reproduction project to tony (at) pixelcrushers.com? I don't quite understand what's going on in your description and what you want it to do. Please include instructions on how to reproduce the issue (e.g., what scene to play, how to start the conversation), what you expect to see, and what you see now.
paulvijaylal
Posts: 1
Joined: Fri Jun 18, 2021 6:13 am

Re: Auto Play and Skip All buttons

Post by paulvijaylal »

I haven't used iTween but, assuming it works like DOTween, there's probably a generic tween method that you can use to tween the anchoredPosition without hashable. mx player
vikrampaul93
Posts: 1
Joined: Thu Jun 24, 2021 9:03 am

Re: Auto Play and Skip All buttons

Post by vikrampaul93 »

Awesome, thank you again Tony! get-mobdro.com
Last edited by vikrampaul93 on Sat Jun 26, 2021 6:29 am, edited 1 time in total.
User avatar
Tony Li
Posts: 21989
Joined: Thu Jul 18, 2013 1:27 pm

Re: Auto Play and Skip All buttons

Post by Tony Li »

Glad to help!
Post Reply