Script Reference Set

downloadstring (URL ; stringname) //Expert

Used for : Strings.

Parameters :

- URL - URL pointing to a TXT file
- stringname - Name of a stringvariable

Description :

This scriptcommand downloads the contents of a TXT file into a string. This can be used to implement an update check into your game. Example : You upload a TXT to any webspace you have access to and the TXT has the content "Version : 1.2". With downloadstring this line will be placed into a stringvar names "version". Now you can verify the version number with the version of your game. If the lines do not match your game can popup a message telling the player that a new version is available.