Login
Remember
IF Answers
Ask a Question

# What's the best way to test whether or not scoring is being used? (Inform 7)

0 votes
151 views
asked May 26 in Authoring by bg (692 points)

The way I came up with to approximate this is "if the maximum score is 0" vs. "if the maximum score is not 0." Is that the most direct way or is there a better one?

- inform7

## 1 Answer

+2 votes
answered May 26 by Joseph Geipel (207 points)
selected May 26 by bg
Best answer

The typical way to check if a use option is active, as outlined in §27.18, is:

    if the scoring option is active

And, for the reverse:

    if the scoring option is not active

## Related questions

- In Inform 7, is there a way to detect which interpreter is being used?
- With Flexible Windows by Jon Ingold, is there a way to make the text display at the top of the window, even in Gargoyle? (Inform 7)
- Is there a way to reduce the right margin for a play-in-browser website released by Inform 7?
- In Flexible Windows, is it acceptable to set, e.g., the window position at or after the start of play? (Inform 7)
- How do you test whether the player's interpreter will support windows created with Flexible Windows? (Inform 7)

...