URL in npc's branched dialogue
When I'm configuring NPC interaction in the game, I'm able to choose between command and URL, that works. I'd like to include URL into the branched dialogue, but I can't find any appropriate command, that I could use within the json file. How can I build a branched dialogue, that ends with e.g. two buttons - "Thank you", that ends the conversation, and "Read more" that links to an external website?
-
Hey Stefan Nowicki,
When you're adding buttons into the branched dialogue, it should look like this:
"buttons": [
{
"name": { "rawtext": [ { "translate": "npc.button.next" } ] },
"commands": [
"/dialogue open @s @initiator npc.name.dialogue1"
]
},
{
"name": { "rawtext": [ { "translate": "npc.button.link" } ] },
"url": "www.example-url.com"
}
],Hope this helps.
1 -
Hi Dani Noble,
It works, thank you! I can't believe it's so simple, I've tried with:
command:[
"url":"https://...."
]
presumably that "command" was my mistake. The simplier the better :)
Best :)
0 -
No problem at all, Stefan Nowicki. Glad that worked for you.
Took me a while to find the solution to this too!
0
Please sign in to leave a comment.
Comments
3 comments