It's Only a Nightmare!

 It's Only a Nightmare! was the thirty-second book in the Give Yourself Goosebumps gamebook series. It was preceded by The Werewolf of Twisted Tree Lodge and followed by It Came from the Internet.

The image on the cover had a bed with gargoyle-like figures on the bedposts in front of a window with lightning flashing outside. A strange blue creature with the words "Sleep Master" embroidered on its night cap was in the bed under the quilt. The creature's left hand was slightly transparent, yet was still gripping the quilt. It was released in December 1998 and was 137 pages long.

Plot
You are in a hallway being followed by something. Then you are on a roof and you fall off trying to escape! When you suddenly wake up, you soon remember that your staying in an inn with your parents. Who are in the other room asleep. They like the inn, while you admittingly find it beyond creepy... As you start to try to relax and get back to sleep you hear a sound, then turn to see an actual gargoyle in the room!

It turns out to instead have been a decoration on the headboard of your bed... You soon believe it was all of the decorations that caused you to have a nightmare and sit up, trying to think about the nightmares you have had since you came to this Inn. Many of which involve the same character called The Sleep Master. Everytime you've encountered him, he has said the same thing, "Wake up! Your whole life is a dream. What you call the dream world is reality. Wake up and live it!" Which leads you to wonder if you'll get any sleep while in this place and you decide to try to find a way to relax yourself...

A
You decide to go downstairs and spy an old bookcase in the nearby room and decide that maybe reading a book would help you sleep. While searching the bookcase you notice one of the books titled "Dr. Morphos' Sleep Remedies" and you decide to read it. You assume it is too old to be of any use but then decide to try it anyway. Soon you also notice a warning near the top of the page, but you decide to try it out despite the warning and soon you find yourself asleep...

You realize your in a dream as you fly around and soar around in the air! Things are going fine... until you eat a moth and realize you turned into a bat! You had to a cave while trying to figure out exactly why you lost control of your dream. The sleep master appears and you try to escape! Throughout this dream you alternate between various forms while trying to escape the dream master to escape to the real world.

B
You decide to stay in bed and to calm down you keep telling yourself that the gargoyles are not real. Only for one to insist it is real! At first your scared but then force yourself to speak to it anyway. They tell you that you are in a dream, which calms you down until realizing you would rather be awake instead, so that you may fall back to sleep and have a nicer dream. One of the gargoyles then stops you from trying to wake up and tells you that there is a secret to this bed that allows you to choose what you dream about, and it will come true.

It also warns you to be careful, for that very reason but you assume that this is just part of the dream. But at the same time you are highly curious. So you decide to try it out and choose what to dream about. But you must remember at all times to keep calm and make sure the dreams do not get out of control since the dream is real and they are still not completely under your control...

Side Story C
In Story A, instead of trying to escape the Sleep Master you decide to confront him and listen to what he has to say. He begins to tell you of how he began as an ordinary child from the real world until he fell asleep and became the dream master. He is unable to return to the real world because of the ruler of the Dream World: Lord Morphos. Who is not allowing him due to trapping people while they dream in order to keep them there.

The sleep master then tells you that you may be able to escape, if you can defeat Lord Morphos. Which of course, is way easier said then done considering he can manipulate the dream world whenever he pleases...

Bad Endings

 * Using a wrong method with Dr. Morphos' Sleep Remedies causes you to fall into a deep slumber for 70 years!
 * Turning your parents into robots in a dream - also turning yourself into one in the process. You are unable to change back, because robots do not dream.
 * Answering an exam question about "why did the chicken cross the road?" literally turns you into a chicken trying to cross the road. You are then hit by a truck.
 * Switching places with the gargoyles for forty years.
 * You're trapped forever in a nightmare of falling through the air without ever hitting the ground.
 * The Sleep Master tricks you into saying the wrong words, and now you can never leave the dream world.
 * You lead the Sleep Master's army against Lord Morphos's troops. But Lord Morphos makes your soldiers deaf and they can't hear your command. Your horse is also deaf and can't hear your order to stop, so it takes you forward to battle alone against 10,000 enemies.
 * You are ejected from a building through a chute that sends you plummeting 100 storeys to the ground.
 * Trying to wake your parents traps them in your dream world, and now none of you can ever escape.
 * In your dream, you fail a test and have to spend eternity in kindergarten.
 * Lord Morphos boils you in a pan of spaghetti. You don't know whether you will drown, or boil to death first.
 * You spend the rest of your life in hospital with delusions of being the principal of a school.
 * You and your parents are trapped in a black hole. Somehow your teacher is there as well, so you still have to go to school.
 * Trapped in a nightmare of being on stage, wearing only your underpants, in front of a huge audience.
 * You're "vaporized" by a laser.
 * In your dream, you're playing championship football, and accidentally score an "own goal" against your team. They violently beat you for making them lose the championship.
 * Alternatively, they win the game and you become a football star playing in the World Cup. You wake up in the real world, but it is presented as a bad ending - you remember your dream as a nightmare, because you were playing for free and didn't get any lucrative sponsorship deals.
 * You and your family end up in a theme park for little children. Your parents force you to go on all the silly rides and have your photo taken with a parody of Mickey Mouse.
 * You wake up, but your parents have been replaced by alien lookalikes.
 * You're trapped in a computer, forced to play chess against a child. The match lasts an eternity to you because time is so much faster for a computer than a human.
 * You are sucked into a sink hole and buried alive.
 * You end up in a desert and go towards what you think is a lake, but it is just a mirage, and you're burned up by the heat of the sun.
 * You ignite a match (trying to light an oil lamp with it), but your dream changes so that you're sitting on a pile of dynamite, and are blown up in an instant.
 * During a sword fight with Lord Morphos, he turns your sword into chocolate, then decapitates you.
 * You wake up in the real world but are coated in a greasy crust, since you fell into a deep fat fryer during your dream.
 * After pressing the "Rewind" button on a remote control, you're forced to re-live your entire dream backwards, and then your real life.
 * Trapped alone inside a fast-food restaurant as the place fills up with mustard, which will drown you within moments.
 * You wake up, but you're still in the Sleep Master's world. He claims that this is and has always been your reality; the life you knew before was just a dream.
 * You're turned into a plate of food and eaten.
 * You wake up to find that your parents have bought the inn and you'll all be living there from now on. You beg them to let you sleep in their room.
 * You wake up but your head is the size of a beachball.
 * You're about to be killed by a knight during a jousting match.
 * You're killed by the force of the sound coming from a giant loudspeaker.

Good Endings

 * You wake up and are told that you never have to go to school again, for being so intelligent.
 * After defeating Lord Morphos, you and the 'Sleep Master' stay in the dream world, as its new ruler.
 * You defeat Lord Morphos and go home. Suddenly, home becomes a spaceship with you and your parents as the crew. The Sleep Master is free now, but he can still change things even while awake. You decide this new reality is really cool.
 * Waking up from your dream as a salamander - it is implied that you were always one. This is presented as a good ending because you're happy to be back in your real life.
 * You wake up at the inn, but you still have a million dollars that you acquired in your dream.
 * You wake up, but choose to go back to sleep for the rest of your life because you were having a wonderful dream of being rich and famous.
 * The phone rings, and it's your dentist, who tells you that you need your tooth removed. You joyfully realize that this can't be a dream, so you must be back in the real world.

Trivia

 * Despite these books usually using gender-less pronouns as both boys and girls read them, you are referred to as "He" at least once during the book.
 * This book has the greatest number of multiple endings. Also, The "Sleep Master" looks like "AO ONI"