Blockland Forums > Modification Help
How do I access the thing inside the brackets in an array?
(1/1)
adam savage:
I am trying to get the thing inside the brackets of an array like: "$Array[Stuff]"
I need to get "Stuff: NOT the value of the array.
CityRPG:
There's no way to determine which array cells have value without someone knowing which dimensions can be set.
Fluff-is-back:

--- Quote from: adam savage on February 21, 2012, 08:18:38 AM ---I am trying to get the thing inside the brackets of an array like: "$Array[Stuff]"
I need to get "Stuff: NOT the value of the array.

--- End quote ---

What for? We may be able to come up with a better way of doing it.
-Jetz-:
You could probably export $Array to a file then get a script to read through it.

I believe it's done through export("$Array*", "config/somewhere/filename", 0);
0 is a flag to overwrite the file with a new export instead of adding the export to the end.
Slicksilver:
May I ask why you need to do so? I'm sure there's another (probably better) way we can help you do this.
Navigation
Message Index

Go to full version