I am experiencing problems dealing with something very trivial. I have a switch which the player should be able to switch, and a flashlight which the player should be able to switch and/or turn on and off. The verb section goes
Section - Switch
Understand the command "switch" as something new. Switching is an action applying to one thing. Understand "switch [something]" as switching. Understand "switch [something]" as switching.
Check switching:
say "That's not something you can switch!" instead.
Section - Switch/Turn on
Einschalten is an action applying to one thing. Understand "switch on [something]" and "switch [something] on" and "turn [something] on" and "turn on [something]" as einschalten.
Check Einschalten:
say "That's not something you can turn on!" instead.
Section - Switch/Turn off
Ausschalten is an action applying to one thing. Understand "switch off [something]" and "switch [something] off" and "turn [something] off" and "turn off [something]" as ausschalten.
Check Ausschalten:
say "That's not something you can turn off!" instead.
and the flashlight looks like this (including plenty unnecessary crap code after some attempts):
A flashlight is a switched off device. It is on the shelves. The description of the flashlight is "A MagLite. As long as your forearm and quite heavy.".
Check einschalten the flashlight:
if the flashlight is lit:
say "But it is already lit!" instead;
now the flashlight is lit;
say "You turn on the flashlight." instead.
Check ausschalten the flashlight:
if the flashlight is lit:
now the flashlight is unlit;
say "You turn off the flashlight." instead;
say "But it's not even turned on!" instead.
Check turning the flashlight:
if the flashlight is lit, say "It's already on." instead;
now the flashlight is lit;
say "You turn on the flashlight." instead.
Check switching off the flashlight:
if the flashlight is lit:
now the flashlight is unlit;
say "You turn off the flashlight." instead;
say "But it's not even turned on!" instead.
“Switch switch” works, “turn/switch on flashlight” works, and “switch off flashlight” works, but “turn off flashlight” results in “I didn’t understand that sentence.” What have I done wrong?
Thanks and kind regards,
Grues