Save Question on SetPanel Sequence

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
KakimaAkuma
Posts: 29
Joined: Mon Sep 09, 2019 9:51 pm

Save Question on SetPanel Sequence

Post by KakimaAkuma »

I set some panels using SetPanel(actor, 2);

However, this doesn't seem to get saved because when I reload the scene and start on the node using conversation state saver it doesn't seem to reload.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save Question on SetPanel Sequence

Post by Tony Li »

SetPanel() only applies to the current active conversation. he Conversation State Saver doesn't save overridden panel numbers.

For readers who are not using the Conversation State Saver component, you can do this:

Set a Dialogue System variable. For example, say during the conversation that you run this sequence:

Code: Select all

SetVariable(actorPanelNum, 2);
SetPanel(actor, 2)
It will set the actor's panel to 2 and also save the value 2 in the variable "actorPanelNum".

If you set the <START> node's Sequence to this:

Code: Select all

SetPanel(actor, [var=actorPanelNum])
It will use the value you saved in "actorPanelNum".

---

I'll investigate a way to do this with the Conversation State Saver.
KakimaAkuma
Posts: 29
Joined: Mon Sep 09, 2019 9:51 pm

Re: Save Question on SetPanel Sequence

Post by KakimaAkuma »

Thanks Tony! I'll try to find a workaround for now.
KakimaAkuma
Posts: 29
Joined: Mon Sep 09, 2019 9:51 pm

Re: Save Question on SetPanel Sequence

Post by KakimaAkuma »

Heya Tony! Any update on this thread?
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save Question on SetPanel Sequence

Post by Tony Li »

I plan to implement it this week and put a patch on by the end of the weekend.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save Question on SetPanel Sequence

Post by Tony Li »

Hi,

Please try this patch:

DS_ConversationSaverPatch_2019-10-11.unitypackage

If you're using the Dialogue System's Visual Novel Framework, you'll also need to import this patch:

DS_VNFrameworkPatch_2019-10-11.unitypackage
KakimaAkuma
Posts: 29
Joined: Mon Sep 09, 2019 9:51 pm

Re: Save Question on SetPanel Sequence

Post by KakimaAkuma »

Hi! Is this patch in the 2.2.4 version? I used a fresh plugin and updated this patch. But it has some errors.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save Question on SetPanel Sequence

Post by Tony Li »

Yes, it was added to version 2.2.2, released October 23, 2019. You don't need to import either patch. The latest versions of the Dialogue System and VN framework are both newer than those links.
KakimaAkuma
Posts: 29
Joined: Mon Sep 09, 2019 9:51 pm

Re: Save Question on SetPanel Sequence

Post by KakimaAkuma »

Thank you!
Post Reply