G
GoneGamer554
Guest
Howdy All!
So, I have a quick design question regarding the storage of lots of strings for my game. And I'm talking like... 60K words-worth of strings that pop up in separate pages. Now, I've dabbled in storing them in files, but loading and processing them is kind of a pain. So, ignorant as to how GM2 handles its Scripts, I decided to simply use scripts to handle them.
Currently, I am using a tree system, with key codes that direct switch scripts to the actual script holding the needed string. This makes it so the system is only making a few comparison calculations to get to the desired string instead of having to dive through potentially hundreds. Like a file system, diving into successive levels without having to see the irrelevant entities.
Like comparing Chapter 1 which leads into comparing for Sub-Chapter 2 and then leads into the actual Page where the string is stored and then just returning (Ch1 - SCh2 - P1).
The big question? Would this really chug on system resources? Does GM2 load the script on call only? This way scripts aren't stored in memory until they're actually used... I'm assuming so...
Anyways, any help on this matter would be greatly appreciated!
And sorry if this is a stupid question. I'm still a noob with GM2!
So, I have a quick design question regarding the storage of lots of strings for my game. And I'm talking like... 60K words-worth of strings that pop up in separate pages. Now, I've dabbled in storing them in files, but loading and processing them is kind of a pain. So, ignorant as to how GM2 handles its Scripts, I decided to simply use scripts to handle them.
Currently, I am using a tree system, with key codes that direct switch scripts to the actual script holding the needed string. This makes it so the system is only making a few comparison calculations to get to the desired string instead of having to dive through potentially hundreds. Like a file system, diving into successive levels without having to see the irrelevant entities.
Like comparing Chapter 1 which leads into comparing for Sub-Chapter 2 and then leads into the actual Page where the string is stored and then just returning (Ch1 - SCh2 - P1).
The big question? Would this really chug on system resources? Does GM2 load the script on call only? This way scripts aren't stored in memory until they're actually used... I'm assuming so...
Anyways, any help on this matter would be greatly appreciated!
And sorry if this is a stupid question. I'm still a noob with GM2!