Skip to content

Conversation

@SergiLS19
Copy link
Contributor

@SergiLS19 SergiLS19 commented Aug 28, 2025

Change the farmer in the top-right to a Talker scene.

Add a short dialogue in which they tell the player a joke.

Resolves #1002
Resolves #1003

@SergiLS19 SergiLS19 requested a review from a team as a code owner August 28, 2025 20:35
manuq
manuq previously requested changes Sep 1, 2025
Copy link
Collaborator

@manuq manuq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went to talk with the farmer and didn't say anything:

Image

I think what you need to do is:

  • Identify the farmer: Select the node named "Farmer" in the scene tree, then press F key to center it in the 2D viewport.
  • Then you need to add 2 child nodes to the Farmer node:
    • Add a TalkBehavior node. Please read its documentation using right click -> Open Documentation.
    • Instantiate an InteractArea scene. Then add a collision shape to this area. And finally set this InteractArea as the "Interact Area" property of the TalkBehavior node.

@manuq
Copy link
Collaborator

manuq commented Sep 2, 2025

@SergiLS19 I have updated the pull request description to link this pull request to the issue.

@SergiLS19
Copy link
Contributor Author

@manuq Yes, I only change the instance. I'm still working in the dialogue section, I think I can finish that today.

@manuq manuq changed the title I made the Fray End's Farmer interactive (#1002) Make Fray End's Farmer interactive Sep 3, 2025
@SergiLS19
Copy link
Contributor Author

@manuq Hi, Manu. I want to update the PR because I made the dialogues, should I wait for the PR to be approved or I cancel the PR and make a new one?

@manuq
Copy link
Collaborator

manuq commented Sep 4, 2025

@manuq Hi, Manu. I want to update the PR because I made the dialogues, should I wait for the PR to be approved or I cancel the PR and make a new one?

Please continue in the same pull request! You just continue commiting changes and pushing. Then we can squash (make a single commit with all the commits) before merging.

@SergiLS19
Copy link
Contributor Author

@manuq Hi, excuse me, I need to make another change to this issue? I think a made what I need, but the PR hasn't been approved yet

@github-actions
Copy link

github-actions bot commented Sep 10, 2025

Test build no longer available.

position = Vector2(1663, 1102)

[node name="Farmer" parent="NPCs" instance=ExtResource("20_xa7wa")]
[node name="Talker" parent="NPCs" instance=ExtResource("11_mr2ek")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep the node name Farmer.

Comment on lines 4 to 10
Seeds have terrible dating lives
They always get stood up
Hahahahahaha
...
Guess it was only funny in my head


Copy link
Member

@wjt wjt Sep 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't have thought of having the farmer tell a joke. I like it!

If you check the dialogue manager documentation you will see that you can put the character's name at the start of the line to indicate who is talking. And you can use {} to take the speaker's name from a variable.

With that in mind, after you've set the npc_name property on the farmer as suggested below, you can change this to (I suggest):

Suggested change
Seeds have terrible dating lives
They always get stood up
Hahahahahaha
...
Guess it was only funny in my head
{npc_name}: Seeds have terrible dating lives...
{npc_name}: They always get stood up!
{npc_name}: Hahahahahaha!
{player_name} ...
{npc_name}: Guess it was only funny in my head

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put the name but it still keeping "npc_name" in the dialogue. I will "hardcode" the names for now, okay? Because, It appears like this
Captura de pantalla 2025-09-11 150859

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I misremembered the syntax: it's {{variable name}} not {variable name}. I have added a patch to change this.

It's better to use the player-character's name (StoryWeaver in this case, or in general {{player_name}} because the player has different names in different storyquests) because the colour of the name banner is different for the player, and this is done based on the name:

image image

@wjt
Copy link
Member

wjt commented Sep 10, 2025

I think you could also add:

Fixes #1003

to the PR description? or do you intend the dialogue here as a placeholder? (I like it!)

@SergiLS19
Copy link
Contributor Author

All right! I will work on it.

@wjt
Copy link
Member

wjt commented Sep 15, 2025

For future reference, when you think a PR is ready to be reviewed again, you can click this button to re-request review:

image

@wjt
Copy link
Member

wjt commented Sep 15, 2025

Resolves #1002 and #1003

This syntax doesn't work. You need one per line:

Resolves #1002
Resolves #1003

I'll change it.

@wjt wjt requested a review from manuq September 15, 2025 10:13
@wjt wjt dismissed manuq’s stale review September 15, 2025 10:22

I have reviewed the PR again.

@wjt wjt merged commit de32db1 into endlessm:main Sep 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write dialogue for Fray's End Farmer Make Fray's End Farmer NPC a Talker

3 participants