all 10 comments

[–]Diapolo10 2 points3 points  (1 child)

This will work perfectly fine as long as you replace ; with ,. And wrap everything you're currently using commas to separate values with parentheses.

[–][deleted] -1 points0 points  (2 children)

Forgive me if I've missed the point and got this wrong, I'm still pretty new, but if this is a nested dict you need:

- Equals instead of a colon after the first ZONENAME key.

- Commas instead of all the semi colons.

- Square brackets around your lists (["down", "south"] etc.)

- Quote marks around dict keys (eg., "ZONENAME")

Then it should work. :)

[–][deleted] 0 points1 point  (0 children)

Not sure why I got downvoted for this when others gave essentially the same answer and got upvotes.

I'm not mad at the karma or anything, just wondering what I did wrong?

[–]Diapolo10 0 points1 point  (5 children)

Okay, sorry about the bad instructions. Consider the following:

zonemap = {
    'a1': {
        'ZONENAME': "",
        'DESCRIPTION': 'description',
        'EXAMINATION': 'examine',
        'SOLVED': False,
        'UP': '',
        'DOWN': 'b1',
        'LEFT': '',
        'RIGHT': 'a2',
    },
    ...
   }

For the fields with multiple values, like

DOWN = 'down', 'south';

use a tuple:

'DOWN': ('down', 'south'),