How to open a website?

Status
Not open for further replies.

Teddy97

Veteran
Veteran
Joined
Apr 3, 2018
Messages
49
Reaction score
22
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!
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
1,037
Reaction score
328
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
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
14,070
Reaction score
7,756
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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Trauma, drama, llamas--sadly the only one of those things I'm not experiencing RN is the camelids.
Do you ever just write or say nonsense? String together words to make a sentence that sounds pretty but is meaningless?
Writing down my ideas for my next game during break times at work XD I need to finish my current one very soon.

Forum statistics

Threads
93,658
Messages
914,364
Members
123,246
Latest member
Aspaqi
Top