Having trouble with a car that the player can enter, but can still interact with items while inside. I’ve tried Developing rules or carry outs that prevent this but inform is not accepting my wording. this is the current code:
In Parkade5 is a vehicle called Toyota Corolla. The description of Parkade5 is "[if unvisited]A car, which sits lonely by itself in the far corner of this level of the parkade, catches the flickering of the lights. [otherwise] Fluorescent lights falter ominously as they fail to illuminate the parkade." The description of Toyota Corolla is "The machine looks exactly as you would expect a 1998 Toyota Corolla to look.". Understand "car" and "Toyota" and "corolla" as Toyota Corolla. Understand "concrete" and "enclosure" and "concrete enclosure" as Parkade.
There are some keys inside the Toyota Corolla. Understand "keys" and "car keys" as some keys. The ignition is a device. The ignition is a part of Toyota Corolla.
Understand "turn [something]" and "turn [something] on" as switching on. Understand "start [something]" as switching on. Instead of going by the Toyota Corolla when the ignition is switched off:
say "The ignition is off."
Instead of switching on the Toyota Corolla, try switching on the ignition.
Instead of switching off the Toyota Corolla, try switching off the ignition.
Carry out turning ignition:
say "Try switching the ignition".
Instead of moving:
if the player is in Toyota Corolla:
say "The car has to be on for you to drive it.".
Understand the command "drive" as something new. Driving is an action applying to one visible thing. Understand "drive" as driving. Understand "drive [something]" as driving.
Carry out driving:
say "You need to start the ignition to drive.".