Hello there! So I have a game that uses an interesting invisible grid system to dictate your location on the map.
There are no actual moving objects. The grid has 20x20 sectors, Sector A1-T10, and each one is represented by an object of that name. "Sector A1", "Sector J10", etc.
And each object contains 25 values that define subsectors within these regions. I know it's a bit complicated, but it is for random map generation, and the code works just fine. That is not the issue.
It is not difficult to reference these objects' values manually, but it will be very time consuming for my large grid, and also it will make it more difficult to expand my map if I ever decide to.
So, if I could simply have it search for the values of these items like I already am, except do it all while replacing the name of the object in the expression with a string, it would cut my work load down to a fraction of the time,
and my event editor would be much more neat too.
Here is an example of what I know works. The manual way; Searching for each object and its 25 values one by one. 400 objects * 25 values. I'm sure you can imagine why I'm seeking a different method. haha
If I could get it to function more like this, then I would only have to account for 400 instead of 10,000 events for my massive map.
For example, the player's coordinates are between Y500/X500 and Y1000/X1000, so the global value "Biome Activation Check" is set to a certain value, dictating a region.
Then, based on this region (perhaps it's J10,) each of the 25 subsectors within this region will be generated based on numbers pulled from each of the 25 values of the object (Sector J 10).
I'm only giving so many specifics so you can see the importance of what I'm looking to achieve. Without this shortcut it would take forever.
So everything is going according to plan. But I'm looking to save loads of time and be able to work smarter and not harder!
Thanks for reading! Even if it's impossible to do what I'm wanting, I'm open to hear about alternative methods. But if there is a way to change which object is having its value extracted based on a factor, such as a global string, then it will help me a ton.