Hello,
I would like a script that gives me the ability to store and read data from the game.ini file.
1) storestring_in_ini('keyname','datastring')
This script command (or something similiar) should check if a line with the keyname already exists in the ini-file.
If yes, rewrite the datastring to the new one, if not add the line and store the data there.
2) stringvar = readstring_in_ini('keyname')
This script command should check if the line with keyname exists, if yes it returns the stored datastring if not it returns an empty string.
Example:
Line in game.ini:
Titlepicture=second.png
(with keyname Titlepicture and datastring second.png)
And then that example can be used with a splashscreen script or other scripts to change the picture on the titlescreen depending on the last stored name (for example by story progress)
The Multilanguage-Addon for the SES external text script already stores the language setting into the game.ini - that script might be used as an example how to do this in a more general way:
http://forums.rpgmakerweb.com/index.php?/topic/6608-external-text-now-v22-get-text-eol-fix/
http://pastebin.com/732n2WRf
I would like a script that gives me the ability to store and read data from the game.ini file.
1) storestring_in_ini('keyname','datastring')
This script command (or something similiar) should check if a line with the keyname already exists in the ini-file.
If yes, rewrite the datastring to the new one, if not add the line and store the data there.
2) stringvar = readstring_in_ini('keyname')
This script command should check if the line with keyname exists, if yes it returns the stored datastring if not it returns an empty string.
Example:
Line in game.ini:
Titlepicture=second.png
(with keyname Titlepicture and datastring second.png)
And then that example can be used with a splashscreen script or other scripts to change the picture on the titlescreen depending on the last stored name (for example by story progress)
The Multilanguage-Addon for the SES external text script already stores the language setting into the game.ini - that script might be used as an example how to do this in a more general way:
http://forums.rpgmakerweb.com/index.php?/topic/6608-external-text-now-v22-get-text-eol-fix/
http://pastebin.com/732n2WRf