I’m working through the adv3Lite Library Tutorial, and just finished the Airport chapter Aboard the Plane. I’m having some trouble with the final item, a Doer that disables shipboard directions outside of one region. Here’s the code of the doer:
[code]Doer ‘go dir’
execAction(c)
{
"Shipboard directions don’t have much meaning here. ";
abort;
}
direction = [portDir, starboardDir, foreDir, aftDir]
when = (!me.isIn(planeRegion))
;[/code]
The issue is that when I try to use shipboard directions outside of planeRegion, I get this response:
which is slightly different from the one I tried to define. Based on further experimentation, this seems to be the adv3Lite default response when the player uses shipboard directions in a room where none are defined. I’m not sure what’s up with the comma, but it’s consistent even in other sample games that have no shipboard directions.
I tried commenting out the “when =” line, so that the Doer would be effective even on the plane. The custom message is displayed in rooms with shipboard directions defined, but not in rooms where they are not defined.
So my guess is that something in adv3Lite is dealing with the shipboard directions before the Doer comes into play. What I don’t know is whether this is due to a mistake on my part, a typo, or an issue with the tutorial. It’s not a huge issue, but I would appreciate any help figuring it out.