Ah, well, um…oops. False alarm.
It is now working, with the original library code.
For the record, here’s what I was trying to achieve:
Harry goes to the airport, where Mike is waiting with a ticket already bought for Harry. They meet at the ticket counter. Since Harry doesn’t have to buy a ticket, the counter is just scenery, defined as Decoration. Any attempt to do anything with it gets the notImportMsg text.
Except, if Harry tries to go to the counter, I want a specific message that says his ticket is already taken care of.
Here’s what happens in the transcript…
I tried changing the illogicalNow text in dobjFor(GoTo) in the ticket counter object and could not make it work. I set break points in verify() and in check() and in action() and nothing happened, until I made the change in thing.t. Once i changed the library code, it worked.
Now, after reading your reply, I reverted back to the original library code and…it still works.
So, false alarm, sorry about that.
Jerry
PS—also for the record, here’s the 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 <a href="mailto:jerry.o.ford@gmail.com">
Jerry Ford</a>'
version = '1'
authorEmail = 'Jerry Ford <jerry.o.ford@gmail.com>'
desc = 'Testing illogicalNow substitution'
htmlDesc = 'Testing illogicalNow substitution'
;
gameMain: GameMainDef
/* the initial player character is 'harry' */
initialPlayerChar = harry
paraBrksBtwnSubcontents = nil
;
// harry, main character
harry: Actor 'Harry;;man self;him' @terminal
""
globalParamName = 'harry'
person = 3
;
terminal: Room 'Terminal' 'terminal'
"The terminal. <.p>"
;
+ ticketCounter: Decoration 'ticket counter;ticket;airport'
"The ticket counter was a long structure with dozens of ticketing stations
where one could buy tickets. <.p>"
notImportantMsg = 'Apparently, Harry would not have to stand in line at one of the ticketing
stations. He just needed to talk to Mike. <.p>'
dobjFor(GoTo)
{
verify()
{
illogicalNow('Harry headed for the end of the line at the ticket counter. Mike,
waving a ticket in his hand, grabbed his arm and pulled him back. <.p>');
}
}
;