In the game there are various computers with restricted access,
so you have to pass a login procedure by typing the proper login
number and password. The grammar for this is LOGIN <any_number>
and PASSWORD <any_word>. The verbs should call the appropiate
computer objects, although these are not mentioned in the players
input. The verbs just contain an error message (in case the
player tries to LOGIN her nose or something) and some code to
work out which computer object should do the further testing.
Now, how can I transfer the input from the verb to the chosen
object?
Second problem: I have a cupboard which is mentioned in the room
description and should print out a message only if it's actually
open and there is something inside it. If I put this in the
initial property, the library insists on printing a new_line
every time the cupboard is closed. Same thing happens if I use
the when_open property, even if I don't use when_closed at all.
(BTW, there seems to be a slightly inconsistent behaviour of the
initial property anyway, as it will not print out anything if if
defined in an object with the switchable attribut set.)
Any suggestions?