Adv3Lite -- Suppressing PC in a room description

Hi,

Consider the following basic code:[code]someRoom : Room ‘Some Room’
"This is some type of room; I am strapped to the stretcher. "
;

  • stretcher : Platform ‘stretcher’
    "This is a stretcher. "
    ;

++ me: Thing ‘you’
"Some guy. "
person = 1
specialDesc() {} // don’t display message on stretcher
;[/code]Which results in the following transcript when the program first starts:[code]Some Room (on the stretcher)
This is some type of room; I am strapped to the stretcher.

I am on the stretcher.

[/code]How do I suppress the I am on the stretcher. line?

I’ve narrowed it down to listContents() in lookAroundWithin() in thing.t but I’m guessing I’m going down the wrong path.

Thanks,
– Mike

The simplest way of suppressing the “I am on the stretcher” line I can see is to add the following to your code:

CustomMessages
    messages = [Msg(list immediate container,'')]
    active = me.isIn(stretcher)
;

Worked great; thanks Eric.

Now I need to do some soul searching as to why this wasn’t the least bit obvious to me when I initially tried to solve it. :slight_smile:

– Mike