Page 1 of 1

Awarding/Removing points based on Dialogue Choices

Posted: Tue Feb 27, 2018 5:09 am
by Robbie_NI
Hi there!

I'm new to the forum so I apologise if this has been asked before.

I'm currently developing a game that helps Law students test their knowledge, this means that I need a way to award or take away points based on their responses, e.g.:

NPC: "Should you accept Rose as a client?"

Player: "Yes" - This will then remove 5 points from the user's score.
"No" - This will add 5 points to the user's score.

Is this possible using the Dialogue System?

Any help would be appreciated :))

Re: Awarding/Removing points based on Dialogue Choices

Posted: Tue Feb 27, 2018 8:49 am
by Tony Li
Hi,

Yes, you can do that. Here are some steps:

1. On the Dialogue Editor window's Variables tab, add a new Number variable. Name it "Points".

2. On the Conversations tab, inspect the correct answer. Click the "..." next the field named Script. Click "+". Then from the dropdowns select Variable > Points > Add, and enter 5. Finally, click Apply. Repeat for the incorrect answer, except enter -5.

3. If you want to show the points onscreen: On the Quests tab, select Menu > New Quest. Change the quest's name to Score. Tick Use Display Name, and set the Display Name to: "Score: [var=Points]" (without the quotes). Set State to active. Tick Trackable and Track on Start. Back on the Conversations tab, click the "+" next to each answer's Sequence field, and select "Update quest tracker".

Re: Awarding/Removing points based on Dialogue Choices

Posted: Wed Feb 28, 2018 6:53 am
by Robbie_NI
Thanks for getting back to me, that did the job!

Re: Awarding/Removing points based on Dialogue Choices

Posted: Wed Feb 28, 2018 10:16 am
by Tony Li
Happy to help!