v4.3.stable.official [77dcf97d8]
Ok, so, the question I have is something I’m having trouble defining because I don’t know enough about it to know what I don’t know, so it’s being a real issue for me.
I’m working on a setup that uses variables for individual objects. example:
A Sides
- shiny
- transparent
- matt
- glossy
B Corners
- sharp
- dull
- rounded
- square
C color
- Red
- Blue
- Black
- Green
Then we put it all together in a variable
ABC to shorten the biz and keep the variables uniform for ease of typing.
111 for example is a shiny, sharp, red shape.
112 for a shiny sharp blue shape
113, etc.
so doing this, I have about a thousand variables.
I also want to designate where they all are LOCATED.
Building which building
Door if it is in the door
Window if it is in the window
Building 1, 2 or 3
and door 1 and window 2, so now we got
11111
for a shiny sharp blue shape within the first building, in the door.
after adding all THIS I expect to have just SO many variables to have, and then I can easily track them because I have a key/code for them all, making it simple to add/remove them as needed, but my save will include like 1000 variables that all equal 0 for the most part.
So far the closest thing to an answer I’ve found is something with a dictonary or array, buuut I want to do more than just randomly pop up the meaning of each string into the game, like most of the examples are, and they don’t really help me get to where I need it to be.
Basically, the game will create an object, and that object will become the var 11111 because it will be created in that spot, of that type, then when I take it from there and put it in another building it’ll change to 11121 or something, and then as it changes it may end up being 31121, etc.
So I need a way to generate the string that adds up to being a meaning with the key, and a way to maintain it in the game, then save it at the end, without typing out every possible combination of the string, then just having “when moving 11111 to place 11111-=1, and 11121 += 1” for every interaction.
Thanks in advance, I hope I’ve made sense of the spaghetti in my mind