Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -



Post new topic Reply to topic  [ 10 posts ] 
    Draycos Goldaryn
  Mon Jul 02, 2007 4:09 pm
The Goldyn Scaly One
User avatar
Member


Location: My own Phantasy Realm
HTML Link
Version: 1.05

Introduction

This script will allow you to include links to webpages within your game and will open these webpages in the player's default web browser. To do this, simply call the following command:
Expand to see the code.

and replace 'name.of.webage' with the address of the webpage. Make sure it is entered as a string.
Examples:
Expand to see the code.


Screenshots

You open a webpage from within a game using the player's default web browser. You can see it, can't you?

Demo

Hosted by Geocities
Hosted in the Download Manager

Script

HTML Link Script

This also requires SDK 2.2 part I and Aleworks Library

Instructions
Installation:
Insert the scripts in this order:
[INDENT]Default Scripts
SDK
Aleworks Library
HTML Link
Main[/INDENT]

Usage:
Simple: just call
A.href('name.of.webpage')
Just remember to change 'name.of.webpage' with, you guessed it, the http address of the webpage.

FAQ

Q: My game crashes when I use the command!
A: Make sure you enter the webpage address as a string.

Q: Why can't I open webpages with long names?
A: If you are calling this script from an event, split the string in the following format:
Expand to see the code.


Compatibility

There shouldn't be any compatablitity issues, though it does require Part 1 of the SDK 2.2 or greater, and Aleworks Library version 1.00

Credits and Thanks

Thanks to the SDK team, and to Aleworks (aka vgvgf).

Terms and Conditions

Free to use, just credit Draycos Goldaryn.
Also credit Aleworks for his library.
Yes, you can use it in a commercial game. Only credit is required.

Notes

Wow, this script has gone international! I randomly google my name at times and i found a link to a planetarpg.com.ar but the thread where my script was posted must have been deleted :( I also found a link to a polish site where they also posted my script and even provided a link to the demo located in the download manager!

If anyone else knows of other sites where this script has been posted, can you let me know? If anyone else wants to post this script on another site, feel free, just, please, let me know too. And don't forget to provide the proper credit!

_________________
Scripts that I made

And now for some fun:
Popular Quotes with a Goldaryn Twist! (Updated 2011-08-25)


Last edited by Draycos Goldaryn on Sun Aug 05, 2007 4:23 pm, edited 1 time in total.

Top Top
Profile      
 

    vgvgf
  Mon Jul 02, 2007 4:40 pm
User avatar


At last you have released this script. It's nice, and not only because it is usefull, it's nice because uses my scripts, too.
Some things:
You can use constants insteand of "@" variables(I don't remember the name of the @ variables...), so you can remove the attr_readers and A.initialize.
And the other thing, is that you can use one module_function before the definitions methods, insteand of using it for each method.

_________________
Pseudo-Retired due to lack of time. Lack of time causes: working, studing.


Top Top
Profile      
 

    Link in Pink
  Tue Jul 03, 2007 1:47 am
It rhymes.
User avatar
Member


Location: Confirmed. Sending Supplies.
Awesome for publicity in your games :D

_________________
http://i288.photobucket.com/albums/ll19 ... ature2.png[/img]


Top Top
Profile      
 

    Gukosowa
  Wed Jul 04, 2007 3:19 pm
Member

Hijj!
i think this script isnt bad coded, but isnt there a other function how u can call the internet explorer directly with a syntax?

q_q
i have that syntax at home in a game, so i can send u that at weekend, its something like
system("explorer","www.google.com")
or like that xD
maybe u know it ^^

MfG
Guko

_________________
http://www.charous.com/uploads/08e57d837b.jpg[/IMG]


Top Top
Profile      
 

    Mr.Mo
  Wed Jul 04, 2007 8:51 pm
Member

that is what he uses, except he calls the path,. There is a simple way to do it of course, its in the Ruby Help File :p. but he looks for the default browser ;). Useful script.

btw, if you declare module_function right before the first method, you don't have to use : methodName. I might be wrong but thats how I remember it, don't have RMXP in this PC...

_________________
Image
Image
Image

Support Express Game Maker!


Top Top
Profile      
 

    Draycos Goldaryn
  Thu Jul 05, 2007 1:09 pm
The Goldyn Scaly One
User avatar
Member


Location: My own Phantasy Realm
Gukosowa;238178 wrote:
Hijj!
i think this script isnt bad coded, but isnt there a other function how u can call the internet explorer directly with a syntax?

q_q
i have that syntax at home in a game, so i can send u that at weekend, its something like
system("explorer","www.google.com")
or like that xD
maybe u know it ^^

MfG
Guko


As Mr. Mo stated, This script uses the player's default browser, in case they don't want to use internet explorer. For example, I disabled my intenet explorer because of all the stupid adware pop ups that keep popping up even after running adware removal programs. I only use Firefox, so if I played your game and it tried to open a link in iexplorer, It would not work. but if I used my script, it would see that Firefox is my default browser and open the webpage in there.

Mr.Mo;238313 wrote:
btw, if you declare module_function right before the first method, you don't have to use : methodName. I might be wrong but thats how I remember it, don't have RMXP in this PC...


Since I'm still very new to scripting, I have to look at other scripts to get the basics down. I sort of modeled this one off of Selwyn's Resolution Script.

_________________
Scripts that I made

And now for some fun:
Popular Quotes with a Goldaryn Twist! (Updated 2011-08-25)


Top Top
Profile      
 

    Amy
  Thu Jul 05, 2007 1:57 pm
User avatar
Staff

Big Dumb Guy
Wow, this script will be so useful, especially for people with a website for their game.

One question: am I allowed to use this script in a commercial game?


Top Top
Profile      
 

    Draycos Goldaryn
  Sat Jul 07, 2007 12:46 pm
The Goldyn Scaly One
User avatar
Member


Location: My own Phantasy Realm
yes Wyatt, just give the appropriate credit:

Aleworks for his library, and
Draycos Goldaryn for this script.

_________________
Scripts that I made

And now for some fun:
Popular Quotes with a Goldaryn Twist! (Updated 2011-08-25)


Top Top
Profile      
 

    Draycos Goldaryn
  Sun Aug 05, 2007 4:22 pm
The Goldyn Scaly One
User avatar
Member


Location: My own Phantasy Realm
Wow, this script has gone international! I randomly google my name at times and I found a link to a planetarpg.com.ar but the thread where my script was posted must have been deleted :( I also found a link to a polish site where they also posted my script and even provided a link to the demo located in the download manager!

If anyone else knows of other sites where this script has been posted, can you let me know? If anyone else wants to post this script on another site, feel free, just, please, let me know too. And don't forget to provide the proper credit!

_________________
Scripts that I made

And now for some fun:
Popular Quotes with a Goldaryn Twist! (Updated 2011-08-25)


Top Top
Profile      
 

    dewi
  Sun Oct 07, 2007 8:58 pm
Member

Hey your script is perfect for my game.
Your name is already noted for credits!


Top Top
Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 


Who is online

Users browsing this forum: No users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

cron
We are an independent, not-for-profit game making community.
Homepage
Board Index
About Us
Downloadable Games
Free Browser Games
Games in Development
RPG Maker Support
Game Maker Support
Construct 2 Support
HBGames the eZine
Advanced RPG Maker
Site Announcements
Powered by phpBB © phpBB Group