Is Fallout / Skyrim / Dishonored style dialogue possible?
Re: Is Fallout / Skyrim / Dishonored style dialogue possible?
Do I have to create animation controller when the NPC will talk or will I use Cutscene Sequencer? (I know, I might be bit annoying but I have to ask these questions)
Re: Is Fallout / Skyrim / Dishonored style dialogue possible?
The Dialogue System does everything the proper Unity way, as much as possible. This means you'll need to set up an animator controller in Unity. The Dialogue System will work with that animator controller.
The steps to create an animator controller are quite simple:
1. Right-click in the Project view, and select Create > Animator Controller. Assign this to your NPC.
2. Double-click on the Animator Controller to open the Animator canvas window. Drag all your animation clips from the Project view into the Animator canvas.
That's it. Each animation clip will have a corresponding animator state in the canvas, similar to this:
To play the animation "Hello" in a dialogue entry node, just set the node's Sequence field to:
If you don't want to use an animator controller, you can use Unity's legacy animation system. The Dialogue System supports this, too, with the Animation() sequencer command.
The steps to create an animator controller are quite simple:
1. Right-click in the Project view, and select Create > Animator Controller. Assign this to your NPC.
2. Double-click on the Animator Controller to open the Animator canvas window. Drag all your animation clips from the Project view into the Animator canvas.
That's it. Each animation clip will have a corresponding animator state in the canvas, similar to this:
To play the animation "Hello" in a dialogue entry node, just set the node's Sequence field to:
Code: Select all
AnimatorPlayWait(Hello)
Re: Is Fallout / Skyrim / Dishonored style dialogue possible?
Oh, if I use Animation Controller I don't have to link up animations..right? and let me get this straight now when I will set up all of these animations in Animation Controller..The Unity Dialogue System will play these animations when I will chose a question from the UI..But I have to link up Idle (siting),, standing and return to idle...Tell me did I get everything right this time?
Re: Is Fallout / Skyrim / Dishonored style dialogue possible?
If you use the Dialogue System's AnimatorPlay() and/or AnimatorPlayWait() commands, you don't need to link up anything. You can use Dialogue System Triggers like I described earlier in this thread to handle sitting and standing using AnimatorPlay(). Otherwise, if you use some other method, you may prefer to link up idle, standing, and return to idle.
Re: Is Fallout / Skyrim / Dishonored style dialogue possible?
I know, this might be the most annoying request you ever got..but if you can make a visual tutorial on all of this, it would really helpful. Because the date for submission and I'm panicking, when I'm panicking I can understand stuff
Re: Is Fallout / Skyrim / Dishonored style dialogue possible?
I'll see what I can do. If you can send me example FBX files with a model and animation, I'll use that. Otherwise I'll use stand-in assets.
Re: Is Fallout / Skyrim / Dishonored style dialogue possible?
Thanks, man...I'm still working on the model, it'll take a while to finish animating them..
Re: Is Fallout / Skyrim / Dishonored style dialogue possible?
Alright..I've found some of old samples....
https://drive.google.com/open?id=1Yy2S4 ... C2IhLE2MMX
It has two talking animations...so you can show me how to create one (talking / Answering Query) transition to another (talking / Answering Query) animation
https://drive.google.com/open?id=1Yy2S4 ... C2IhLE2MMX
It has two talking animations...so you can show me how to create one (talking / Answering Query) transition to another (talking / Answering Query) animation
Re: Is Fallout / Skyrim / Dishonored style dialogue possible?
I think an example that you can play with will be more helpful: MuseumExample_2018-07-05.unitypackage
The example scene was made in Unity 2017.4.6, so you should use this version or higher (e.g., Unity 2018).
The scene has a Dialogue Manager prefab. I didn't customize the prefab except to add a dialogue database.
The player uses Unity's Standard Assets FirstPersonController. I don't know what kind of VR you're using, so I used the non-VR first person controller instead. I also added a Proximity Selector component so it can detect when it's near the statue. You may want to replace this with some kind of system that detects if the player bows in VR.
The scene has a GameObject named "Thor". Actually I named it "Thor ADDED TRIGGERS" to let you know that I added Dialogue System Triggers to it.
You used Mixamo animations. I renamed the clips and dropped them onto an animator controller canvas. The animator controller looks like this:
"Thor" has a trigger collider:
It also has these components:
A second line just plays the "standToSit" animation.
There are many things you could do to polish this, but it should get the general idea across.
The example scene was made in Unity 2017.4.6, so you should use this version or higher (e.g., Unity 2018).
The scene has a Dialogue Manager prefab. I didn't customize the prefab except to add a dialogue database.
The player uses Unity's Standard Assets FirstPersonController. I don't know what kind of VR you're using, so I used the non-VR first person controller instead. I also added a Proximity Selector component so it can detect when it's near the statue. You may want to replace this with some kind of system that detects if the player bows in VR.
The scene has a GameObject named "Thor". Actually I named it "Thor ADDED TRIGGERS" to let you know that I added Dialogue System Triggers to it.
You used Mixamo animations. I renamed the clips and dropped them onto an animator controller canvas. The animator controller looks like this:
"Thor" has a trigger collider:
It also has these components:
- Dialogue System Trigger: Set to OnTriggerEnter. It plays the sequence AnimatorPlay(standToSit).
- Dialogue System Trigger: Set to OnTriggerExit. It plays the sequence AnimatorPlay(standToSit).
- Usable: This tells the player's Proximity Selector that it can use this GameObject.
- Dialogue System Trigger: Set to OnUse. It plays a conversation named "Thor".
A second line just plays the "standToSit" animation.
There are many things you could do to polish this, but it should get the general idea across.
Re: Is Fallout / Skyrim / Dishonored style dialogue possible?
First of all thank you for taking time out to explain...Now its making a lot of sense....Now I want to know how do I bring the UI with the list of the questions and lastly how will animation play when I select that question?