Adding contextual information to dialogue answers

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
lazyarbee
Posts: 1
Joined: Mon Sep 26, 2022 3:28 am

Adding contextual information to dialogue answers

Post by lazyarbee »

Hi!

I'm currently creating a game based on storylets like Fallen London or Sunless Skies, and considering using Dialogue System for all the story telling, but I have a question if you don't mind:

Is there a simple way to add contextual informations to answers (like skill tests infos, showing needed objects to activate answers, and so on) that would be in a separate block in the Answer Container (for example a vertical layout group with a title block, a text block and an icon based info block)

Also, is it possible to add dynamically some answers (for example, if there is in the scene a character with a particular skill, offer a new answer option to use that skill)

Thanks in advance,
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Adding contextual information to dialogue answers

Post by Tony Li »

Hi,
lazyarbee wrote: Mon Sep 26, 2022 3:45 amIs there a simple way to add contextual informations to answers (like skill tests infos, showing needed objects to activate answers, and so on) that would be in a separate block in the Answer Container (for example a vertical layout group with a title block, a text block and an icon based info block)
Yes. In the Dialogue System, conversation tree nodes (including answers) are called dialogue entries. You can add your own fields to the dialogue entry template. Add a custom field for your contextual information. It will work similarly to the Hover Response Button example on the Dialogue System Extras page.
lazyarbee wrote: Mon Sep 26, 2022 3:45 amAlso, is it possible to add dynamically some answers (for example, if there is in the scene a character with a particular skill, offer a new answer option to use that skill)
Yes. You'd add those to the conversation tree and set Conditions on them so that they only appear if the conditions are true. For more info on conditions, see the Conversation Conditions Tutorial.
Post Reply