I wanted to be able to save and load a single list filled like this:
list_name["Oasiscircle"]="Gary"
Stuff like that, you know?
ID:155954
Jan 25 2011, 3:37 pm
|
|
I don't know, it seems simple enough but apparently directly saving and loading lists not attached to atoms doesn't work as well as I think it should.
I wanted to be able to save and load a single list filled like this: list_name["Oasiscircle"]="Gary" Stuff like that, you know? |
In response to Kaiochao
|
|
But, now how am I supposed to add things to the list?
Whenever I do something like: list_name["[var1]"]="[var2]" it gives me an error message. How am I supposed to add entries? D: |
In response to Oasiscircle
|
|
What error message are you getting?(that question's pretty cliche in these forums, by the way)
That's how I usually set associations to list indices. That's also how it's shown in the DM Reference under "list associations." One possible error you could be getting is that the list isn't actually created by the time you're trying to add to it. // All these create new empty lists. |
In response to Kaiochao
|
|
Nevermind, I solved the problem. Thanks Kaiochao! (:
|
With this, you can save individual lists to their own savefile and load them.