Hello Bobinator! Yeah, pretty much what Felix said, except he said it much more concisely.
Here, I did things a little bit differently and took them a little further.
This code should work. Essentially, there is no premade verb in the Inform library for make, because different people will want to handle that differently.
[code]A bed is a kind of supporter. A bed is enterable. A bed can be made or unmade. A bed is usually made. A bed is usually scenery.
[Note that I made the bed a supporter. Supporters are like containers except things are “on” them rather than “in” them. This is good for kitchen tables, too. Also see the “usually” statements. This is what a kind has as a default value unless told otherwise.]
Making is an action applying to one touchable thing. Understand “make [something]” as making.
Understand “straighten [bed]” as making.
[Note that, as things stand now, straighten only works as a verb if you are referring to be something which happens to be of the bed kind. That is because there is no premade straighten verb. But we are using it as a sort of alias when talking about beds.]
Carry out making:
say “That is either already made or beyond your ability.”
Instead of making the first bed:
if the first bed is unmade
begin;
now the first bed is made;
say “You put in a tremendous level of effort hoisting the covers back onto the bed, carefully smoothing them back under the pillows. Why you do this, even though you know you’ll just make a mess of them again, you aren’t entirely sure.”;
otherwise; [If the bed is made, or whatever is the opposite of the condition in the if]
say “There is no need for straightening the covers right now!”;
end if.
Instead of doing something other than examining to a bed that is not the first bed, say “I don’t think your roommate would appreciate that idea.”;
[A good way to avoid having to code making responses for every bed… if you don’t want to have to do that ]
[I also changed some articles, check it out. You don’t have to keep this, just an idea of how you can use a few pronouns to describe things. Test the changed part of the code by typing “examine bed”.]
The first bed is a bed in Dormitory. Understand “my bed” as the first bed. The first bed is unmade. The first bed is proper-named. The printed name is “your bed”. The description of the first bed is “Quite possibly one of the best friends you’ve made during your time at the school. Sure, you hate the way the covers are stitched in, leaving your feet to roast under them. Sure, you hate the way one of the springs jab into your back if you lean into it a certain way. But, when it all comes down to it, it helps you get to sleep.[If bed is made]The pea-green covers are neatly straightened out.[Otherwise] The pea green covers are dangling over the edge of the bed where you left them.[END IF]”
[Below, I took the liberty of adding a second bed for demonstration purposes.]
The second bed is a bed in Dormitory. Understand “my roommate’s bed” and “roommate’s bed” as the second bed. The second bed is proper-named. The printed name is “your roommate’s bed”. The description of the second bed is “This bed has pea green covers, like yours. However, it is in much better shape, apart from the cracked headboard.”[/code]
If you have any questions, of course, feel free to ask