Login
Remember
IF Answers
Ask a Question

# TADS3 - How to suppress output

0 votes
57 views
asked May 23 in Authoring by Paul_Erdos (39 points)

So I've migrated to TADS, and I seem to have a lot of flexibility and everything is wonderful. The trouble is, I can't seem to find the equivalent of Inform7's "Reject the player's command;" in TADS3. How can I suppress arbitrary outputs?

- programming
- tads

commented May 24 by Paul_Erdos (39 points)
So, sometimes weird things happen when you make function calls from one place to another with no printing between them. I seem to be able to suppress some things by adding an extra print between them, but this is sloppy. eg
init(){
" ";
firstCall();
" ";
second();
}
which, in my particular case, stopped TADS from printing "nothing obvious happens" between some things.

## 1 Answer

0 votes
answered May 25 by Jim Aikin
selected May 29 by Paul_Erdos
Best answer

Depends on what you're trying to do, but the exit macro (see p. 68 in "Learning TADS 3") will probably take care of it. To be more specific, the discussion of StringPreParser on p. 307 is very closely equivalent to the kind of situation in which I7 uses "reject the player's command."

## Related questions

- Can I export / translate an adventure written with I7 to TADS?
- How to set up a condition involving the presence of a character.
- How do I set up an "If" for a container to have multiple objects?
- How do I force Inform's listing to separate out identical items?
- How to make a thing that can be seen from every room?

...