There is a pineapple in the room. The object’s smellDesc property is defined as…
smellDesc = 'The <<first time>>fresh <<only>>scent of pineapple <<first
time>>unexpectedly <<only>>fills the air. <.p>';
But when I sniff in the room, the <> text is never displayed. When put a breakpoint on the smellDesc, I see that the text is always processed twice before any text is output to the game window, thereby guaranteeing that the text that is finally displayed can never be the first time text.
This happens with smellDesc defined as either a single or double quoted string (the documentation says it should be double quoted).
It also happens with listenDesc.
Here’s a transcript…
…from this code…
[code]#charset “us-ascii”
#include <tads.h>
#include “advlite.h”
versionInfo: GameID
IFID = ‘445C38A3-AD1B-4729-957A-F584600DE5C1’
name = ‘test’
byline = ‘by Jerry Ford’
htmlByline = ‘by
Jerry Ford’
version = ‘1’
authorEmail = ‘Jerry Ford jerry.o.ford@gmail.com’
desc = ‘Testing sensory detection.’
htmlDesc = ‘Testing sensory detection.’
;
gameMain: GameMainDef
initialPlayerChar = me
paraBrksBtwnSubcontents = nil
;
me: Actor ‘me’ @room
“The main man.<.p>”
isHim = true
person = 2
;
room: Room ‘room’
“In the room.<.p>”
;
-
pineapple: Thing ‘pineapple;fruit’
“A pineapple. <.p>”smellDesc = ‘The <>fresh <>scent of pineapple <>unexpectedly <>fills the air. <.p>’;
;[/code]