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

TADS3: redisplaying room description

5 views
Skip to first unread message

HappyEngineer

unread,
Aug 16, 2006, 2:49:06 AM8/16/06
to
I know that I can call roomObj.desc() if I want to just output the room
description. But, how do I execute a command so that the player sees
the full room description (title + desc + contents) just like they
would if they typed "look"?

The reason for this is that when I use setPlayer to switch the player
to another Actor, it doesn't output the room description of the room
that they're in now.

Eric Eve

unread,
Aug 16, 2006, 3:09:31 AM8/16/06
to
"HappyEngineer" <googl...@g42.org> wrote in message
news:1155710946....@m79g2000cwm.googlegroups.com...

Calling nestedAction(Look) directly after setPlayer(Whatever) should
do what you want, but I'm not 100% sure you won't see a room
description from the POV of the old player character. If
nestedAction(Look) doesn't work, try nestedActorAction(Whatever,
Look) [where Whatever is the new player character] or failing that,
call lookAround(Whatever, true) on the location of the new PC.

-- Eric


Greg Boettcher

unread,
Aug 16, 2006, 3:25:45 AM8/16/06
to

gPlayerChar.lookAround(gameMain.verboseMode.isOn);

Greg

0 new messages