• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML ini file

W

WinuX

Guest
Hello everyone

I have a quick question regarding the use of ini files.

I have 4 playable characters and they all have thier own stats.
The code for writing in the ini file looks like this for the first 2 characters,
upload_2017-3-26_22-45-10.png
they all have thier own section, but the keys that i use in the sections are all the same.
Will this be a problem when loading the file?

Thanks for the coming answers! ;D
 

Perseus

Not Medusa
Forum Staff
Moderator
Will this be a problem when loading the file?
No, you can have similarly named keys in two (or more) different sections. When loading the value of a key, you have to give name of the section that you want to load it from, so data from different sections can be loaded independent of each other. So naming them alike should be the least of your worries.
 
Top