Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TADS - Force display of room descriptions?

0 views
Skip to first unread message

Tim Labor

unread,
Jan 7, 2010, 5:13:35 PM1/7/10
to timl...@ucr.edu
All:

I'm using TADS - 2 and when play the game and go to a new room, the
sdesc and ldesc do *not* automatically display. I'm not sure why, but
I can't find any info on this. In any event everything else seems to
work fine. Is there any way to force the display of room information?
when one moves or teleports to a new room?

Thanks! Tim

Nikos Chantziaras

unread,
Jan 7, 2010, 8:34:57 PM1/7/10
to

You can override room.lookAround(verbosity) to change that. For example:

modify room
lookAround(verbosity) =
{
self.dispBeginSdesc;
self.statusRoot;
self.dispEndSdesc;
self.nrmLkAround(true); // Always show the room's full description.
}
;

The only line that differs from the default implementation is the call
to self.nrmLkAround(). Instead of passing the "verbosity" variable on
to nrmLkAround(), simply pass true.

This is documented in adv.t, line 2912:

The lookAround(verbosity) method displays the room's description
for a given verbosity level; true means a full description, nil
means only the short description (just the room name plus a list
of the objects present).

Normally, the "verbosity" parameter is true only for rooms not visited
yet. With the above override, that mechanism is ignored and the room
description will be shown always; the code of that mechanism will still
pass nil to room.lookAround() for locations already visited, but it
doesn't matter anymore since we override that method to always call
self.nrmLkAround(true).

Hope this helps.

Tim Labor

unread,
Jan 8, 2010, 9:32:15 AM1/8/10
to
This problem is now *mostly* solved (thanks!)

I have more information here. The only time I now experience this
problem is when I teleport to a new location with " actor.moveInto()"
When I move normally (with say "north") everything now works fine.

So I guess I just need to force a look on a case by case basis under
those special circumstances. Any ideas?

Nikos Chantziaras

unread,
Jan 8, 2010, 10:55:32 AM1/8/10
to

Not 100% sure about this, but try actor.travelTo(room) instead of
actor.moveInto(room).

Tim Labor

unread,
Jan 8, 2010, 4:42:15 PM1/8/10
to
That's done it! Thanks so much. Let's close this thread!

Tim

0 new messages