You plant your feet in front of the approaching Equation and stand your ground, shoulders tall. Next to you, Subtra stands clutching her staff with white knuckles. \n\nThe Equation sets its many eyes on you and lets out a deafening roar. Irrational numbers flood your ears, their many digits threatening to continue for ever as you subconsciously try to solve them. Subtra grabs your arm.\n\n“D-don't listen to it!”\n\nYou shake your head free of the fugue, and raise your staff. The Equation hunkers down in preparation. You draw a deep breath.\n\n[['Charge!'|Seven]]
Your head pounds as you push yourself to your feet, brushing dust and leaves from your torn jeans. Memories of the last few minutes flash back to you.\n\nA terrifying [[EQUATION|EQUATIONBIO]] has been let loose on the city and is causing havoc. If not stopped, it threatens to lock up the minds of everyone!\n\nOnly a few have the power to stop it – to fight it using its own tricks and powers.\n\nYou are a MATHSIGAL GIRL. \n\n[[Use your powers to protect the city and save your friends!|Three]]
A mewing sounds comes from over to the right, and you glance over to see a small cat stuck in a tree. The Equation's thrashing about has unrooted it, and it leans precariously over the riverbank.\n\n<<linkreplace "'Kitty, I'll save you!' cries Subtra, and runs towards the cat on impulse. You let her run and deal with the fight at hand.">>\n\nThe Equation stares you down for a second, before turning its terrible, multi-eyed head to face Subtra.\n\n[['No!'|Twelve]]<</linkreplace>>
Your Mathsical Girl partner, your best friend, your best anyone in the whole world. She's already transformed into her fighting outfit, a dark blue dress with white leggings, covered in little minus signs. Her hair's tied up with two blue bows, and tucked into the front of her ruffled blouse is a little heart necklace.\n\nIt's not a power necklace or anything. You gave her the heart necklace.\n\nLIKES: Cats, Tea, Bookshops\nDISLIKES: Spiders, Papercuts, Equations\n\n<<return>>
\nYou grasp your necklace tightly and take a deep breath.\n\n<b>"Go Go Shining Maths Power!"</b>\n<span class="rainbow">\nA burst of light erupts from your necklace and shines all around you, enveloping you in a perfect geodesic shape. You feel yourself rise slightly off the ground as from somewhere a choir sings. Your heart beats in your chest.</span>\n\n<span class="maths">c = π.d = 2.π.r</span>\n<span class="rainbow">\nThe shape shrinks to be skintight, and you feel your clothes melt away to become your Mathsical Girl Outfit(tm). First your dirty shirt disappears to become a puffy white blouse, the ruffs sticking out from your chest and tickling your chin. The light trickles up your arm, covering it in red gloves with little cute white plus signs, small gems glittering on the wrists. The light spreads downwards and your torn jeans disappear as a pleated black skirt unfolds, a scarlet stripe across the hem, and black stockings roll themselves down to your feet. Your boots remain much as they were before, solid and functional, only now with a little plus on each toe.</span>\n\n<span class="maths">f (x)=3x,g(x)=x-1 ⇒(f ∘ g)(x)=3(x-1)</span>\n<span class="rainbow">\nThe light lowers you down as your hair changes, too, lengthening and braiding itself to a long pair of twin tails on either side, two more pluses attached to each end. They bounce as you land and strike a heroic pose, arms out and facing the oncoming Equation.\n</span>\n <span class="maths">e = lim (1+1/x)x , x→∞</span>\n<span class="rainbow">\n"Mathsical Girl Addie is here! I'll solve you without fear!"</span>\n\n[[FIGHT!|Six]]\n\n
// dropdown macro, by chapel (with help from Thomas Michael Edwards); for SugarCube 2\n// version 1.2.0\n\nMacro.add('dropdown', {\n handler : function() {\n if (this.args.length < 2) {\n var errors = [];\n if (this.args.length < 1) { errors.push('variable name'); }\n if (this.args.length < 2) { errors.push('list values'); }\n return this.error('no ' + errors.join(' or ') + ' specified');\n }\n\n // Ensure that the variable name argument is a string.\n if (typeof this.args[0] !== 'string') {\n return this.error('variable name argument is not a string');\n }\n\n var varName = this.args[0].trim();\n\n // Try to ensure that we receive the variable's name (incl. sigil), not its value.\n if (varName[0] !== '$' && varName[0] !== '_') {\n return this.error('variable name "' + this.args[0] + '" is missing its sigil ($ or _)');\n }\n\n // Custom debug view setup.\n if (Config.debug) {\n this.debugView.modes({ block : true });\n }\n\n var varId = Util.slugify(varName);\n var listValues = this.args.slice(1).flatten();\n var curValue = Wikifier.getValue(varName);\n var defaultIdx = 0;\n var el = document.createElement('select');\n\n // Set up the option list.\n for (var i = 0; i < listValues.length; ++i) {\n var value = listValues[i];\n\n if (String(value) === curValue) {\n defaultIdx = i;\n }\n\n jQuery(document.createElement('option'))\n .text(value)\n .appendTo(el);\n }\n\n // Set up and append the select element to the output buffer.\n jQuery(el)\n .val(listValues[defaultIdx])\n .attr({\n id : this.name + '-' + varId,\n name : this.name + '-' + varId,\n tabindex : 0 // for accessiblity\n })\n .addClass('macro-' + this.name)\n .on('change', function () {\n Wikifier.setValue(varName, this.value);\n })\n .appendTo(this.output);\n\n // Set the variable to the default value.\n Wikifier.setValue(varName, listValues[defaultIdx]);\n }\n});
A terrifying monstrosity of pure, unbalanced maths. Its physical form has too many mouths, too many arms, a horrible tail and a slick hide. Each of its eyes focuses through you to your soul, seeing the sums that make up the universe inside you.\n\nThe only thing stopping it from taking over the minds of everyone in the city is you.\n\n<<return>>
"I'm okay!" you reply, trying to control your breathing. You glance at the Equation as it comes back around to face you.\n\nSubtra reaches out a hand and closes her eyes in concentration.\n\n"It's nearly down!" she says. "Only <<print $BossHealth>> more hit<<if $BossHealth > 1>>s<<endif>>!"\n\nYou grit your teeth and ready yourself for another attack. Privately, you're not sure you can take <<if $PlayerHealth <= 1>>any<<else>> more than <<print $PlayerHealth>> more blow<<if $PlayerHealth > 1>>s<<endif>><<endif>>. Better take it down quickly.\n\n[[Ready your attack!|Fifteen]]
Maths-ical Girl Power GO!\n\n---\n\nOh, gosh, this idea was silly but lots of fun. I thought about Edutainment games and how I hadn't played any lately, and the pun on Maths / Magical Girl just sprung to mind. I guess you could say the concept is a little... Divisive...\n\nI hope you enjoyed this! There are 3 or 4 ends, depending how you count, so make sure to get them all!\n\nThanks to Shockpulse / @shockyhime for Transformation Scene inspiration <3\n\nFeel free to tweet any cutesy art of our heroes or villains to @spdrcstl\n\nFreya x\n\n[[Programming Credits]]\n\n[[Replay|Start]]\n\n<a target="_self" href="../index.html">Home</a>
<<if $ANSWER is "71">>You swing with your staff and fire a blast of maths energy at the Equation. It strikes and blows apart its defences, sending it reeling back. Your answer was correct!<<set $BossHealth to $BossHealth - 1>><<else>>You swing with your staff and fire a blast of maths energy at the Equation. It splashes against its shields and dissipates harmlessly. The Answer was incorrect!<<set $PlayerHealth to $PlayerHealth - 1>><<endif>>\n\nSubtra <<if $ANSWER is "71">>cheers and grabs your hand, pulling you out of the way of the Equation as it flails.<<else>>Subtra lets out a cry and yells, "Look out!". You turn to see the Equation's tail lash out and strike you in the chest, sending you staggering back.<<endif>>\n\n[[You ready yourself for the next attack, knowing that this won't be the last of it.|Nine]]\n\n
As Multi descends to the ground, you grit your teeth in frustration. You stand up and gently place Subtra on her feet, letting her lean on you for support. \n\n"Addie! Subtra! I see you're still picking Equations too hard for you."\n\n"Stuff it, Multi," you reply. "I almost had it."\n\nShe smiles and shrugs casually. "Sure you did. Well, either way, Multi saves the day again."\n\nShe cackles and strides away, looking glamorous, gorgeous, and as competent as ever. You can't help but feel a rise of complex envy inside you as you watch her leave. After a moment you look away in a huff.\n\nSubtra leans her head on your shoulder.\n\n"Don't let her get to you," she says. "I'm just glad we're both okay."\n\nYou take a deep breath and close your eyes, feeling Subtra's breath and heartbeat next to you. After a moment you lean your head on hers with a sigh. You guess this is okay.\n\n<b>Rival End</b>\n\n[[CREDITS|Credits]]
Maths-ical Girls!
You charge towards the Equation, dodging a swipe from its paw, jumping over its tail as it swings around to smack you away. Just as you come close to it, another paw reaches out. <<linkreplace "You duck...">>\n\nThe Equation's paw shoots over your head, and you hear a scream. You turn in horror to see Subtra dangling in its grasp, her staff fallen at her feet.\n\n'Addie... h-hurry!' she chokes, hands scrambling at her neck. [['Th-the weak spot!'|Seventeen]]<</linkreplace>>
You take a deep breath and grip your staff in preparation. The Equation stars you down, one eye twitching as the others stare into your soul. It opens its mouth and lets out a terrible noise, and Subtra's face goes pale.\n\n"It's the Tijdeman-Zagier conjecture! Don't try and solve it or you'll be frozen!"\n\nYou clamp your hands over your ears and frantically look for a weak point on the Equation. As it screams at the two of you it turns its head, and you spot a chink in the armor under its chin.\n\n"That's it!" you yell. [["I'm going all out!"|Sixteen]]
$('#ui-bar').remove();\n$(document.head).find('#style-ui-bar').remove();
With a sick feeling in your stomach you turn back towards the Equation. Desperation powers you forward and you leap onto its slick, horrid hide, climbing up to the chink in its armour below the head.\n\nAs it senses your attack, the Equation throws up its final defence. The sound of Subtra's<<timed 5s>><<next>> desperate<<next>>, gasping<<next>>, agonising<</timed>> struggling behind you gives you extra determination, and you ready your attack with your final answer.\n\n<b>6 / 2(1+2) = ?</b>\n\n<<set $ANSWER to ''>>\s\n<<dropdown '$ANSWER' '1' '9'>>\n\n[[With all your power, attack!|Eighteen]]
Subtra pulls you by the hand and the two of you run through the park for cover. Behind you is a deafening rumble and the ground shakes, sending you stumbling. The two of you dart behind a fountain and crouch.\n\n“Addie, are you okay?”\n\n“I'm fine,” you reply. “Are you hurt?”\n\nShe shakes her head. “No, I'm not hurt. But...”\n\nShe looks back at the approaching Equation, its distorted snout sniffing around for your trail.\n\n“I'm scared, Addie. This one's so much more complex than before...”\n\nYou take her hand between yours.\n\n[[“Look at me, Subtra!”|Four]]
The Equation roars and takes a swipe at a lamppost, knocking it out of the way as it charges back towards you. It covers the ground and throws out another defence.\n\n"It's a division!" shouts Subtra. "Be careful!"\n\n<b>104 / 13 = ?</b>\n\n<<set $ANSWER to ''>>\s\n<<dropdown '$ANSWER' '6' '7' '8' '9'>>\n\n[[Make your attack!|Ten]]
Subtra throws her arms around you in joy. \n\n"I'm so glad!" she says. "We did it! The city is safe!"\n\nYou hold her tightly in an embrace. You weren't thinking about the city, or all the people at risk. The only person whose safety you fight for is right here in your arms.\n\n"I was so scared," she says. You lean back and put your hands on her shoulders, looking her in the eye.\n\n"Don't worry," you say. "I'll always be here to protect you."\n\nShe blushes, and you lean in to kiss her. Just before your lips touch, you hear a little mew. Subtra jerks away and turns to face the sound.\n\n"Kitty! You're okay too!"\n\nAs she darts over to cuddle the stray cat instead, you think to yourself, this is alright. You're just happy to see her smile.\n\n<b>Good End</b>\n\n[[CREDITS|Credits]]
// dropdown macro, by chapel (with help from Thomas Michael Edwards); for SugarCube 2\n// version 1.2.0\n\nRainbow code found on twinery.org\nhttps://twinery.org/forum/discussion/1404/help-with-applying-some-css-to-text-rainbow-effect-erase-on-hover\n\n<<return>>
You push yourself up to a sitting position, wincing through pain. Your whole back feels bruised. Gingerly, with relief coursing through your veins, you put your arms around Subtra. As she winces, you look at her arm again as it hangs loosely by her side.\n\n"Subtra, your arm! Is it broken? We have to get you some help!"\n\n"Don't worry about me," she says. "I'm just glad you're okay."\n\nYou feel your cheeks turn red, and after a second you lean in to kiss her. Just before your lips touch, you hear a little mew. Subtra jerks away and turns to face the sound.\n\n"Kitty! You're okay too!"\n\nSubtra shows the same amount of concern for the cat as for you, and you can't help but laugh. You're battered, but alive, and that's what matters. All is right in the world.\n\n<b>Okay End</b>\n\n[[CREDITS|Credits]]
The Equation leans back and opens its mouth, a ball of crackling energy charging in its mouth as it takes aim at Subtra. Too late, she turns her head to notice, and throws up her hands to protect herself.\n\nYou sprint towards her just as the Equation lets loose its powers. Throwing yourself in the way of the attack, you realise just what's coming towards you. \n\nAlgebra! You fix the image of Subtra in your head and call up all of your maths powers to fight it.\n\n<b>(2x + 6)/4 = -1</b>\n\n<<set $ANSWER to ''>>\s\n<<dropdown '$ANSWER' 'x is 5' 'x is 2' 'x is -2' 'x is -5'>>\n\n[[Protect Subtra!|Thirteen]]
The two of you cover the metres to the Equation within seconds, and just as you come close, it throws out its first defence.\n\n“It's an Addition!” shouts Subtra. “You can do it!\n\n“Just pick the right answer and break through its barrier!”\n\n<b>26 + 45 = ?</b>\n\n<<set $ANSWER to ''>>\s\n<<dropdown '$ANSWER' '61' '66' '71' '74'>>\n\n[[Attack with your Answer!|Eight]]
<<if $ANSWER is "8">>You charge your staff and let loose another burst of magic. It hits the defence and powers straight through, striking the Equation on the flank. It lets out a roar of pain and smacks the ground with one of its terrible paws before rearing backwards.<<set $BossHealth to $BossHealth - 1>><<else>>You charge your staff and fire with your powers, but it splashes against the Equation's defences and fizzles out. The Equation almost seems to laugh, and pulls back its head with a deep breath.<<set $PlayerHealth to $PlayerHealth - 1>><<endif>>\n\nThe Equation lets out a burst of flame towards you, and you <<if $ANSWER is "8">>roll out of the way with ease. The flames singe the edge of your skirt with a hissing noise.<<else>>throw up your arms for protection, feeling the heat wash across your limbs as it bleeds through your defences. You grit your teeth until it stops, and stagger backwards out of range of another blast.<<endif>>\n\n[[This battle's getting tough!|Eleven]]
\n\n\n\n<span class="rainbow"><b>Maths-ical Girls!</b></span>\n\n[[Go Go Maths Power: START!|One]]\n\n<a target="_self" href="../index.html">Home</a>\n\n<<set $BossHealth to 4>>\n<<set $PlayerHealth to 3>>
/* Your story will use the CSS in this passage to style the page.\nGive this passage more tags, and it will only affect passages with those tags.\nExample selectors: */\n\nbody {\n\t/* This affects the entire page */\nbackground-color: white;\t\n\n}\n\n.passage {\n\t/* This only affects passages */\ntext-align:center;\nbackground-color: white;\nfont-size: 1.2em;\nfont-family: Sans-Serif;\n color: black;\n}\n\t\n.maths {\nfont-family: serif; \nfont-size: 1em; \nletter-spacing: 2px;\n -webkit-animation: mymove 5s infinite; /* Chrome, Safari, Opera */\n animation: mymove 5s infinite;\n}\n\n/* Chrome, Safari, Opera */\n@-webkit-keyframes mymove {\n 50% {letter-spacing: 50px;}\n}\n\n/* Standard syntax */\n@keyframes mymove {\n 50% {letter-spacing: 50px;}\n}\n\n\n.rainbow {\n animation: colorchange 7s; /* animation-name followed by duration in seconds*/\nanimation-iteration-count: infinite;\n /* you could also use milliseconds (ms) or something like 2.5s */\n -webkit-animation: colorchange 5s; /* Chrome and Safari */\nanimation-iteration-count: infinite;\n }\n\n @keyframes colorchange\n {\n 0% {color: red;}\n 25% {color: pink;}\n 50% {color: blue;}\n 75% {color: green;}\n 100% {color: red;}\n }\n\n @-webkit-keyframes colorchange /* Safari and Chrome - necessary duplicate */\n {\n 0% {color: red;}\n 25% {color: pink;}\n 50% {color: blue;}\n 75% {color: green;}\n 100% {color: red;}\n }\n\t\n\n.passage a {\n\t/* This affects passage links */\n\tfont-weight: bold;\ncolor: black;\n\t\t animation: colorchange 10s; /* animation-name followed by duration in seconds*/\nanimation-iteration-count: infinite;\n /* you could also use milliseconds (ms) or something like 2.5s */\n -webkit-animation: colorchange 10s; /* Chrome and Safari */\nanimation-iteration-count: infinite;\n }\n\n @keyframes colorchange\n {\n 0% {color: red;}\n 25% {color: pink;}\n 50% {color: blue;}\n 75% {color: green;}\n 100% {color: red;}\n }\n\n @-webkit-keyframes colorchange /* Safari and Chrome - necessary duplicate */\n {\n 0% {color: red;}\n 25% {color: pink;}\n 50% {color: blue;}\n 75% {color: green;}\n 100% {color: red;}\n }\n\n\t.passage a:hover {\n\t/* This affects links while the cursor is over them */\n\ttext-decoration: underline;\nfont-weight: bold;\n\t\t animation: colorchange 3s; \nanimation-iteration-count: infinite;/* animation-name followed by duration in seconds*/\n /* you could also use milliseconds (ms) or something like 2.5s */\n -webkit-animation: colorchange 3s; \nanimation-iteration-count: infinite;/* Chrome and Safari */\n }\n\n @keyframes colorchange\n {\n 0% {color: red;}\n 25% {color: pink;}\n 50% {color: blue;}\n 75% {color: green;}\n 100% {color: red;}\n }\n\n @-webkit-keyframes colorchange /* Safari and Chrome - necessary duplicate */\n {\n 0% {color: red;}\n 25% {color: pink;}\n 50% {color: blue;}\n 75% {color: green;}\n 100% {color: red;}\n }\n\n\t\n}
“Addie...”\n\n“Addie! Wake up!”\n\nYou groan and open your eyes. Crouched over you is your partner, [[Subtra|SUBTRABIO]]. She looks concerned and reaches out to touch your cheek.\n\n“What...”\n\n“Get up, dummy! The Equation will get us! \n\n[["We have to get to cover!"|Two]]\n
Subtra stares in your eyes, her pupils wide. You try to stop yourself getting lost in them, deep and blue and mesmerising.\n\n“We have to stay strong,” you say. \n\n“Think of everyone you want to protect.\n\n“Think of everyone you want to save.\n\n“Think of everyone you love.”\n\nSubtra gazes back at you and squeezes your hand between hers. After a moment, she takes a deep breath and looks towards the approaching Equation.\n\n“Okay,” she says, and closes her eyes. “Okay.”\n\n“Are you ready?”\n\nShe nods, before springing to her feet, pulling you up with her. You take a deep breath.\n\n[["Transform!"|Five]]
<<if $ANSWER is "9" and $PlayerHealth > $BossHealth>> \nYou let loose with all your powers at the Equation, and as your attack slams into its weak spot you are thrown back. Slamming into the ground, you roll away to see the Equation reel back on two legs, mouth open in a cry.\n\nThe weak spot glows and lines of blue energy spread across its skin. You watch in trumphant and uncomfortable awe as the Equation solves itself, breaking down to a simple number before vanishing with a snap. The air fills with the smell of ozone.\n\nDangling in midair, as the Equation disappears Subtra falls, and you dart underneath her. You catch her in your arms and she looks at you with adoration.\n\n[['You did it, Addie!'|GoodEnd]]\n<<elseif $ANSWER is "9" and $PlayerHealth <= $BossHealth>>\nYou let loose with all your powers at the Equation, and as your attack slams into its weak spot you are thrown away from its hide. Slamming into the ground, your vision goes black.\n\nYou wake to the smell of ozone, and gradully open your eyes to see Subtra crouched over you, hand to your cheek. Something about this feels familiar, only now her other arm hangs down limply by her side, looking broken. Behind her the park is empty, the Equation gone.\n\nShe smiles through pain. [['You did it, Addie!'|OkayEnd]]\n\n<<elseif $ANSWER is "1" and $PlayerHealth >= $BossHealth>>\nYou let loose with all your powers, and your attack slams into the Equation's hide.\n\nIt doesn't penetrate. The force of your attack rebounds and sends you flying backwards. Slamming into the ground, you roll away to see the Equation reel back on two legs, mouth open and ready to attack. \n\nSuddenly, a beam of light comes from above and collides into the Equation, crushing it to the ground. Subtra lets out a cry of relief as it lets go, and you dive to catch her before she hits the ground.\n\nYou turn to see the Equation dissolve into its parts and vanish with a crack, the air filled with sick ozone and burnt tarmac. In its place, floating down from above, is Multi, your rival. They're holding the stray cat and letting it purr as they peer down at you.\n\n[['I'd expected better of you,' they call down with a cackle.|MultiEnd]]\n\n<<else>> \nYou let loose with all your powers, and your attack slams into the Equation's hide. \n\nIt doesn't penetrate.\n\nThe force of your attack rebounds and sends you flying backwards. You slam into the ground and pain arcs through your back. Your vision goes dark, and the last thing you hear is Subtra's strangled gasp cutting off with a sickening crack.\n\nYour last thought is, how could you have been wrong?\n\n[[What were the right answers?|Start]]\n<<endif>>
<<if $ANSWER is "x is -5">>You call out your answer and slam up a shield between Subtra and the blast. The Equation's powers splash into you and dissipate, scorching the ground around your feet but leaving the two of you unharmed.\n\nFrom behind your barrier, Subtra spots an unprotected part of the Equation. She calls out a spell and zaps the Equation as it finishes its attack, and strikes it in the paw. Its attack ceases as it reels backwards. <<set $BossHealth to $BossHealth - 1>><<else>>You call out your answer and try to protect yourself. The Equation's attack smacks into your shield and shatters it, sending you staggering backwards into Subtra, shielding her from the blast. \n\nAfter a few seconds, she spots an unprotected part of the Equation, and lets loose a wild spell to distract it. As the Equation's attention is taken by her attack, Subtra drags you to your feet and the two of you seek cover.<<set $PlayerHealth to $PlayerHealth - 1>><<endif>>\n\n[['Addie! Are you alright??'|Fourteen]]
Freya C / @spdrcstl