ASK HER ABOUT STUFF revisited
This bug was reported at https://intfiction.org/t/i6-ask-her-causes-programming-error/45290. After my initial confusion that the report came from using old code, I noticed/remembered that I never did satisfactorily solve #65 (closed). This problem may or may not involve that, but the symptoms are very similar.
When there is an object with
female attributes with a
life() routine that catches
Ask. Asking about the topic, for example "herbs", some totally useless parenthesized text is printed before the expected response.
Constant DEBUG; Constant Story "Ask Witch About Herbs"; Constant Headline "^An interactive bug hunt^^"; Include "parser.h"; Include "verblib.h"; [ Initialise; location = room01; "Try ASK WITCH ABOUT HERBS, then try ASK HER ABOUT HERBS."; ]; Object room01 "Witch's Hut" with description "This is the witch's hut.", has light; Object "witch" room01 with name 'witch', description "She's a withered old crone.", life [; Ask: if (second == 'herbs') "I use them to make magic potions."; ], has female animate; Include "grammar.h"; End;
Now, a transcript:
Try ASK WITCH ABOUT HERBS, then try ASK HER ABOUT HERBS. Ask Witch About Herbs An interactive bug hunt Release 1 / Serial number 200507 / Inform v6.34 Library v6.12.3pre SD Witch's Hut This is the witch's hut. You can see a witch here. >ask witch about herbs I use them to make magic potions. >ask her about herbs (the witch about that) I use them to make magic potions. >
This happens even if your first command is
ASK HER ABOUT HERBS. Now, if this character is male (or does not have the
female attribute), the spurious
(the witch about that) does not appear.