Ok, the next part of the exercise is to figure out how “edit” a method. The below does not work.
modify Floor
basicExamine() { "You bend over to see the floor."; inherited(); }
;
A quick look through Learning T3 did not cover how to do this; or did I miss it? Page reference welcome.
1 Like
When I step through
modify Floor
basicExamine() {
"You bend over to see the floor.";
inherited();
}
;
in a debugger, I obviously execute
"You bend over to see the floor.";
and then eventually
modify RoomPart
desc() { defaultReport(¬hingUnusualAboutMsg, self); }
;
through the second line. So how come it only shows
>x floor
You bend over to see the floor.
when I play the game? Is this a bug? Why doesn’t defaultReport()
print anything?
How would I verify this is a bug in TADS 3? I have version 3.1.3, build Win121. Do other versions or editions behave differently?
RealNC
3
Default reports are fallbacks. They only get printed if nothing else was. See:
https://www.tads.org/howto/t3res.htm#action
Thank you. I’ll have to go back to the drawing board then, for what I really have in mind. I’ll try to share an example when successful.