Skip to main content

URL in npc's branched dialogue

Comments

3 comments

  • Dani Noble
    Moderator Beacon of Knowledge Super Star

    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
  • Stefan Nowicki

    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
  • Dani Noble
    Moderator Beacon of Knowledge Super Star

    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.