... | @@ -23,16 +23,23 @@ At the end the player character will be able to talk to our NPC, Mr. Cube and as |
... | @@ -23,16 +23,23 @@ At the end the player character will be able to talk to our NPC, Mr. Cube and as |
|
- Open the blueprint, add a `Cube` component.
|
|
- Open the blueprint, add a `Cube` component.
|
|
- Go the the Class Settings to add the `DlgDialogueParticipant` interface to the implemented interfaces list.
|
|
- Go the the Class Settings to add the `DlgDialogueParticipant` interface to the implemented interfaces list.
|
|
|
|
|
|

|
|

|
|
|
|
|
|
2. Open the `GetParticipantName` function and create a `DlgName` variable. Set the value to `MrCube`.
|
|
### b. Implement the `GetParticipantName` Function
|
|

|
|
|
|
|
|
|
|
3. Switch to the content browser. Create a `Dialogue` asset with the name `DlgMrCube`
|
|
- Open the `GetParticipantName` function
|
|

|
|
- Create a `DialogueParticipantName` variable on the Blueprint and Set the value to `MrCube`.
|
|
|
|
|
|
4. Open the dialogue. Drag an edge from the border of the start node and place a `Speech node`.
|
|

|
|

|
|
|
|
|
|
### c. Create & Open `Dialogue`
|
|
|
|
|
|
|
|
- Switch to the content browser
|
|
|
|
- Create a `Dialogue` asset with the name `Dlg_MrCube`
|
|
|
|
- Open the dialogue
|
|
|
|
- Drag an edge from the border of the start node and place a `Speech node`.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
5. With the newly added node selected set the `Participant Name` to `MrCube`, and the Text to "I am Mr. Cube! What can I do for you?" in the `details panel`.
|
|
5. With the newly added node selected set the `Participant Name` to `MrCube`, and the Text to "I am Mr. Cube! What can I do for you?" in the `details panel`.
|
|

|
|

|
... | | ... | |