Page 1 of 1

DescribePlace(location) in Roodylib

Posted: Sat Jun 15, 2013 1:46 pm
by Bainespal
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.

Posted: Sat Jun 15, 2013 2:26 pm
by Roody_Yogurt
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:

Code: Select all

if not place
     place = location