I am looking for help making a script that checks your internet connectivity but doesn't actually connect you to the internet.
Is this possible in game? Would it be an extensive script?
I am basically looking for this because it is a perquisite for another script that I plan on having later.
This will be done by a Call Script Event
All I currently need is this little snippet, forgive my crap example
$Script that checks internet connection
$if Connected; (proceed with event processing)
$else
$show text [you are not connected to the internet]
$exit event processing
Pseudo-Online If,Then,Else Script
● ARCHIVED · READ-ONLY
-
-
Do you have a script that allows you to connect to the internet?
-
not yet- and im sure that would be the most difficult part of this script
-
I have absolutely no idea if this helps, and have never even looked at it myself:
http://www.rpgmakervxace.net/topic/20187-online-database-systemphp-mysql/ -
This should do what you want :)
Code:Plug that into your script editor, then just create a conditional branch with the Script option, with this call:class Game_Interpreter def connected? system('ping www.google.com -n 1') endend
Code:connected? -
Just what I was looking for- yet again you are a savior.
-
Should the problem that google.com is ever down, we can always add in microsoft's website as a backup.
If both of those should fail, we're probably in an apocalypse and it won't matter anyway :p -
How about pinging one of the root servers