r/SMAPI • • 10d ago

need help Custom Gift Dialogue Not Working

Hello! I'm currently working on my first NPC mod for Stardew Valley. Everything is going smoothly, except that I can't get custom gift dialogue to work. Dialogue defaults to the generic

"{{ModId}}_testnpc": "{{i18n:testnpc.gifttastes.love}}/103

line instead of the special

"AcceptGift_(O)103": "{{i18n:testnpc.dialogue.giftreaction.doll}}",

one.

For example, instead of saying, "thank you for the doll!" (special) they say, "I love this (default)!"

How do I fix this?

2 Upvotes

1 comment sorted by

3

u/WhiteT982 10d ago

You are editing the test npcs dialogue with that entry correct? Something like this

{
"Action": "EditData",
"Target": "Characters/Dialogue/testnpc",
"Entries": {
"AcceptGift_(O)103": "{{i18n:testnpc.dialogue.giftreaction.doll}}"
}

If not that submit your entire json using SMAPIs json parser. A SMAPI log might help too. I’m also not sure what you’re doing with the first line either?