Pseudo-Online If,Then,Else Script

● ARCHIVED · READ-ONLY
Started by Killok 8 posts View original ↗
  1. 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
  2. Do you have a script that allows you to connect to the internet?
  3. not yet- and im sure that would be the most difficult part of this script
  4. This should do what you want :)

    Code:
    class Game_Interpreter  def connected?    system('ping www.google.com -n 1')  endend
    Plug that into your script editor, then just create a conditional branch with the Script option, with this call:
    Code:
    connected?
  5. Just what I was looking for- yet again you are a savior.
  6. 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
  7. How about pinging one of the root servers