I want to override the default story headline in an extension.
The following doesn’t work, because English Language by Graham Nelson already defines a default, and my extension can’t override that default:
The story headline is usually "Foo". [ The default story headline remains "An Interactive Fiction" ]
The following doesn’t work, because then the author can’t override it:
The story headline is "Foo". [ The story headline is now fixed ]
And finally this doesn’t work either, presumably because the section is unindexed and my extension therefore can’t see it:
Section - Unindexed Standard Rules variables (in place of "Section 7 - Unindexed Standard Rules variables - Unindexed" in Standard Rules by Graham Nelson)
The story headline is usually "Foo".
[ We also duplicate everything else in this section here of course ]
It gives this error:
Problem. In the sentence 'Section - Unindexed Standard Rules variables (in place of "Section 7 - Unindexed Standard Rules variables - Unindexed" in Standard Rules by Graham Nelson)', it looks as if you intend to replace a section of source text from the extension 'Standard Rules by Graham Nelson', but that extension does not seem to have any heading called '"Section 7 - Unindexed Standard Rules variables - Unindexed"'. (The version I loaded was 6.)
Section - Override Default Story Headline (in place of Section 7 - Unindexed Standard Rules variables - in Standard Rules by Graham Nelson)
The story title, the story author, the story headline, the story genre, and the story description are text variables.
The release number and the story creation year are number variables.
The release number is usually 1.
[ The default story headline is the only part we’re changing. ]
The story headline is usually “musi”.
Yep! The documentation says that any section whose name ends in the word “unindexed” is unindexed, so I thought that word was a literal part of the section name and that it wasn’t stripped out. I did consider it, and tried using the section name “Section 7 - Unindexed Standard Rules variables”, but I didn’t think to try “Section 7 - Unindexed Standard Rules variables - “, haha. Thanks.
Edit: @vi Is your extension on GitHub or something, by the way? Could be interesting to look at!
It is; I linked to it in my last reply. But I won’t turn down the chance to show it off again, so here’s another link: https://github.com/Roachbones/i7-tok
It was a lot of fun to make. I really like Inform 7. I wrote a little toki pona game for Spring Thing this year, which I also put on my website here: http://rose.systems/anpa_ma