// --------------------------------------------------------------------------- // Here is the code // If you're curious about something send me an email // markcmarino at gmail // --------------------------------------------------------------------------- Array.prototype.shuffle = function() { var s = []; while (this.length) s.push(this.splice(Math.random() * this.length, 1)[0]); while (s.length) this.push(s.pop()); return this; } /* tracking with the first story as well */ var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-38641917-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); /* A unique id for your game. This is never displayed. I use a UUID, * but you can use anything that is guaranteed unique (a URL you own, * or a variation on your email address, for example). */ undum.game.id = "markmarinocomstorybook3"; /* A string indicating what version of the game this is. Versions are * used to control saved-games. If you change the content of a game, * the saved games are unlikely to work. Changing this version number * prevents Undum from trying to load the saved-game and crashing. */ undum.game.version = "1.8"; /* The situations that the game can be in. Each has a unique ID. */ undum.game.situations = {}; undum.game.situations['start'] = new undum.SimpleSituation( "", { enter: function(character, system, from) { $("#content").empty(); system.write("
And then [hack, hack] Oh, excuse me [hack, hack, cough, retch, hack, retch].
"); var hacktext=["Surely, to be a lady in waiting was a far greater trial than to be a noble night. Yay, verily, the good Sir Edward did vanquish the Nottingham Knight with a single blow of his two-handed blade.
\But it was Maid Lady Margaret who had to sit, in the solemn stillness of the tower, weaving rose petals into grocery bags, while she awaited the tardy titan.
\ ", "Janey was not one to notice noises when she slept. No, with her mouth, wide like a cave, and drool spilling from her lips into a puddle, like a small lake, beside her matted hair, Janey was dead to the world. So it was a surprise that she heard the knock at all.
\ ", "2 cups of parsley, chopped fine\
3 cups of raisins, swirled\
4 tablespoons of tamale juice\
Take the parsley and shake it. Really shake it. Shake some sense into it. Then when it's not looking, toss a handful of raisins at it and duck under the counter where it can't see you.
", "Calvin was out of both size-eight shoes and ideas, and he had been since 1984. It was 1996. Out of ideas, that is. The size eights had only recently sold out.
\At last he cried, 'I've got it!' and rising suddenly, he knocked over a stack of shoe boxes. 'What if we tell a story just of beginnings?'
\The woman to whom he was apparently speaking gave him a slight smile before asking politely, 'Do you have this in a seven and a half?'
", "Jenna was fast. But she was also hungry. And ANGRY.
\She was hangry.
\And when she was like that, you did not want to get in her way.
\They had created the Hangry Games to see who could get the crabbiest when deprived of food, especially cereal. And Jenna was ready to rage. She loved cereal! So her little sister did not know what she was walking into when she entered the kitchen and said, 'I think we're out of milk.'
", "Could it be? Could Jake really be the son of a Greek God? Molarus, God of Dentistry?
\'Doc says we're going to have to pull this one,' said the dental hygienist through her mask.
\Jake's head was spinning. 'But, but, this must mean I'm also a god,' said Jake to himself.
\'Oh, wow,' she replied unimpressed. 'Then, why didn't you floss more?'
\'Cuz,' said Jake opening a mouth full of flashes and sparks, 'Lightning Teeth!'
\ ", "'It's worse than we thought,' said Mother holding up the letter from the doctor.
\'Don't tell me,' said Father. 'She'll never become a computer programmer?
\'Worse,' whispered Mother.
\'What could be worse?'
\'It says our daughter has become...,' Mother could barely choke back the tears, 'BOY CRAZY!'
", "'I love you, too,' said Ted, 'But you know I'm a vampire.'
\'I know!' Della spat back, bursting into tears.
\'And I would do anything for you.' If only he could make her believe him.
\'But, then, why? Why?' she said, turning to face him, bravely.
\'Why what?' he asked, moving closer, his pale skin almost glowing.
\'Why won't you ever take me to the beach?' she replied.
" ]; var choose=system.rnd.randomInt(0,8); system.write(""+hacktext[choose]+"
[Cough, cough.]
Sorry. Pageball.
\That's been happening a bit more frequently these days. Not sure why. But here I'll just try a lozenge or something. There.
\Okay, now where would you like to go next?
\ "); //system.writeSound(character, 'switchhack'); }, actions: { 'switchpageball': function(character, system, action) { system.write("Oh, Pageballs are like the fur balls your kitty cat hacks up -- only these appear to be pages from other books that seem to have gotten mixed up in my binding.
"); system.animateQuality( 'page', character.qualities.page + 5 ); system.write("I shall always reward your curiosity.
"); } } } ); undum.game.situations['switchstart'] = new undum.SimpleSituation( "", { enter: function(character, system, from) { character.sandbox.name=system.getName(); system.write("Wonderful. Welcome back, " + character.sandbox.name + " (if that is, in fact, your name.
\Now don't forget to hunt for the poem hidden in the pages. That'll give you a Poetry Power-Up! But wait -- are you up to speed? Have we met yet? Do you know who I am? Do you know what you're reading?
\ "); } } ); undum.game.situations['switchsplain'] = new undum.SimpleSituation( "Ah, well, welcome. I am the Book of the Lost, a living book and holder of the tales of Mrs. Wobbles and the Tangerine House. If you've not yet read them, I highly recommend them.
\Mrs. Wobbles is the kindly foster mom who runs and owns the Tangerine House. She may or may not be a witch, but you can decide that for yourself. What would you like to read first? I should warn you that clicking on the previous stories will take you out of this episode. You can, of course, always come back.
\ ", { actions: { 'switchfoster' : function(character, system, action){ system.write("Foster care homes are places that care for children whose mothers or fathers can't raise them for one reason or another. Children may be adopted from foster care or might grow up to adults in it. You might even know some foster children. If not, you should. They are wonderful!
"); } } } ); undum.game.situations['switchstarta'] = new undum.SimpleSituation( "All right. Yes. Right. I thought you looked familiar. Let's get on with this, shall we?
" ); undum.game.situations['switchstart1'] = new undum.SimpleSituation( "The first thing Derik saw when he opened his eyes in his bedroom on the first floor of the Tangerine House was the big basketball on his L.A. Lakers pillowcase, but since he had to use the bathroom something fierce, checking in with his crew on the posters that hung all over his walls -- Tony Hawk, Shaun White and the rest of the sports gods -- would just have to wait.
\Sometimes a guy's gotta go, you know?
\So before his eyes were even all the way open, he was heading down the hall on the way to the bathroom.
" ); undum.game.situations['switchintro'] = new undum.SimpleSituation( "Now just because this story is about to go into the bathroom, doesn't mean it will be going down the toilet, so behave yourself and listen.
" ); undum.game.situations['switchintro1'] = new undum.SimpleSituation( "Eyes still half-closed, the next thing he knew he was standing over the potty letting loose.
\Whizz.
\No, that wasn't the sound, was it?
\Trickle, splash.
\Hmm. Something was wrong. Something was warm.
" ); undum.game.situations['switchintro2'] = new undum.SimpleSituation( "It was then, with the wash of warm pee down his legs, that he realized something was not going according to plan. For it appeared that at some point in the middle of the night, unexpectedly and unbelievably, his body had transformed from a boy's into a girl's.
\'Uh, oh,' he said, thinking it a dream.
" ); undum.game.situations['switchintro3'] = new undum.SimpleSituation( "Strangely, the thought that pressed most upon him was, 'I'm going to have to buy new underwear.' But that uncomfortable feeling of wet socks was soon overtaken by the electric shock that he was not in fact dreaming.
\'Yoopers!'
\As he looked down, he saw the puddle at his feet and, well, on his clothes and all. Yes, undeniably a girl.
" ); undum.game.situations['switchintro4'] = new undum.SimpleSituation( "Now, let me just stop us right here, in the bathroom, as Derik stood there in shock, and say that this story will not go into detail about what it might mean for a boy to become a girl. There'll be no descriptions of body parts or unmentionables or anything like that. That's why they call them unmentionables. If you have specific questions, ask your parents.
" ); undum.game.situations['switchintro5'] = new undum.SimpleSituation( "To be honest, he didn't feel any different, physically, but his emotions were spinning like a kaleidoscope. Sure, he had thought about what it might be like to be a girl before. What boy hadn't? Though he had no sisters, he had friends who were girls, and they were perfectly normal, as girls go. But they clearly were different, and that was as it should be.
" ); undum.game.situations['switchintro6'] = new undum.SimpleSituation( "Oh, and there was that one time he had to wear a princess dress in a performance of the Princess and the Pea at school because the lead girl had come down with the flu, upchucking all over the royal blue sheets and bedspread, which still smelled pretty rank even when Derik performed the part. But that was only a joke. Make believe. No, this was strange. His head was swimming.
" ); undum.game.situations['switchintro7'] = new undum.SimpleSituation( "As he wiped up the mess (gross because his pee still smelled like pee, not roses as he had always suspected girl pee to smell) and washed his hands, he began trying to figure out what it would mean if this were not a dream. Of course, he tried the usual: pinching himself, slapping his own cheeks, shaking his head, but he did not wake up. Not even when he stepped on his own toes. Ouch!
\And then it hit him!
" ); undum.game.situations['switchintro8'] = new undum.SimpleSituation( "How did he get to the bathroom?
\Yoopers!
\Peeking out, back at his room, he could see through the still-open door of the bedroom, the metal arm of his wheelchair, right where he had parked it last night beside his bed. And what's more, he was standing! On his own legs! No braces, no nothing! Though his legs looked somehow -- well, girly -- they were healthy, working, girly legs!
\Ka-klomp.
\A sound from one of the bedrooms brought him out of his stupor, and he quickly shut the bathroom door. Soon, a few hurried steps down the hallway followed by some knocking, which he let go for a few sets. Then a voice:
\ " ); undum.game.situations['switchintro9'] = new undum.SimpleSituation( "His heart was doing jumping jacks. Woh, maybe he could do jumping jacks! Maybe that would switch him back. Don't laugh. What would you do?
\'Hurry up, please, I really need to go,' came the voice, accompanied by some gotta-go tap dancing. Then, 'Hey, are you doing jumping jacks in there?'
\And he was. Derik, or Darlene, or whatever his girl name would be, was doing jumping jacks.
\'Come on! I gotta go. Now! Please!'
\What should Derik say?
\ " ); undum.game.situations['switchanswer1'] = new undum.SimpleSituation( "He had to say something. 'Okay, I'll be right out. Sorry. Just give me a minute.' His voice was not his own raspy voice but a high, tinkly one. Strange. Then, after a minute and some further knocking, he added, 'This is -- um -- taking longer than I thought. Sorry. Do you think you could use one of the upstairs bathrooms?'
\'Okay, no problem,' the voice replied, followed by feet quickly padding up the stairs.
", { enter: function(character, system, from) { if (character.qualities.gender<5){ system.setQuality("gender", character.qualities.gender + 1); } system.write("That response was a good cover. Not so pushy.
"); } } ); undum.game.situations['switchanswer2'] = new undum.SimpleSituation( "'Ooooh. I've got some major diarrhea,' Derik said, making squishy fart noises with his mouth and slashing some water from the sink in the toilet for sound effects.
\'Groooooosssss. I'll just go use the one upstairs,' said the voice, followed by quick footsteps down the hallway and then up the stairs. \
", { enter: function(character, system, from) { if (character.qualities.gender>-6){ system.setQuality("gender", character.qualities.gender + -1); } system.write("Well, that was a very unladylike thing to say!"); } } ); undum.game.situations['switchanswer3'] = new undum.SimpleSituation( "
What would a girl know about? That's it! Decorating, thought Derik, and said, 'Have you ever taken a good look at Mrs. Wobbles' bathroom fixtures?'
\'What are you even talking about?' said the frustrated voice. 'Mrs. Wobbles has excellent taste in fixtures, and I'm going to pee my pants, thank you very not.' And then that was that. The girl pounded up the stairs to the other bathroom in time, hopefully.
", { enter: function(character, system, from) { if (character.qualities.gender<4){ system.setQuality("gender", character.qualities.gender + 2); } system.write("That sounded like something a precocious girl would say. And by precocious I mean trying to act older than she is.
"); } } ); undum.game.situations['switchbathroom'] = new undum.SimpleSituation( "Oh, that reminds me -- You've no doubt noticed a new category on the Character chart. For this story, I'll be rating your decisions on this scale to see if you're behaving more toward the rough side, like Huck Finn, or toward the refined and delicate side, like Sleeping Beauty.
\(Yes, this arbitrary scale is made up of characters from books. What else would you expect from me?)
\Each decision will move you a step one way or another on the scale, so the overall impression builds over time.
Ah, arbitrary means that there's no real reason for the way things are. As with any scale we use to judge other people, I just made it up.
Yes, it's always smart to examine the meaning of words.
"); } } } ); undum.game.situations['switchbathroom1'] = new undum.SimpleSituation( "Breathing a bit easier, Derik stepped slowly over to the mirror and took a look at his face.
\This was even weirder. In the mirror, his face looked the same as it always did. But out of the corners of his eyes he could see that where he was standing -- what you and I might call reality -- things were different.
\For one, around the edges of his eyes, he could see curling, longer eyelashes.
" ); undum.game.situations['switchbathroom1a'] = new undum.SimpleSituation( "Second, he couldn't see the tip of his nose anymore. The girl one must be shorter. But the biggest difference -- and this he could even pull away from his head to see -- was longer hair, almost reaching his shoulders.
\Did girls' hair grow overnight like that? How did they ever keep it cut?
\These were his thoughts, not mine. Boys and girls come up with some pretty strange theories about one another.
" ); /* Rather than seeing his own face with lipstick or long eyelashes, as he imagined he might, he found himself staring at a completely different girl's face, not un-pretty, with long brown hair, rather than his usual bowl cut.
\With his new longer, thinner girl fingers, he made a quick round of all his features, little nose, big blue eyes, fuller lips, and then began making faces at himself to be sure it was in fact him and not some sort of window into another room or trick mirror.
\*/ undum.game.situations['switchbathroom2'] = new undum.SimpleSituation( "Thoroughly convinced this was his body, having pinched and poked just about every inch, he turned to listen at the door again. Just the sighing of the old house with the wind outside. Convinced that no one was there, he quietly cracked the door open and surveyed the hall. A book-sized patch of light was coming in through the shade of the hallway window.
\Yoopers, morning! Fortunately, the other children had not yet begun to stir. The choices were clear:
\ " ); // Don't forget to add some sense of him being able to walk to the end of this /* undum.game.situations['switchwaitbath'] = new undum.SimpleSituation( "Derik was frozen. What if someone saw him -- or really her -- as he -- or really she ran down the hallway? It wasn't worth the risk. So she just stood there in fright.
\Of course, eventually she got a little bored. She tried making faces with her new face. But it wasn't very interesting since she couldn't really see her new face. She saw Derik in the mirror and only caught slight differences out of the corner of her eyes. However, upon opening a drawer, she came a cross a truly bizarre item.
", { enter: function(character, system, from) { system.setQuality("gender", character.qualities.gender +1); system.write("That sounds like girlish behavior because the boy in Derik would've wanted to run!
"); } } ); */ undum.game.situations['switchwaitbath'] = new undum.SimpleSituation( "She decided to stay in the bathroom. Hiding. Well, she did not want to think that she was hiding, so she began to explore to the bathroom. Nothing wrong with exploring. Look at Nancy Drew. Or Dora. They were girls and they explored. She began by opening the drawers of the vanity.
\In the top drawer, she found: 1 brush, 1 comb, and 1 giant plastic clip, almost half the size of his girlish hand. The clip resembled one of those little ones he had seen in girls' hair, but this was GIANT. It was more like a brown plastic claw or like two bony hands praying. What could he do with this device?
\ " ); undum.game.situations['switchshirtclip'] = new undum.SimpleSituation( "Well, if he was going to be a girl, might as well try his hand at girls' fashion. He noticed that by placing the clip at different points on his pajama shirt, he could give it different shapes. Wide at the belly. Narrow at the waste. Hour glassy. But then suddenly he stopped. What if this was strange? He'd be known as shirt-clip girl or clippy or weird clippy girl? Man, it was hard to be a girl!
", { enter: function(character, system, from) { if (character.qualities.gender>-6){ system.setQuality("gender", character.qualities.gender -1); } system.write("Hmm, strange clips, fashion, how are you supposed to know these things anyway?
"); } } ); undum.game.situations['switchponytailhold'] = new undum.SimpleSituation( "After several unsuccessful attempts at wrangling his hair back, he finally made a respectable pony tail and closed the jaws of the clip around the part closest to his head. Bingo! Maybe she had a knack for this sort of thing.
", { enter: function(character, system, from) { if (character.qualities.gender<4){ system.setQuality("gender", character.qualities.gender +1); } system.write("Ah, you seem to know your way around a hair clip!
"); } } ); undum.game.situations['switchpuppetshow'] = new undum.SimpleSituation( "Hmm, that was not a very fashionable choice.
\'Hello, I'm Mr. Piranha,' he said in the voice of the puppet clip. 'I like to bite little girls' fingers. Woh? What's this?' Then he made the clip sniff around his other hand.
\'Smells like boogers. Have you been picking someone's nose?'
\His other hand nodded.
\And then he caught sight of himself in the mirror and thought, 'Hmm, great. Now I'm not only a girl. I'm a strange girl.' And he sighed.
", { enter: function(character, system, from) { if (character.qualities.gender>-5){ system.setQuality("gender", character.qualities.gender -2); } } } ); //Then she tried painting her nails with some polish she found hidden in a drawer. Actually, there were two bottles, one was a bright cherry red and the other a clear bottle. Why would anyone use invisible polish? wondered Derik. And there was a mysterious stick? Thin and plastic with a sharp-ish edge. What did this have to do with anything?\Derik decided these must all go together. Which should he/she try?
/* */ undum.game.situations['switchstickpick'] = new undum.SimpleSituation( "From the moment Derik inserted the stick, he knew it was a bad idea. It was just too sharp an implement. And you know what happens when you shove sharp things up your nose. They pierce your brain and your head deflates. Please do not try this.
\Fortunately, Derik had not picked or blown his nose for several weeks. To describe the thick, gooey boulders that protected Derik's brain would just be too gross for my delicate sensibilities, so I shall skip over it. Suffice it to say, Derik's life was saved by a nose full of boogers.
" ); undum.game.situations['switchstickshove'] = new undum.SimpleSituation( "Something about the stick seemed familiar to Derik. She vaguely remembered having seen one of his caretakers use it to shove down the thin skin at the base of his nail. You probably already know that it's called your cuticle, and indeed this was a good way to keep healthy nails before painting them.
" ); undum.game.situations['switchstickpaint'] = new undum.SimpleSituation( "Perhaps this is how pirates paint their nails. (But I certainly hope not.) By the time he was done, he looked like a girl who had put her nails in a blender. Oh, no, that's too gross. Let's just say his nails were a complete mess, not to mention that he had gotten nail polish all over the counter. When Mrs. Wobbles saw this he would not have to worry about being a girl anymore. He would be turned into a mosquito.
" ); undum.game.situations['switchjaredmonth'] = new undum.SimpleSituation( "Fortunately, today was the day of Jared's monthly shower.
\Jared was a resident of the Tangerine House who, to put it mildly, did not like showers. He preferred to let his stink stack up around him like a protective bubble. Getting Jared into the shower took a little work. Nagila, the giant and otherwise gentle house social worker, and several of the older boys would grab Jared by the arms and drag him in, soaking the entire bathroom in the process. That was usually attended by quite a crowd. As expected the commotion was more than enough to get Derik out of the bathroom unseen, though not before he exchanged a curious look with a desperate and smelly Jared.
" ); // think about the above link or to choosing clothes? undum.game.situations['switchrundown'] = new undum.SimpleSituation( "
Without wasting a second, he made a mad dash into his room, slamming the door behind him, and collapsed into the wheelchair.
\Wow, running! When was the last time he had done that? Never at his grandmother's house, where he had lived before coming to Mrs. Wobbles'. Could he remember ever running?
", { enter: function(character, system, from) { system.setQuality("gender", character.qualities.gender -1); } } ); undum.game.situations['switchregainbreath'] = new undum.SimpleSituation( "It was only once he had regained his breath that he began to fully consider the implications of his new situation. A girl. Being a girl. This was so weird. And although he had once watched a TV show about a boy who could become a girl and then change back again, he was fairly certain that this was unusual, if not impossible, without some sort of major surgery. But how? What could possibly have happened?
" ); undum.game.situations['switchmindfilled'] = new undum.SimpleSituation( "His mind filled with strange scenes:
\
Trying to get dressed as a girl in the boys' locker room.
\
Trying to get dressed as a girl in the girls' locker room.
\
Trying to buy clothes in the girls' department.
\
Trying to put on makeup or earrings. Would he have to wear them or could he basically be a tomboy and pretty much be his old self?
And then, he looked around his room for the first time. Yes, the Lakers sheets were still the same, but everything else had changed. Where once towered the icons of sports in heroic and seemingly impossible poses of leaps, jumps, and spins, were poems, yes, poems and ponies and unicorns and -- ugh, boy bands! And worst of all, his sky blue walls were, yes, bright popped-bubble bubble gum pink.
", { actions:{ 'ryka' : function(character, system, action){ system.setCharacterText( // "Hello?
" "'When other people say believe'
by Ryka Aoki
Excellent find!
When other people say believe,
\
they think of wishes on a star,
\
of mermaids or of unicorns.
\
But what of being who you are?
So silly, isn't it, to think
\
that magic happens far away--
\
when all the magic that one needs
\
is just to hear somebody say,
'When I believe, I believe in you
\
and not what others say is true.
\
The girl you are, the girl you'll be
\
shall always be a friend to me.'
Poetry Power-up:
\Look for these hidden in the story to gain special powers to use \ when facing challenges.
"); system.setQuality("poetry", character.qualities.poetry+7); } } } ); undum.game.situations['switchgumppink'] = new undum.SimpleSituation( "" ); // This is the branch that comes from Waiting in the Bathroom undum.game.situations['switchregainbreath2'] = new undum.SimpleSituation( "It was only once he had regained his breath that he began to fully consider the implications of his situation. A girl. Being a girl. This was so weird. And although he had once watched a TV show about a boy who could become a girl and then change back again, he was fairly certain that this was unusual -- if not impossible -- without some sort of major surgery. But how? What could possibly have happened?
" ); undum.game.situations['switchmindfilled2'] = new undum.SimpleSituation( "His mind filled with strange scenes:
\
Trying to get dressed as a girl in the boys' locker room.
\
Trying to get dressed as a girl in the girls' locker room.
\
Trying to buy clothes in the girls' department.
\
Trying to put on makeup or earrings. Would he have to wear them or could he basically be a tomboy and pretty much be his old self?
And then, he looked around his room for the first time. Yes, the Lakers sheets were still the same, but everything else had changed. Where once towered the icons of sports in heroic and seemingly impossible poses of leaps, jumps, and spins, were poems, yes, poems and ponies and unicorns and -- ugh, boy bands! And worst of all, his sky blue walls were, yes, bright popped-bubble bubble gum pink.
", { actions:{ 'ryka' : function(character, system, action){ system.setCharacterText( // "Hello?
" "'When other people say believe'
by Ryka Aoki
Great find!
When other people say believe,
\
they think of wishes on a star,
\
of mermaids or of unicorns.
\
But what of being who you are?
So silly, isn't it, to think
\
that magic happens far away--
\
when all the magic that one needs
\
is just to hear somebody say,
'When I believe, I believe in you
\
and not what others say is true.
\
The girl you are, the girl you'll be
\
shall always be a friend to me.'
Poetry Power-up:
\Look for these hidden in the story to gain special powers to use \ when facing challenges.
"); system.setQuality("poetry", character.qualities.poetry+7); } } } ); undum.game.situations['switchgumppink2'] = new undum.SimpleSituation( "" ); undum.game.situations['switchclothespick'] = new undum.SimpleSituation( "Well, he couldn't stand there in those girly pajamas all day. Standing? Was he really standing on his own? Without anyone to stand at his side looking irritated or sighing in his ear. What a feeling!
\That feeling made the next shock much less shocking. His closet was filled with bright, glittery, frilly girl clothes in array of the legendary girl colors from bright pink to violet to teal and aquamarine. Dayglow. Neon. Ugh.
" ); // add polka dots undum.game.situations['switchclothespick2'] = new undum.SimpleSituation( "So what to wear?
", { enter: function(character, system, from) { var pants = new Array (); var tops = new Array (); var shoes = new Array (); var hair = new Array (); // switch to cropped pants? pants = ["pink capris", "black jeggings", "ripped jeans" ]; mypants = pants; tops = ["bright pink tee", "shimmery purple shirt", "grey t-shirt" ]; // change color on the bow clip -- make it a sparkle clip? hair = ["pig tails", "sparkly bow clip", "uncombed hair"]; // switch to canvas sneakers? shoes = ["pink tennis shoes", "purple flats", "canvas hightops"]; var numboys = new Array(); var numpants = new Array (); var numtops = new Array (); var numshoes = new Array (); var numhair = new Array (); numboys = [0, 1, 2]; numboys2 = [0, 1, 2]; numboys3 = [0, 1, 2]; numboys4 = [0, 1, 2]; numpants = numboys.shuffle(); numtops = numboys2.shuffle(); numshoes = numboys3.shuffle(); numhair = numboys4.shuffle(); var choicepants=pants[0]; var choicetops = tops[1]; var choicehair= hair[2]; var choiceshoes = shoes[0]; clothespick = function(choicenumber) { var y=numpants[choicenumber]; //eval("var thischoice = 'choice'+kind"); choicepants= pants[y]; var j = pants.indexOf(choicepants); $("#choicepants").html("" + choicepants + "
"); return; } // Make Clothespick accept 2 arguments, number and item // so clothespick(value,'tops') // clothespick = function (choicenumber, kind) // then eval adds tops to everything topspick = function(choicenumbertops) { var y=numtops[choicenumbertops]; choicetops= tops[y]; var t = tops.indexOf(choicetops); $("#choicetops").html("" + choicetops + "
"); return; } shoespick = function(choicenumbershoes) { var z=numshoes[choicenumbershoes]; choiceshoes= shoes[z]; var k = shoes.indexOf(choiceshoes); $("#choiceshoes").html("" + choiceshoes + "
"); return; } hairpick = function(choicenumberhair) { var y=numhair[choicenumberhair]; choicehair= hair[y]; var t = hair.indexOf(choicehair); $("#choicehair").html("" + choicehair + "
"); return; } setoutfit = function() { character.sandbox.pickoutfit=true; $('#pants0, #pants1, #pants2').attr("disabled", true); $('#tops0, #tops1, #tops2').attr("disabled", true); $('#hair0, #hair1, #hair2').attr("disabled", true); $('#shoes0, #shoes1, #shoes2').attr("disabled", true); $('#selectoutfit').attr("disabled", true); var pantsfinal = pants.indexOf(choicepants); var topsfinal = tops.indexOf(choicetops); var hairfinal = hair.indexOf(choicehair); var shoesfinal = shoes.indexOf(choiceshoes); //var matchingtest = (pantsfinal+topsfinal+hairfinal+shoesfinal) % 4; var variation = Math.abs((pantsfinal * 4) - (pantsfinal+topsfinal+hairfinal+shoesfinal)); character.sandbox.outfitmismatch = variation; //store this number: Not getting the most accurate results here, tho -- getting too thrown by one item //Try adding up all the clothing items from the pants choice, subtract the sum of the real choices, take absolute of that. if (variation==0) { system.write("Looking in the mirror, Derik saw his old self wearing girl clothes, but at least the outfit matched!
"); character.sandbox.outfitmatch=true; character.sandbox.outfit = pantsfinal; switch (character.sandbox.outfit) { case 0: system.write("But, it was time to go downstairs as...
"); break; case 1: system.write("But, it was time to go downstairs as...
"); break; case 2: system.write("But, it was time to go downstairs as...
"); break; default: system.write("But, it was time to go downstairs as...
"); break; } } else { // Save a number representing how mismatched the outfit is. perhaps the distance from 4 times the pants number system.write("Looking in the mirror, Derik saw his old self wearing girl clothes, and the mismatched outfit didn't help.
"); system.write("But, it was time to go downstairs as...
"); } // Will need to refresh the screen after this game return; } system.write("Derik needed to choose an outfit. Here's what was in her closet. Press the buttons of the outfit you want her to wear, and when you're done, press CHOOSE OUTFIT.
" + choicepants + " | |||
" + choicetops + " | |||
" + choicehair + " | |||
" + choiceshoes + " |
...a mismatched mess. Now who's to say what matches and what doesn't? Well, me I guess.
", { enter: function(character, system, from) { character.sandbox.outfit = 3; if (character.qualities.gender>-6){ system.setQuality("gender", character.qualities.gender -1); } } } ); // Earring backs: // Fuze Beads // Erasers // Put the fuze beads on the earrings? undum.game.situations['switchnightstandearrings'] = new undum.SimpleSituation( "And then, he noticed that on his nightstand, where his retainer once sat, were these little earrings, some tiny rubber things, and some pencils. He picked them up and began to examine them: the earrings were butterflies, the pencils were pencils, and the rubber things, well, looked like tiny little Fuse Beads or rubber pasta, tiny little tubes. Why were the tiny rubber pieces here? What did they have to do with earrings? Or were they a new fashion accessory?" ); undum.game.situations['switchearchoice'] = new undum.SimpleSituation( "
The tiny holes in his earlobes told him his ears were in fact pierced. But when he placed the little earrings in his ears, they felt like they would fall out with the slightest head movement. What could he do?
\ " ); undum.game.situations['switchfuseears'] = new undum.SimpleSituation( "Derik lifted the Fuse Beads and tried cramming one in each ear hole. Something didn't look quite right. Then he tried shoving in the earrings, but they couldn't fit with the Fuse Beads in. Oh, my. Being a girl was going to be harder than he thought.
", { enter: function(character, system, from) { if (character.qualities.gender>-6){ system.setQuality("gender", character.qualities.gender -1); } } } ); undum.game.situations['switchearringsfirst'] = new undum.SimpleSituation( "Somehow, she knew just how to put in the earrings and that the little rubber pieces were the slide-on backs to keep the earrings from sliding out. At least she knew that much about how to dress.
", { enter: function(character, system, from) { if (character.qualities.gender<5){ system.setQuality("gender", character.qualities.gender +1); } } } ); undum.game.situations['switchfusefuse'] = new undum.SimpleSituation( "Training his eyes on the Fuse Beads, he concentrated with all his might and -- nothing! He squeezed them together trying to use his super strength and -- nope. It was really too bad changing into a girl hadn't changed his hands into irons because then he could make cool designs with the Fuse Beads. Plus, he could've made grilled cheese sandwiches with his hands. But how could he pick his nose? Oh, no, we're off topic.
", { enter: function(character, system, from) { if (character.qualities.gender>-6){ system.setQuality("gender", character.qualities.gender -1); } } } ); undum.game.situations['switchfusepencils'] = new undum.SimpleSituation( "This is some super-secret girl knowledge here! In a pinch, or so I'm told, since I don't have ears, you can always break off a piece of an eraser and use it as an earring back. It's easiest with stud earrings. Call it a jewelry hack!
", { enter: function(character, system, from) { if (character.qualities.gender<5){ system.setQuality("gender", character.qualities.gender +1); } } } ); undum.game.situations['switchbreakfastcall'] = new undum.SimpleSituation( "Just then, Derik heard the conch shell: Mrs. Wobbles was calling them all to breakfast. His heart stopped. What next?
\ " ); //switchclothespick undum.game.situations['switchbreakfaststay'] = new undum.SimpleSituation( "Derik stayed in the room for the rest of his days. Each day, he watched in the mirror as his body changed from a girl's to a woman's and then an old woman's. Well, this was fun, he said, as he collapsed into his bed as an old woman and turned on another episode of 'Golden Girls' or 'Matlock.' Well that's the way life goes. (Ask your grandparents about these shows and why they drink so much prune juice.)
" ); undum.game.situations['switchbreakfaststay2'] = new undum.SimpleSituation( "But he couldn't sit there forever. Eventually, his belly roaring in a most unladylike way [or in a way unbecoming a polite young girl], he was anxious to walk down around the house on his own for the first time in ten years.
" // How did he lose the ability to walk? // he headed down the hall toward the dining room, walking by himself, amazingly, for the first time ); undum.game.situations['switchbreakfastgo'] = new undum.SimpleSituation( "Derik stayed up in his room as long as he could, largely trying to find a suitable outfit. Several times, his earrings hooked on a shirt or he just collapsed in a heap.
" ); undum.game.situations['switchbreakintro'] = new undum.SimpleSituation( "As he arrived downstairs at the table, he expected looks of shock and horror, but instead nobody blinked. Well, Mildred did make a comment about his outfit:
", { enter: function(character, system, from) { if (character.sandbox.outfitmatch==true){ switch (character.sandbox.outfit) { case 0: system.write("'Wow, I never new clothes could be so...pink.'
"); break; case 1: system.write("'Wow, you are so...sparkly.'
"); break; case 2: system.write("'Wow, that look is awesome. My mother always said wear an outfit that you wouldn't mind wearing while gutting a fish.'
"); break; default: system.write("'Wow.'
"); break; } } else { system.write("'Hmm, that outfit. Um. Just kinda grabbed whatever, huh? Don't worry. I do that sometimes.'
"); } system.write("Then, Mrs. Wobbles said, 'Children, I'd love for you all to meet a new guest here at the house. Meet Denise.'
\'Denise?' said Derik, shocked again.
"); }, } ); undum.game.situations['switchbreakintro2'] = new undum.SimpleSituation( "'Yes, Denise,' replied Mrs. Wobbles, ushering him over to the table. 'She just arrived last night, quite late, too late for any of you to meet her. So make her feel at home as you always do.'
\'I didn't hear anyone coming in last night,' whispered Leroy to his brother Stevie between shovels of eggs and hashbrowns, but Mrs. Wobbles shot him one of her 'Don't you dare' looks, and Leroy thought he saw his pancake turn into a frowny face. He covered it in syrup till he couldn't see it anymore.
" ); undum.game.situations['switchbreakintro3'] = new undum.SimpleSituation( "The children welcomed Denise warmly, as was the way at the Tangerine House, and within a few minutes they returned to eating and the usual morning buzzing. Derik, or Denise, tried to regain Mrs. Wobbles' attention, but she was consumed in a towering stack of mail. A pillar of letters, each one making her frown in a different way. Derik had seen his grandmother make similar faces at piles of bills. She soon rose from the table and grabbed the receiver from the old-time phone hanging on the wall, cranking its metal handle.
" ); undum.game.situations['switchbreakintro4'] = new undum.SimpleSituation( "Derik tried to listen to the conversation, but could only get bits and pieces over the din of breakfast. Something about the house. Something about HIM being back again. That he was just an agent for Santana. (Could she mean Carlos Santana?) All the while, she waved a paper, maybe a bill, in the air as though the person on the other line could see it.
\Now it was time to find somewhere to sit. Should he sit over by the boys, in his usual spot, next to Mildred since that's what a girl would do, or by himself?
\ " ); undum.game.situations['switchbreakboys'] = new undum.SimpleSituation( "", { enter: function(character, system, from) { system.write("Derik filled a plate of food and walked over to his usual spot with the boys.
\'Hello,' said Juan making some room.
"); if (character.sandbox.outfitmatch==true){ switch (character.sandbox.outfit) { case 0: system.write("Stevie said, 'Love the pink thing you've got going on.'
"); break; case 1: system.write("Stevie said, 'You are glittering like the stars in Lucky Charms.'
"); break; case 2: system.write("Stevie said, 'Hey, you like the kinda girl who can hang with the boys.'
"); break; default: system.write("Stevie said, 'Hel-lo.'
"); break; } } else { system.write("Stevie said, 'Looks like you got a style all your own there, girl. You are on fleek!'
"); } system.write("'Leroy stared at his brother and just said, 'Ewwwwwwww.'
\'Stevie,' Juan said, elbowing him hard, 'Stop flirting with the girl. Give her some space to breathe. Right, chica?'
\'Ah, man,' said Stevie, 'You don't know anything about girls.'
\'Why not?' replied Juan. 'I've been playing with you for months.
\Stevie stomped on Juan's foot hard causing Juan to yelp with pain. Mrs. Wobbles gave one glance, and the boys were silent.
\All Derik could do is look down at his plate as he felt the color rushing to his cheeks like lava.
"); } } ); undum.game.situations['switchbreakalone'] = new undum.SimpleSituation( "Derik filled a plate full of food and grabbed a seat off to the side and listened to the voices all around him. Friends joking. Whispers and giggles. The laughter of Stevie and Leroy as Juan cracked a joke, probably about him.
\That's one of the things about sitting off to the side. It turns every back away from you and turns every joke and laugh against you. That's how Derik felt at least. And the worst part is that once you've chosen the seat on the side, there seems to be no way back into the center.
\But at least now Derik could focus on trying to eat like a girl, whatever that meant.
" ); undum.game.situations['switchbreakmildred'] = new undum.SimpleSituation( "Derik filled a plate with pancakes and sat down next to Mildred, trying to keep her hair in front of her face so Mildred wouldn't look too closely.
\'She's a little bit eccentric,' whispered Mildred from beside Derik, 'But she loves us all more than you'll ever know.'
\'More than you'll ever know,' Derik could remember Mrs. Wobbles whispering to him one night after one of his many nightmares.
" ); undum.game.situations['switchbreakintro5'] = new undum.SimpleSituation( "Apparently, Mildred hadn't recognized Derik in his new form, and finally it began to settle in to his head that perhaps no one could recognize him in that new form. But wouldn't people wonder what had happened to Derik? And what was this girl doing sleeping in his room? There were more questions than answers, but his hunger soon distracted him, and several large sausages later, he sat back in his chair full. Mildred looked horrified.
\'Hungry much?'
\Derik belched his reply and Mildred frowned.
" ); undum.game.situations['switchbreakintro6'] = new undum.SimpleSituation( "A surprise ring of the doorbell took Mrs. Wobbles off the phone from what seemed to be a very upsetting conversation to the front of the house, where some unexpected guests had just appeared.
\'Almosts!! Almosts!!' cried the kids, for this is what they called the potential mothers and fathers who would stop by Mrs. Wobbles' house when they were considering adopting. Because you could never tell whether they would actually connect and commit, they were always 'Almosts.' Almost adopters. Almost new mommies and daddies. Almost worth getting excited about.
" ); undum.game.situations['switchbreakalmosts1'] = new undum.SimpleSituation( "'Now children, settle down,' said Mrs. Wobbles. 'Don't scare them away by acting like a bunch of stampeding cows. Play it cool.' 'Play it cool' was Mrs. Wobbles' approach to everything, but the kids were kids, and even Mildred had already begun combing her hair excitedly.
\
With a wssh and a whirl, Mrs. Wobbles was down the hall, coming back only a few moments later with some news.
\'The family at the door are a lovely couple that had contacted me several weeks ago. It seems they've been looking at the files of the children here to find a good match for them and their circumstance.
" ); undum.game.situations['switchbreakalmosts2'] = new undum.SimpleSituation( "'They followed one child from her last placement, and now that she is with us, they'd like to spend the afternoon with...
\
The room was silent as a librarian's dream.
" ); undum.game.situations['switchbreakalmosts2a'] = new undum.SimpleSituation( "" ); undum.game.situations['switchbreakalmosts3'] = new undum.SimpleSituation( "The reaction was not all at once. 'Denise? Did she say Denise? Is that the new girl? Just our luck, the new girl.' But soon it was boiling and bubbling like the great oatmeal pot that sat on the stove throughout every breakfast. Mrs. Wobbles silenced them all with a snap.
\
'Denise is the one that might complete their family, so Denise it is. We are very happy for her.'
\
There was another moment of quiet when you could hear the refrigerator coughing a little. But it was soon followed by cheers for Denise.
" ); undum.game.situations['switchbreakalmosts4'] = new undum.SimpleSituation( /* if choicehair==hair[numhair[2]], say "Good, bet you'll need a skirt. They want a daughter afterall" else: They want a daughter -- skirts, pigtails, you know! */ "They circled her with congratulatory hugs and pats, cheered her preparations, and gave her endless advice.
\'You are NOT wearing THAT outfit,' said Mildred and had her change into a skirt. 'They want a daughter -- skirts and flowers, yes, but not too much, you know?'
\And when Denise reappeared, now properly girlish, the children marched her to the door.
\
It was only once she was gone that Stevie came across the empty wheel chair and said, 'Hey, where's Derik?' But a magical bat appeared, glowing bright and green, and following it into the back yard, Stevie forgot all about his question. Mrs. Wobbles smiled and turned to peer out the window at Denise getting into a car with the Sheepheads.
" ); undum.game.situations['switchstation'] = new undum.SimpleSituation( "The car was an ordinary station wagon. Nothing special about the inside, no leather seats, no DVD players, smelled about the way you'd expect a middle-aged couple's car would -- except one magical thing, Derik, or Denise, rather (I've got to get used to that!) entered it all on her own. No one had to lift her up, place her in, get her settled, fuss or fret. Denise had yanked open the door, hopped in, and buckled up and was now smiling from ear to ear so much so that the Mr. and Mrs. Joe and Edna Sheephead must've thought her to be outright mad.
" ); undum.game.situations['switchstation1'] = new undum.SimpleSituation( "'Everything all right back there?' asked Edna in the way that nervous adults ask questions that are basically confirming the obvious.
\'Oh, yes, um, Mrs. Sheep -- er' here Denise stammered a bit.
\'Sheephead,' said Joe, 'Like the California Sheephead, the fish?'
\'But,' Edna swooped in like a California Condor, 'you can call us Edna and Joe,' and then after a slight pause that barely hid her joy, 'for now.'
\'Okay, Edna,' said Denise, but it sounded strange to everybody in the car, especially Denis to whom adults had always at least been Ms. or Mr. followed by their first name.
", { actions:{ 'sheephead' : function(character, system, action){ system.write("Ah, I'm glad you were curious. The California Sheephead is a salt water fish, found off the coast of California. It has the unusual property of all the fish being born female and then, given certain circumstances, like when she gets sick of all the long lines at bathrooms, changing into a male.
"); system.animateQuality( 'page', character.qualities.page + 5 ); system.write("Good on you for digging a little deeper.
"); } } } ); undum.game.situations['switchstation2'] = new undum.SimpleSituation( "'So, where would you like to go? We were thinking the movies or the skating rink or a picnic?'
\'Joe,' scolded Edna with a look stern but loving, 'Let her answer. Let her get her breath. She's just getting settled.'
\'Oh, sorry,' said Joe, who looked in the rear view mirror a little bit like a wounded puppy.
\'Oh, no, that's quite all right,' said Denise, trying to keep her mouth from smiling -- which was just impossible. 'I'm excited, too.'
\And the two adults exchanged relieved glances, like when they find out the blood in your mouth is just from a baby tooth that just popped out.
\ " ); undum.game.situations['switchmovies'] = new undum.SimpleSituation( "'To be honest, I'd love to go to the movies,' Denise said, and she burped.
\'Excuse me,' she flushed.
\Where did that come from? That was a meaty burp! Not a dainty little burp, but a meaty-tasting, breakfast-sausage-again, kind of burp. The kind that comes with a mouthful of taste. But girls don't do that? Or do they?
\'She sounds like you,' said Joe to Edna.
\'She's a lucky girl,' said Edna, swatting Joe for emphasis.
" ); undum.game.situations['switchmovies2'] = new undum.SimpleSituation( "They drove off to the movies. The choices were an action film called Super Ninja Alien Vampire Dinosaurs in Space or a movie about a girl who becomes a global rockstar by posting a video of herself singing on the Internet.
\ " ); undum.game.situations['switchsuperninja'] = new undum.SimpleSituation( "Super. Ninja. Alien. Vampire. Dinosaurs. in. Space.
\Say no more.
\The awesomeness of this movie is obvious to any boy.
\Except Derik was not really a boy any more.
\And the movie was terrible.
\It was basically an hour long commercial for the toy versions of the Super Ninja Alien Vampire Dinosaurs of the title.
", { enter: function(character, system, from) { if (character.qualities.gender>-6){ system.setQuality("gender", character.qualities.gender -1); } } } ); undum.game.situations['switchsuperninja2'] = new undum.SimpleSituation( "After the movie, Denise went to the little girls room with Edna, covering her eyes as she went to the stall. When Denise came out, Edna jumped out at her with a 'ROAR,' pretending to be a Super Ninja -- could I just say, SNAVDS? That would make my life so much easier! -- But she wasn't like a SNAVDS at all. She was just a frightening bag of potential momness. And Denise was actually so scared she screamed like, well, like a girl.
\ " ); undum.game.situations['switchsuperninja3'] = new undum.SimpleSituation( "'Yes,' Denise said. Good thing she went pee before the scare.
\Edna smiled. 'Sorry, I do that to Joe all the time. He hates it. But I just can't help myself.'
\Denise was starting to like Edna. She noticed that Edna didn't wear makeup. That was interesting. Could you be a woman and not wear makeup? As Derik, he had never known any woman who hadn't.
\When they came out they saw Joe, sneaking a peek at the tween adventure texting movie.
" ); undum.game.situations['switchtotally'] = new undum.SimpleSituation( "I cannot describe this movie. I just can't. Some movies are better off left to your imagination. Or better yet, since they were not created with much imagination, better left to the confines of a DVD box or movie poster.
\It should be enough to say that the movie contained equal portions pink costumes, glitter, giggling, singing, shopping, sighing, and hairstyling, not to mention a few zany mixups involving a glass a pink lemonade spiked with Pop Rocks.
", { enter: function(character, system, from) { if (character.qualities.gender<5){ system.setQuality("gender", character.qualities.gender +1); } system.write("This movie should've come with free lip gloss. Nice pick.
"); } } ); undum.game.situations['switchpicnic'] = new undum.SimpleSituation( "Joe and Edna exchanged broad smiles. Clearly this was a good choice. They had a little argument - I don't even know if I could call it that -- a little disagreement -- a back and forth -- nothing like the kinds of arguments Denise had seen before as Derik -- like when foster parents argued about how they would manage his wheel chair in their lives -- going on vacation or going to the beach -- if those were rain storms this was just a sprinkling. The disagreement was what kind of food to get: Joe wanted a big bucket of chicken and Edna wanted something daintier, like finger sandwiches and tea.
\Finally, they consulted Derik.
\ " ); undum.game.situations['switchbucket'] = new undum.SimpleSituation( "'Um, a Bucket o' Chicken!' exclaimed Denise.
\Edna winced. 'Okay, but Joe, you know what chicken does to you.'
\Denise wondered what a bucket of fried chicken could do to someone.
\At the picnic, Joe and Denise plunged into the bucket of chicken like dogs digging in the dirt for a bone. They made a tower of bones, that piled up like Lincoln Logs, and came tumbling down on the plate of a frowning Edna, who pecked nervously at the chicken in front of her.
\Denise soon learned what could go wrong with a basket of chicken. Halfway through the picnic, Joe started looking panicky. He kept turning his head left and right, and instead of sitting comfortably, he was standing, hunched a bit.
", { enter: function(character, system, from) { if (character.qualities.gender>-6){ system.setQuality("gender", character.qualities.gender -1); } } } ); undum.game.situations['switchbucket2'] = new undum.SimpleSituation( "Edna said, 'I think I saw a place over by the basketball courts,' and Joe shot off.
\'He doesn't do so well with fried chicken but can't admit it. It's a problem -- male pattern stubbornness. Thinks he's still a boy.'
\'Yeah, I know how he feels.'
\'What a strange thing to say,' said Edna. 'Now, Denise, I know you haven't had a lot of female role models in your life.' And with the edge of a napkin that she wet a bit with her water, she began to wipe grease from Denise's face. 'But I hope I can be a good one.'
\Denise shrugged and looked down.
\When she looked back up, Edna had lifted a grizzled thigh from the bucket of chicken, chomped down on the side of it, and let the juice run in a trickle down her chin.
\Denise grabbed a leg and followed her example, and they laughed and laughed.
\Eventually, Joe came back, looking a little pale, but relieved.
\Shall we, he said, and Edna and Denise shared secret winks.
" ); undum.game.situations['switchfinger'] = new undum.SimpleSituation( "'Finger sandwiches,' said Denise in her most polite voice.
\ The finger sandwiches, in case you were wondering, contained not one finger. And if you were disappointed, Edna was even more disappointed, because the only place they could find to pick up sandwiches was the sub shop, where the dainty little sandwiches were replaced with big six-inch subs, draped with meat and cheese and dripping with dressing.\When they arrived at the picnic blanket, Denise had to help carry the food and the water cooler from the trunk. They were amazed at how strong she was. However, when she sat down something was clearly wrong.
", { enter: function(character, system, from) { if (character.qualities.gender<5){ system.setQuality("gender", character.qualities.gender +1); } } } ); undum.game.situations['switchfinger2'] = new undum.SimpleSituation( "'Denise, honey,' said Edna, tapping her knees.
\'Yes?' asked Denise.
\'Your legs.'
\Denise looked down at her legs. She couldn't see anything particularly wrong with them. They were long and strong and not a speck of dirt on them.
\'Put them together,' said Denise.
\'You know,' said Joe, 'I see London, I see France.'
\Edna shot him a look.
\'What? I thought that was to help people remember. What? It helps me.'
\Denise blushed and at first sat Indian-style, but there was serious London and France going on there. Finally, she bent her legs back and kept her knees together with the skirt lying flat and smooth. She had seen girls sit like this a lot. This was a lot of work.
" ); undum.game.situations['switchfinger3'] = new undum.SimpleSituation( "After the meal, Denise couldn't help but try out her new found legs. She climbed some trees, chased some squirrels, and tried to do a cartwheel. Again her skirt flopped down.
\Edna went over to her. 'Yeah, cartwheels in a skirt, not such a good idea. Listen I have to teach you something very important that every girl should know.'
\'Um, that's okay,' said Denise, squirming, 'You can tell me later.'
\'Know it's really cool. Like a special secret.'
\Denise felt sort of squiggly in her stomach, as if there were a goldfish swimming around in there. 'Nah, that's okay.'
\'It'll help you remember about your underwear.'
\'Fine,' said Denise.
\ " ); undum.game.situations['switchboysecret'] = new undum.SimpleSituation( "'Um, tell me later,' said Denise. 'Maybe when Joe's not around.'
\'Oh, all right,' said Edna. 'Good idea. Wouldn't want the secret to get out.'
\Denise wondered if this was what she were in for, a lifetime of secrets from the world of girls. Did that mean she already knew all the secret boy stuff?
\What could it possibly be? What would happen if she knew both? Somehow the idea made her intrigued and then nervous and then very, very confused.
", { enter: function(character, system, from) { if (character.qualities.gender>-6){ system.setQuality("gender", character.qualities.gender -1); } } } ); undum.game.situations['switchgirlsecret'] = new undum.SimpleSituation( "'If you want to have fun and not worry about showing your underwear, all you need is a skort.' Said Edna with a smile.
\'A skort?' said Denise.
\'Yes, it's half skirt, half shorts.'
\The mind of Derik inside of Denise was totally blown.
\'Awesome,' said Denise, and high fived the woman who might just make an awesome Mom.
", { enter: function(character, system, from) { if (character.qualities.gender<5){ system.setQuality("gender", character.qualities.gender +1); } } } ); undum.game.situations['switchskate'] = new undum.SimpleSituation( "'But, I would like to go... Skating,' she said. And they were off.
\Joe and Edna were a sweet couple, straight out of the orphanage storybooks. Joe was a bit plump and balding, wore an easy smile, looked to Edna often for approval of his slightly awkward behaviors. Edna was tall and thin and pretty. A worrier from the looks of those nails, but in a good way. She had a somewhat fierce look she reserved for Joe's questionable driving choices but deep within a kindness that was deep and true.
" ); undum.game.situations['switchskate2'] = new undum.SimpleSituation( "Their trip to the Skating rink was without incident, aside from some honking horns, but to be honest, Denise was travelling as though in a dream. The sudden shock of waking up in a girl's body had withdrawn like the tide, and she was left in the backseat beaming, a warmth welling up in her, at being able to walk.
\Edna and Joe were busy bickering over whether or not Edna should skate or just Joe, as Joe was clearly a bit unsteady on skates. Derik who had never skated before in his life was as Denise tying one his skates with confidence. He pulled the ends of the bow with a firmness of a soldier suiting up for battle and he stood and he walked.
" ); undum.game.situations['switchskate2a'] = new undum.SimpleSituation( "Time for skating. What should Denise try?
\ " ); undum.game.situations['switchskateshower'] = new undum.SimpleSituation( "No, Denise had never skated before, but somehow she felt like she could. With all her might, she pushed off from the wall and zoomed around the rink at full speed, turning each corner like a pro. His ankles didn't even buckle. It was astounding. With his ease and might, he looked like Mario Lemieux or the Great One.
\As he finished his third round, he spied Joe leaning up against the wall chatting with Edna. As a wicked smile stretched across his face, he sped toward Joe at full blast. Joe didn't see him coming.
", { enter: function(character, system, from) { if (character.qualities.gender>-6){ system.setQuality("gender", character.qualities.gender -1); } } } ); undum.game.situations['switchskateshower2'] = new undum.SimpleSituation( "Just before he was about to ram into Joe, he turned sharply, putting all his weight on his skates, sending a glorious spray of ice all over Joe.
\Unfortunately, the spray was a bit too much for Joe who toppled over. This was terrible. What could be worse than knocking over an Almost before they had signed on the dotted line? He would never be adopted.
\
'Um, you okay?' asked Denise, skating over to help him up.
" ); undum.game.situations['switchskateshower3'] = new undum.SimpleSituation( "Suddenly, from behind him came another shower over ice, spraying all over him and Joe. 'Oh my gosh,' said Edna, 'that was hilarious.' And Joe gave a red-cheeked grin as well, tossing a clump of shaved ice back at Edna.
\After seeing she had only bruised Joe's bum and his ego and getting a huge high five from Edna, she relaxed.
\Denise was beaming. Legs were amazing.
" ); undum.game.situations['switchskatespin'] = new undum.SimpleSituation( "No sooner did her step on the ice than he realized that he had no idea what he was doing, but then came the breeze. Off from a distant corner of the skating rink, a breeze of light and color swirled toward him, and not doubting that this was Mrs. Wobbles' work, he let it carry him onto the ice as he could now, and without a doubt magically skate.
\Joe and Edna turned to watch this young girl, gracefully swirling about. Edna gave Joe a comical whack on the arm, and he was soon stumbling and scrabbling out onto the ice to join Denise.
", { enter: function(character, system, from) { if (character.qualities.gender<5){ system.setQuality("gender", character.qualities.gender +1); } } } ); //Add reference to what they chose undum.game.situations['switchrejoin'] = new undum.SimpleSituation( "The day passed with ease and laughter. They were amazed at how much Denise could eat at the burger place after their just a short adventure. To top they day off, they brought her to a doll shop for her to pick out a doll.
" ); undum.game.situations['switchhackpredoll'] = new undum.SimpleSituation( "But when [cough, hack, hack] -- after they were.
", { enter: function(character, system, from) { //system.writeSound(character, 'start'); }, actions: { 'switchhack2': function(character, system, action) { var hacktext2=["'How could we burn your ship?' asked Mildred now getting up in the pirate's face. 'We're just three children lying in the sand over here with you.'
\'My, my, you can talk,' the great pirate wheeled around, his wooden foot still pointing the same direction as he pivoted. He was close enough to dice her with his sword but seemed to hold back when he saw it was a girl.
\'Then perhaps ya can explain why there's magma burning up my ship.'
\Leroy was going to explain that it was lava, but held his tongue.
\ ", "Outside, the sunny street in Silver Lake was somehow chilly. It was nearly spring, but the \ air still had a crisp little curl on it, a frost lick, and a wind. That would be the Santa Ana wind, but more on that later. The boys' poorly patched\ wind-breakers were too thin to be of much help.
\As they walked up the steep hill it became clear that the boy in the wheelchair\ was headed in the same direction. Stevie overheard the woman say, 'Now Derik, when you\ get to Mrs. Wobbles', I expect you to be on your best behavior. This has to be your\ last placement until--'
\'I know, I know.'
\Until what? thought Stevie. And did she just say 'Wobbles'? He couldn't be sure.
\ ", "Ichel and Juan, tangle-haired younger sister and spiky haired older brother, lay down on the rug, flipping through their Life Book. A Life Book is like a big scrapbook of your life story so far. You may have never heard of one of these, but many of the children living in the Tangerine House had one, and it went on with them when they were adopted. I believe, these are some of the most important books in world, after the Book of the Lost, of course.
\ "]; var choose=system.rnd.randomInt(0,2);; system.write(""+hacktext2[choose]+"
Oh, dear. That was from the wrong story all together.
\Okay, this is becoming a bigger problem than I thought. But don't worry. I think I'm back now.
"); //system.writeSound(character, 'switchhack'); } } } ); //Doll Shop Section begins Here undum.game.situations['switchdoll'] = new undum.SimpleSituation( "The Ana Crony Girls Doll Shop was not just any doll shop. It was the most high end doll shop in the country, and this store at the most hoity-toity of outdoor shopping promenades was their flag ship.
\The store was full to the brim with girls in flouncy dresses, sparkly shoes, and hair ribbons who'd fit right in next to the dolls on the shelves. Girls who'd been accustomed to being primped and pampered and waited on. Girls who were basically living dolls to their moms and dads, treasures to be decorated and adored. Girls that made the Derik side of Denise want to puke.
" ); undum.game.situations['switchdoll2'] = new undum.SimpleSituation( "Of course, at the store you didn't just buy a doll. Dolls came with birth certificates, detailed hospital paper work listing their birth weight and height, resumes and family trees, citizenship papers, and all sorts of other documents. Not only did each doll have a name, she had her own backstory and her future life story that was thicker even than a Harry Potter book (not the first ones, more like Book 5!).
" ); undum.game.situations['switchdoll3'] = new undum.SimpleSituation( "The store didn't even call it buying a doll. No, that would be too crass, too petty. They called it adopting a doll. The irony was not lost on Denise.
\Choosing a doll was supposed to be like choosing a soulmate or a best friend. A doll was supposed to be not just a toy but a partner for life, someone to live with and live up to, a sign of what you wanted to be, of what you could be, of how you saw yourself.
" ); undum.game.situations['switchdoll4'] = new undum.SimpleSituation( "Both his Derik side and his Denise side found the whole idea ridiculous. Adopting a doll! A doll with birth records! None of his action figures came with lengthy stories. Major Markup did not come with a novel! Agent Orange did not have his whole life written out. (Actually, they did. The dolls -- er, action figures had their own movies and TV shows, chapter books, and comic books and the works, but we'll let him think this for now.)
\'You can have whatever girl you like,' said Joe, beaming with generosity and pride.
\'Or you can play the trading card game,' added Edna, picking up a deck.
\ ", { enter: function(character, system, from) { character.sandbox.readstory=true; } } ); // Insert the Card game undum.game.situations['switchdollgame'] = new undum.SimpleSituation( "In a desperate bid at directing boy customers into the Ana Chrony Doll Store, known as the most expensive doll 'adoption' shop on Earth, one employee -- who was fired shortly after the idea -- suggested the company try to target boys with an original trading card game. The idea was to make it fun to collect cards about the various dolls and then to pit them against each other in combat. It was one of those classic ideas. Classically bad. Sort of like giving someone green beans when they ask for jelly beans. Play the game.
" ); undum.game.situations['switchdollplay'] = new undum.SimpleSituation( "Let the game begin!", { enter: function(character, system, from) { var mypower= Math.floor((Math.random()*10)+25); var yourpower= Math.floor((Math.random()*10)+25); attack = function(attacknumber) { var x=attacknumber; var vari1 = x; // Now, "eval()" uses vari1`s value to create another variable, having this name eval("var loss = you[0].attack"+vari1+"points;"); eval("var move = you[0].attack"+vari1+";"); eval("var sound= you[0].attacksound"+vari1+";"); //Check to see if the person has enough power. // system.write( "
You have "+ you[0].power + " power
"); // system.write("That attack costs "+ loss + " power
"); if (you[0].power"+ sound +"! You use " + move + "!
"); $("#ending").html(""); //damage should be Random number 1-loss -- check living will for code var damage= Math.floor((Math.random()*loss)+1); player[3].hitpoints=player[3].hitpoints - damage; you[0].power=you[0].power-loss; $("#hitpoints").html(player[3].hitpoints+ ""); $("#powerpointsyou").html(you[0].power + ""); if (player[3].hitpoints<=0){ // or if the computer is out of power points $("#ending").html(""+you[0].name+" has soundly defeated " +player[3].name +"! Your historical girl -- or is it unhistorical girl? -- has thoroughly crushed another! Well done!
"); $('#attack1').attr("disabled", true); $('#attack2').attr("disabled", true); if (character.sandbox.readstory==false){ if (character.qualities.page>0){ system.setQuality("page", character.qualities.page - character.qualities.page); } system.write("Games are fun. Why not try again? Avoid the story.
\