Awarding/Removing points based on Dialogue Choices

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Robbie_NI
Posts: 3
Joined: Tue Feb 27, 2018 5:03 am

Awarding/Removing points based on Dialogue Choices

Post 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 :))
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: Awarding/Removing points based on Dialogue Choices

Post 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".
Robbie_NI
Posts: 3
Joined: Tue Feb 27, 2018 5:03 am

Re: Awarding/Removing points based on Dialogue Choices

Post by Robbie_NI »

Thanks for getting back to me, that did the job!
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: Awarding/Removing points based on Dialogue Choices

Post by Tony Li »

Happy to help!
Post Reply