Archived from groups: rec.games.int-fiction (
More info?)
one problem i have with these commands is that enteringRoom(traveler)
isn't triggered when i use moveIntoForTravel to transfer the player,
or moveInto for that matter - i have to use travelVia. there is
another method to make things happen on being transported to a room?
thanks.
"Eric Eve" <eric.eve@NOSPAMhmc.ox.ac.uk> wrote in message news:<cendsg$f8e$1@news.ox.ac.uk>...
> "Deb" <green4231@yahoo.se> wrote in message
> news:ce3c9b01.0408021651.77ee5824@posting.google.com...
> > thanks for your answer and thanks in general for your very good
> user
> > guides to tads 3, which are very important in helping beginners
> out
> > with this language.
>
> I'm glad you find them useful!
>
> > another thing, when i use inputKey, that always seems to be played
> > before anything else. for instance, if i do a
> >
> > if(x==3) {"blablablah"; inputKey; clearScreen;
> > gActor.moveInto(newroom);}
> >
> > the keypress is asked for even before the "blahblabhlah" message
> is
> > displayed. any way to make it ask for a keypress after the message
> but
> > before the transportation into a new room? thanks.
>
> Yes, that's how inputKey behaves. Probably the simplest way around
> it is to use the inputManager methods instead (not exactly obvious,
> I have to agree), so instead of:
>
> ans = inputKey();
>
> You'd use
>
> ans = inputManager.getKey(nil, nil);
>
> In the particular case you've got above, however, you might want to
> use a more prompt. There is a morePrompt function that provides
> that, but you'll find the same problem you did with inputKey. So
> instead of morePrompt you'd want to use:
>
> inputManager.pauseForMore(true);
>
> The more complicated alternative would be to toggle the transcript
> on and off:
>
> if(x==3)
> {
> gTranscript.deactivate();
> "blablablah";
> inputKey;
> clearScreen;
> gActor.moveIntoForTravel(newroom);
> gTranscript.activate();
> }
>
> Another point: if you want to move actors around, use
> moveIntoForTravel, not moveInto, otherwise you might run into all
> sorts of problems. See http://www.tads.org/howto/t3npcTravel.htm.
>
> -- Eric