BQubed
Member
I'm currently trying to setup a dialogue system in my game. I've been through the manual and every single dialogue tutorial on YouTube and I've learned an important lesson: You can't use other people's dialogue tutorials. So I've been working on creating my own but I'm having an issue with logic in terms of storing the dialogue. I've seen several options (ds_grid, ds_map, external .csv, external JSON) and since I have no clue how to setup the last two, I've opted for trying to use arrays.
At the core, I understand what an array is and I've used them before in another engine, but I'm not entirely sure how to implement one into my game in a manner that could make for an effective/efficient dialogue system. I understand that there are many ways to approach this, but I'd like to learn from the experience of more seasoned indie veterans.
I'll attempt to organize my confusion into something readable:
Any advice would be greatly appreciated.
At the core, I understand what an array is and I've used them before in another engine, but I'm not entirely sure how to implement one into my game in a manner that could make for an effective/efficient dialogue system. I understand that there are many ways to approach this, but I'd like to learn from the experience of more seasoned indie veterans.
I'll attempt to organize my confusion into something readable:
- I've read that when you use functions such as ds_grid_create, you should always end it with ds_grid_destroy so as to avoid memory leaks. However, if I store all my dialogue in a grid that I'm required to destroy, does that mean every time I activate a dialogue it'll re-create the entire grid each time and destroy it each time? If so, doesn't that get cumbersome with dialogue intensive games?
- Is it wiser to store all dialogue inside of a dialogue object (ie. obj_dialogue) or would it be more effective to have associated dialogue housed within each individual object?
- If storing within a singular dialogue object, does it not become extremely difficult to navigate thousands of lines of dialogue with only #regions to organize it, or is there some other method I'm unaware of?
Any advice would be greatly appreciated.