[code]The hallway is a room. The hallway is dark.
Instead of looking for the second time:
say “You are running low on food, make sure you find and eat some soon.”.
The player carries a Food Recycler. The Food Recycler has a number called food-remaining. The food-remaining of the lamp is 3.
if the food-remaining of the Food Recycler is greater than 0;
decrease the food-remaining of the Food Recycler by 1;
if the food-remaining of the Food Recycler is 0;
say “The food recycler is out of stuff to make into food for you.”;
now the food-remaining of the lamp is -1.
The Wheat Bag is here. The Wheat Bag can can be full or empty. The Wheat Bag is full.
Refilling is an action applying to one thing. Understand “fill [something]” and “refill [something]” as refilling.
say “[The noun] can’t be refilled.” instead.
Instead of refilling the Food Recycler:
if the Food Recycler is enclosed by the location;
if the Food Recycler is full;
now the Food Recycler is empty;
increase the fuel-remaining of the lamp by 500;
say “You drain the Wheat Bag into the Food Recycler[run paragraph on]”;
say “, and now it starts making food for you to eat giving you the freedom of life[run paragraph on]”;
say “The Wheat Bag appears to be empty.”;
say “You have nothing to fill the Food Recycler with.”.
I am doing this for an assignment in my Computers class. I am just wondering why I keep getting the error “You wrote ‘The Wheat Bag can can be full or empty’ : but only a room, a thing or a kind can have such adjectives applied to it, so that ‘a dead end can be secret’ is fine but ‘taking can be secret’ would not be, since ‘taking’ is an action and not a room, thing or kind.” I am sure it is a simple mistake. Thanks for any help.