How to: Dialogue Implementation and scripting it

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Hikunou

How embarrassing of me posting my first ever question and problem to the wrong category, so here it goes for the second time. I’ve been questioning this for a week and a half now and I can’t seem to get my head around when my character interacts with an object and a dialogue pops up on the bottom of the screen. The Scenario is like this:

First the Player wakes up on his room and has to turn on the switch before proceeding to the next room.

Scenario 1

Second would be to interact with the switch via Input.is_action_just_pressed and after that a dialogue would pop out and telling the player some stuff and later on choosing whether to turn the switch on or not before proceeding to lit up the room.

Scenario 2

Here’s my dialogue box that I followed from a youtuber, and after the player press the next key it will then show choices of the situation.


this is my second time to post a question I hope this is still considered and totally not spamming. Forgive me for my accident of posting the question to the wrong category.

Long story short, How do I implement a dialogue scene (With choices depending on the situation) whenever the player interacts with certain objects or npc?
Thank you in advance, from a beginner of GodotEngine as well as in coding.
p.s. (pls I can’t progress because I have no knowledge of implementing a dialogue system…)

Your images don’t work. Also if you followed a tutorial, it’s usually a good idea (and fair to the creator of said tutorial) to link it here. Have you written any code already? How does your scene-tree look like?

njamster | 2020-06-12 15:19