Zeriab

Huggins!
Veteran
Joined
Mar 20, 2012
Messages
1,297
Reaction score
1,498
First Language
English
Primarily Uses
Other
MZ has many contexts.
Is this is in the Node build (Windows)?
Should the webpage be opened in a browser or inside the game itself (like a frame in a webpage)?
 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
1,112
Reaction score
642
First Language
Poland
Primarily Uses
RMMV
I don't use MZ but in MV via common event this code does what you need:
Code:
var url = 'https://soulrender.itch.io/';
var start = (process.platform == 'darwin'? 'open': process.platform == 'win32'? 'start': 'xdg-open');
require('child_process').exec(start + ' ' + url);

 

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
2,057
Reaction score
855
First Language
French
It looks like it worked, thank you.
 

Latest Threads

Latest Posts

Latest Profile Posts

Just a little close up shot...
w2xZocX.jpg
finally drew the last member of "team outcast" for my game. since my game has a lot fighting game elements in it, there's bosses in teams of three like King of Fighters.
Run Script Calls & Play Unique Sound Effects With Each Skill & Item | RPG Maker News #113

Let's continue making our game in MZ! Touchfuzzy is... still eventing... though this time we may be working on eventing some tutorial stuff for our players!

I work late on the game so I sleep in then I wake up late so I have to work hard to make up for sleeping in meaning I work late again and sleep in again... what a nasty cycle.

Forum statistics

Threads
113,844
Messages
1,077,911
Members
147,924
Latest member
TheDubiousBard
Top