Open URL at end of game

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
poep
Regular
Posts: 47
Joined: Tue Feb 04, 2014 1:26 pm
Contact:

Open URL at end of game

#1 Post by poep »

I can't seem to figure out how I can make the game open an URL at the end. No button or link, just opening the url in the player's browser.

Any help would be appreciated.

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: Open URL at end of game

#2 Post by IrinaLazareva »

Code: Select all

label start:
    'The end'
    $ renpy.run(OpenURL('http://www.renpy.org'))
    return
https://renpy.org/doc/html/screen_actions.html#OpenURL
https://renpy.org/doc/html/screen_python.html#renpy.run

User avatar
Showsni
Miko-Class Veteran
Posts: 563
Joined: Tue Jul 24, 2007 12:58 pm
Contact:

Re: Open URL at end of game

#3 Post by Showsni »

Why would you want to, though? I don't think I'd be happy about a game hijacking my browser to open pages without warning. It could take me to some virus laden page or anywhere.

poep
Regular
Posts: 47
Joined: Tue Feb 04, 2014 1:26 pm
Contact:

Re: Open URL at end of game

#4 Post by poep »

IrinaLazareva wrote: Sat Sep 08, 2018 9:03 am

Code: Select all

label start:
    'The end'
    $ renpy.run(OpenURL('http://www.renpy.org'))
    return
https://renpy.org/doc/html/screen_actions.html#OpenURL
https://renpy.org/doc/html/screen_python.html#renpy.run
Thank you very much.

Post Reply

Who is online

Users browsing this forum: No registered users