Page 1 of 1

Little to no player interaction

Posted: Wed Apr 26, 2023 7:59 am
by danosono
How would I set up so there is a main narrator and a couple other sidekicks but the player does not interact with them.

I would like the player to be able to choose between:
-having the narration carry on without player-interaction
-the need to click [Continue] or [OK] before the current text is removed

but, other than that, the player will not be responding to or interacting with the other actors.

Kinda like Defense Grid and Defense Grid 2

I guess I am asking for a best-practice direction; I can see ways to do this in DSfU but I am just starting a project and I am not super familiar with the MANY ways of doing things in this great asset. I don't want to start on the wrong foot.

Thanks!
Danny

Re: Little to no player interaction

Posted: Wed Apr 26, 2023 8:10 am
by Tony Li
Hi Danny,

Just assign NPC actors to your conversation. When you create a conversation, select Menu > Conversation Properties or click on blank canvas space. This will show the conversation's properties in the Inspector. Set the Actor and Conversant dropdowns to NPC actors (i.e., actors whose Is Player checkbox is unticked).

To toggle between having the narration carry on without player-interaction or requiring the player to click [Continue], set the Dialogue Manager's Display Settings > Subtitle Settings > Continue Button dropdown to Always or Never. A simple way to do this at runtime is to add a Conversation Control component to your Dialogue Manager or dialogue UI. Then call its ToggleAutoPlay() method. This will toggle the Continue Button dropdown between Always and Never.

Re: Little to no player interaction

Posted: Wed Apr 26, 2023 8:24 pm
by danosono
Thanks so much Tony!

Got it working in no time with your excellent help.

Re: Little to no player interaction

Posted: Wed Apr 26, 2023 8:39 pm
by Tony Li
Glad to help!