Hey girl/guys (<-- extra non-sexist while maintaining a realistic average ratio).. I've been trying to come up with a few different types of solutions for this over the past couple of days. Then I just thought "why not branch out to the brilliant minds on the forums for help?".. IDK why that thought always takes so long to occur. *facepalm*
Here's what I'm trying to do in my current project:
Ideally, I'd like to be able to continuously check multiple variable values in my INI which is being used as an active 3D array with the coordinate being the group name. (yes, must be INI.. but im open to options if anyone thinks of one..the array object seems too limited for this particular situation..but I have little experience with it.)
The 3D array's values/strings stored in the INI are used to make up a "3D" (top-down 2D w/ alterable Z) grid on screen. The INI handles the communication between these cells or "blocks". When one block is altered, it affects surrounding blocks in various ways.
The problem is in being able to single out and identifying a particular INI group(cell coordinate) to test.
I got this working through various methods which "queue" up all the cell names that need to be checked into an alterable string, separated by a delimiter, and fast looping through each while checking it's values, then reacting accordingly. -- But I'd really prefer to not use this method since the queue grows exponentially and even with fast loops, becomes too slow and unreliable for my purpose when the queue string becomes too large. I've devised a few ways to make it more acceptable.. but I'd still like to avoid using a "queue" method all together.
What I'm after is a way to able to constantly test and alter values in all groups rather than having to check one at a time. Just like you are able to test alterable values in each instance of an active object. (ie. - Alt Val A("active")==1 -> Make "Active" Disappear)... only one line instantly searches all "Active", and affect's only those that meet the conditions.
So I'm looking for something like: If (INI value "itemName" in [ANY] group) == 0 -> Set (INI value "itemName" in [THAT GROUP]) to 1.
That was the other thing I got a bit confused about.. even if I could use a wildcard in the condition.. How will I identify it in the actions.. but I'm hoping the immediate IF object will be able to help make that possible.
Does anyone know a way this could be possible? I'm about to examine the possibility of utilizing the wildcard feature of string parser 2.. I'll post back if I make any progress..
Infinite thanks to anyone taking the time to offer input! All is greatly appreciated.