Questions about the ork framework and integration samples

Announcements, support questions, and discussion for the Dialogue System.
blackpinemk2
Posts: 10
Joined: Thu Nov 18, 2021 6:43 am

Questions about the ork framework and integration samples

Post by blackpinemk2 »

Hello. I am a beginner.
I have some questions about the orkframework sample.
The first is to have a dialogue manager in '0 Main menu', but not in '1 Town'. Should I just put the dialoguemanager in '0 Main menu'? Doesn't it need to be placed in '1 Town'?
The second is the orkframework event, which has only a startconversations node in NPC_green. The content of the conversation was in the'ork example dialogue datebase'in the dialogue manager in the '0 Main menu'.
If I want to add all the new conversations in the game, should I add them to the dialogue manager in '0 Main menu'?

I'm sorry I'm not good at English.
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Questions about the ork framework and integration samples

Post by Tony Li »

Hello,

You should have a Dialogue Manager in the first scene that uses any Dialogue System features. You should put a Dialogue Manager in '0 Main Menu', but you can also put another one in '1 Town' so you can quickly playtest '1 Town' without having to start playing from '0 Main Menu'. Keep in mind that, at runtime, the first Dialogue Manager to exist while playing will survive scene changes and replace any Dialogue Manager that's in the newly-loaded scene.

If you put Dialogue Manager GameObjects in multiple scenes, I recommend making a single Dialogue Manager prefab. It can be a prefab variant of the Dialogue System's default Dialogue Manager prefab. Then put an instance of this prefab in any scene you want. Don't change the settings on the instance; change them on the prefab.
blackpinemk2
Posts: 10
Joined: Thu Nov 18, 2021 6:43 am

Re: Questions about the ork framework and integration samples

Post by blackpinemk2 »

thank you for your reply.

If I place the Dialogue Manager GameObject in '0 Main Menu', does the '0 Main Menu' get priority even if I put the Dialogue Manager GameObject in '1 Town'?

If so, place the Dialogue Manager GameObject in '0 Main Menu' and the prefab variant of the Dialogue Manager GameObject in '1 Town'. Then, even if I place the Dialogue Manager GameObject in '1 Town', the one in '0 Main Menu' is not prioritized, and the prefab variant of '1 Town' remains?
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Questions about the ork framework and integration samples

Post by Tony Li »

No. Use the same prefab variant in both scenes. The first one to exist will continue to exist through all scenes.

If you enter play mode from 0 Main Menu, the Dialogue Manager in 0 Main Menu will persist into 1 Town.

However, if you enter play mode directly in 1 Town, the Dialogue Manager in 1 Town will persist.

If they're both instances of the same prefab, you won't have any problems.
blackpinemk2
Posts: 10
Joined: Thu Nov 18, 2021 6:43 am

Re: Questions about the ork framework and integration samples

Post by blackpinemk2 »

When playing from "1 Town" during test play, you can quickly play test "1 Town" without having to place another dialog manager in "1 Town" and start playback from "0 Main Menu". Is this what you wanted to say?

You have two choices: write all the conversations in the dialog manager of the '0 main menu', or create the same prefab variant for both scenes and write the conversations respectively and each prefab variant shares conversation changes, right?

I have another question. In the orkframework editor, in the start converation node, in the conversion title,
valuetype value
value greenpantsconversation
Do you set the conversation created by Dialogue Manager here?
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Questions about the ork framework and integration samples

Post by Tony Li »

Hi,
blackpinemk2 wrote: Fri Nov 19, 2021 1:55 amWhen playing from "1 Town" during test play, you can quickly play test "1 Town" without having to place another dialog manager in "1 Town" and start playback from "0 Main Menu". Is this what you wanted to say?

You have two choices: write all the conversations in the dialog manager of the '0 main menu', or create the same prefab variant for both scenes and write the conversations respectively and each prefab variant shares conversation changes, right?
No, sorry I was unclear. Save one single customized version of your Dialogue Manager as a prefab variant. Then put in instance of this prefab variant in 0 Main Menu and, optionally, in 1 Town. In both scenes, the Dialogue Manager should be exactly the same.
blackpinemk2 wrote: Fri Nov 19, 2021 1:55 amI have another question. In the orkframework editor, in the start converation node, in the conversion title,
valuetype value
value greenpantsconversation
Do you set the conversation created by Dialogue Manager here?
Yes. :-)
blackpinemk2
Posts: 10
Joined: Thu Nov 18, 2021 6:43 am

Re: Questions about the ork framework and integration samples

Post by blackpinemk2 »

Create a prefab variant from the Dialogue Manager prefab and place the same in 0 main menu and 1 town.
When creating a new npc conversation in '1 Town', you can make it from the manager of the prefab variant of '1 Town', right?
Since it is a prefab variant, 0 main menu and 1 town Dialogue Manager are the same, right?

At worst, does it work if I write all the scene conversations in the Dialogue Manager in the 0 main menu?

I'm sorry I'm not good at English.
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Questions about the ork framework and integration samples

Post by Tony Li »

Yes, that's fine. Use only one dialogue database asset. Assign it to all Dialogue Manager GameObjects in all of your scenes.
blackpinemk2
Posts: 10
Joined: Thu Nov 18, 2021 6:43 am

Re: Questions about the ork framework and integration samples

Post by blackpinemk2 »

And if you want it to be convenient, create a prefab variant from the Dialogue Manager prefab and place the same prefab variant in 0 main menu and 1 town, right?

I have one more question. You don't have to set up a scene in Dialogue Manager, right? You just place the Dialogue Manager GameObject, right?
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Questions about the ork framework and integration samples

Post by Tony Li »

blackpinemk2 wrote: Fri Nov 19, 2021 10:47 am And if you want it to be convenient, create a prefab variant from the Dialogue Manager prefab and place the same prefab variant in 0 main menu and 1 town, right?
Yes.
blackpinemk2 wrote: Fri Nov 19, 2021 10:47 amI have one more question. You don't have to set up a scene in Dialogue Manager, right? You just place the Dialogue Manager GameObject, right?
Yes. :-)
Post Reply