| CODE |
[...] using System.IO; [...]
[...] life = Player.Character.Health; SettingsFile.SetValue(YOURLIFE, ??string??[category?], life) SettingsFile.GetValueInteger(YOURLIFE, 200) [...]
|
In .ini file i will got YOURLIFE yeah? But this sould look like that? :
| CODE |
[SETTINGS] YOURLIFE=200
|
What is "category" in "SetValue" ...? It's "SETTINGS"?
Edit:
Ok now i know...
| QUOTE |
Settings.GetValueInteger("YOURLIFE", 200); // Get Life from ini file. [example Lifescript.ini ]
life = Player.Character.Health; // save health from player to "life" integer. Settings.SetValue("YOURLIFE", life); // Set 'life' from game to ini file [its look like that - "YOURLIFE = 100"]
|
Now i can make RPG mod... Thanks man!
This post has been edited by Nevitro on Sunday, Jul 29 2012, 20:43