Hello.
In my game, I am working with a bunch of strings that I need to retrieve in python script. However, that was much harder than I first though. First I tried with hash tables and I made it store the strings correctly. But the hash table don't seem to have a function for retrieving values in python script and after some experimentation I gave up.
I then saved the strings to an array(construct array, not python array) instead. Sadly, I encountered the same problems. Apparently, the common ArrayName[index] didn't work with constructs arrays. They too had no visible functions that could solve it, so I gave up on this too.
My third attempt was to use a python array entirely. I did it like this:
http://codepad.org/HPAf47o4
The "x"'s are just default values. To insert values in the array, I first set the global variables, then I run the script. This didn't work either. After the script was run, the array was still filled with "x"'s.
I never thought that this simple thing would be so darn complicated, lol. I am considering to write a C++-plugin that acts as a container for strings that you can actually fetch inside of python, but is this really necessary?
Any ideas? Am I missing something really obvious?