... | @@ -103,7 +103,7 @@ This setup will make sure that `MrCube` will say his name only the first time th |
... | @@ -103,7 +103,7 @@ This setup will make sure that `MrCube` will say his name only the first time th |
|
|
|
|
|

|
|

|
|
|
|
|
|
### j. Setup `ColorChangeRequestCount` Edge Condition
|
|
### i. Setup `ColorChangeRequestCount` Edge Condition
|
|
|
|
|
|
- Select the Edge from `Node 4` to `Node 5`
|
|
- Select the Edge from `Node 4` to `Node 5`
|
|
- Add a new `Condition`
|
|
- Add a new `Condition`
|
... | @@ -123,7 +123,7 @@ This `ColorChangeRequestCount` variable will be Modified by the **Dialogue** in |
... | @@ -123,7 +123,7 @@ This `ColorChangeRequestCount` variable will be Modified by the **Dialogue** in |
|
|
|
|
|

|
|

|
|
|
|
|
|
### k. Setup `ColorChangeRequestCount` Node Enter Event
|
|
### j. Setup `ColorChangeRequestCount` Node Enter Event
|
|
|
|
|
|
- Select the `Speech Node 5`
|
|
- Select the `Speech Node 5`
|
|
- Add a new `Enter Event`
|
|
- Add a new `Enter Event`
|
... | @@ -137,8 +137,18 @@ This will increase the `ColorChangeRequestCount` variable each time the dialogue |
... | @@ -137,8 +137,18 @@ This will increase the `ColorChangeRequestCount` variable each time the dialogue |
|
|
|
|
|

|
|

|
|
|
|
|
|
11. Add the three End nodes. Set the edge texts to `Red`, `Green` and `Blue` from left to right. Add an enter event to the three end nodes. The Participant Name and the Event Type should be the same. Set the `Event Name` to `ColorToRed`, `ColorToGreen`, `ColorToBlue` from left to right.
|
|
### k. Setup Final End Nodes
|
|

|
|
|
|
|
|
- Add an `End Node` child from the `Speech Node 6`
|
|
|
|
- Add **three** `End Node` children from `Speech Node 5`
|
|
|
|
- Set the Edge `Text` in this order from left to right: `Red`, `Green`, `Blue`
|
|
|
|
- Add an `Enter Event` to all three Nodes
|
|
|
|
- The `Participant Name` should be `MrCube`
|
|
|
|
- The `Event Type` should be `Event`
|
|
|
|
- Set the `Event Name` in this order from left to right: `ColorToRed`, `ColorToGreen`, `ColorToBlue`
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
13. Time to make Mr. Cube change his color. Save the Dialogue and go to the MrCube Blueprint. Open the OnDialogueEvent function. Place the `Switch on Relevant Dialogue Event` node - it lists the event names associated with Mr. Cube and works as a normal switch node.
|
|
13. Time to make Mr. Cube change his color. Save the Dialogue and go to the MrCube Blueprint. Open the OnDialogueEvent function. Place the `Switch on Relevant Dialogue Event` node - it lists the event names associated with Mr. Cube and works as a normal switch node.
|
|

|
|

|
... | | ... | |