RPG Maker MZ - opening external web links on hosted server

draszje

Warper
Member
Joined
Sep 19, 2021
Messages
1
Reaction score
1
First Language
English
Primarily Uses
RMMZ
Hi all,
I'm currently making a web game in RPG Maker MZ. I'm hosting the game on my own server (for testing purposes). It's a game that I'm making for a school. Part of the game is that within the game the player must be able to open a link to an external page. For example a link to a page about s specific topic or a page where they can fill in a form.

Now I know there is a plugin available for RPG Maker MV from Yanfly (External_links_YEP), but unfortunately that doesn't work in MZ.

You can use a simple JavaScript snippet like:
window.win = window.open('[URL='https://www.rpgmakerweb.com/%27);']https://www.rpgmakerweb.com/');[/URL]
But the problem there is that the link does work, but it's blocked by the pop-up blocker of your browser.

So basically my question is if there is a way to stop the pop-up blocker from blocking the pop-up window from within RPG Maker MZ?

Anyways, thanks for all of your time!
best regards,
Andreas
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
888
Reaction score
439
First Language
PT-BR
Primarily Uses
RM2k3
Hello and welcome!

The most used javascript command for this is this one, recommending only for the game distributed for Web Browser:
JavaScript:
window.open('http://rpgmakerweb.com')
Or:
JavaScript:
open('http://rpgmakerweb.com')

If distributing for Windows, Linux or MacOS, this opens the computer's default browser:

Good luck
 

Latest Threads

Latest Posts

Latest Profile Posts

thought I'd upgrade to mz from mv cause of the nice quality of life features but ****ing hell why couldn't they allow old plugins to work in it and secondly how come in over a year since it's release has there been no mz version of something so crucial as a non grid based movement plugin. I guess I'll stick with mv. (why wasnt mz just an update to mv anyway literally nothing substantial changed..)
Something might be coming...
Hallo.png
A new day for creating :)
2021 has been the runner-up for the worst year of my life. 2015 may take that title, but '21 is pushing it. Excuses really don't justify how much of a jerk I've been this year to a lot of people.

I'm sorry. I don't intend to be a jerk forever, but I'd rather back up my intent with actions, not words.

Forum statistics

Threads
116,020
Messages
1,094,982
Members
151,337
Latest member
Laura1999
Top