GarbageHaus
Member
I've been searching the forums/help guide/googling this to no avail.
I have a .CSV file, it's a no frills .CSV file with the first column being a unique identifier (1 through 9), the second column being a list of names, and the third column being a color. I suppose it doesn't really matter that it is a .CSV, it could be any form of database-like plain text file. However, GMS seems incredibly obtuse when it comes to file handling.
I want to have have a random number be pulled, then use that random number to select an entry/line in my .CSV file. Then later use the name and color for other parts of the game.
Everywhere I look seems to suggest these workarounds:
Is it really just impossible to do this normally? Should I just hard-code the .CSV data as just 1 big array/object and do it this way?
I have a .CSV file, it's a no frills .CSV file with the first column being a unique identifier (1 through 9), the second column being a list of names, and the third column being a color. I suppose it doesn't really matter that it is a .CSV, it could be any form of database-like plain text file. However, GMS seems incredibly obtuse when it comes to file handling.
I want to have have a random number be pulled, then use that random number to select an entry/line in my .CSV file. Then later use the name and color for other parts of the game.
Everywhere I look seems to suggest these workarounds:
- Creates double-nested "for" loops (WHY!?!)
- Uses the ds map/grids (At that point, why bother having any file at all?)
- Specifies a command that is depreciated in GMS2.3+
Is it really just impossible to do this normally? Should I just hard-code the .CSV data as just 1 big array/object and do it this way?