How to open a website?

Discussion in 'RPG Maker MV' started by Teddy97, Jul 6, 2019.

Thread Status:
Not open for further replies.
    Tags:
  1. Teddy97

    Teddy97 Veteran Veteran

    Messages:
    49
    Likes Received:
    22
    Location:
    Austria
    First Language:
    German
    Primarily Uses:
    RMMV
    Hello,

    I’d like to open an internet website when the player talks to a specific NPC. Is there a script call or plugin to achieve this?

    Thank you in advance!
     
    #1
  2. ShadowDragon

    ShadowDragon Veteran Veteran

    Messages:
    883
    Likes Received:
    271
    Location:
    Netherlands
    First Language:
    Dutch
    Primarily Uses:
    RMMV
    Code:
    // Open URL in a new window
    window.open('https://github.com/nwjs/nw.js', '_blank');
    
    // Open URL with default browser (Windows Or Mac Only)
    require('nw.gui').Shell.openExternal('https://github.com/nwjs/nw.js');
    it was found here if you looked through the forum or google for it
     
    #2
    Teddy97 likes this.
  3. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    13,839
    Likes Received:
    7,644
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

     
    #3
Thread Status:
Not open for further replies.

Share This Page