I noticed that at some point, as I updated Roodylib and continued re-compiling "Tree and Star," the instances where I called DescribePlace stopped working, printing "Nothing" instead of the room description. I neglected this bug for a long time, figuring I would look into how the new routine works after I added more stuff. It turns out that it was blessedly simple to fix, though -- all I had to do was specifically add the (location) variable. So, I'm just making note that "DescribePlace" needs to be "DescribePlace(location)" now.
I think the feature of grouping objects for scene description purposes is an extremely good idea. I haven't used it yet, but I probably will.
DescribePlace(location) in Roodylib
Moderators: Ice Cream Jonsey, joltcountry
-
- Posts: 2256
- Joined: Mon Apr 29, 2002 6:23 pm
- Location: Milwaukee
DescribePlace was always meant to be called with an argument, but I think your code accidentally was always redirected to DoLookAround so it ended up working anyways.
Still, I'm not against the idea of making DescribePlace even easier, so I'll be happy to add this line to the beginning:
Still, I'm not against the idea of making DescribePlace even easier, so I'll be happy to add this line to the beginning:
Code: Select all
if not place
place = location