|
- stories.push({
- id: "fen-snack",
- name: "Fen's Food",
- sounds: [
- "sfx/digested-test.ogg",
- "loop/fen-stomach.ogg",
- "loop/fen-intestines.ogg",
- "loop/fen-bowels.ogg"
- ],
- intro: {
- start: "stomach",
- setup: state => {
- state.player.stats.health = {name: "Health", value: 100};
- state.player.stats.stamina = {name: "Stamina", value: 100};
-
- startTimer({
- id: "digestion",
- func: state => {
- const location = state.player.location;
-
- let bonus = state.player.flags.submission ? 10 : 1;
-
- if (location.startsWith("stomach")) {
- state.player.stats.health.value -= 1 * bonus;
- }
-
- if (location.startsWith("intestines")) {
- state.player.stats.health.value -= 0.75 * bonus;
- }
-
- if (location.startsWith("bowels")) {
- state.player.stats.health.value -= 0.5 * bonus;
- }
-
-
- if (state.player.stats.health.value <= 0) {
- state.player.stats.health.value = 0;
-
- if (location.startsWith("stomach")) {
- goToRoom("digested-stomach", state);
- }
-
- if (location.startsWith("intestines")) {
- goToRoom("digested-intestines", state);
- }
-
- if (location.startsWith("bowels")) {
- goToRoom("digested-bowels", state);
- }
-
- return false;
- }
- return true;
- },
- delay: 1000,
- loop: true,
- classes: [
- "alive"
- ]
- }, state);
-
- startTimer({
- id: "stamina-regen",
- func: state => {
- state.player.stats.stamina.value += 1;
-
- if (state.player.stats.stamina.value > 100) {
- state.player.stats.stamina.value = 100;
- }
-
- return true;
- },
- delay: 500,
- loop: true,
- classes: [
- "alive"
- ]
- }, state);
- },
- intro: state => {
- print(["Hot, slimy walls ripple and squeeze, the stomach of your captor stewing you in a churning stew of chyme and acid. You've only been trapped under the crux's pelt for a few minutes...and it doesn't seem like you'll last much longer than that, either."]);
- }
- },
- refresh: state => {
- setBackgroundColor(50 - state.player.stats.health.value/2, 0, 0)
- },
- world: {
- stomach: {
- id: "stomach",
- name: "Stomach",
- desc: "A hot, wet, steamy prison.",
- move: (room, state) => {
- print(["You slide into Fen's humid stomach."]);
- },
- enter: (room, state) => {
- playLoop("loop/fen-stomach.ogg");
- },
- exit: (room, state) => {
- stopLoop("loop/fen-stomach.ogg");
- },
- hooks: [
-
- ],
- actions: [
- {
- name: "Rub",
- desc: "Knead on the muscular folds that surround your tasty little body",
- execute: (room, state) => {
- state.player.stats.stamina.value -= 15;
- state.player.stats.stamina.value = Math.max(0, state.player.stats.stamina.value);
- print(["You rub all over your prison's walls. Fen's stomach gurgles in response."]);
- }
- },
- {
- name: "Submit",
- desc: "Let Fen digest you",
- execute: (room, state) => {
- state.player.flags.submission = true;
- print(["You slump back in the crux's stomach, allowing its powerful fluids to break you down..."]);
- },
- show: [
- (room, state) => {
- return !state.player.flags.submission;
- }
- ]
-
- }
- ],
- exits: {
- "down": {
- "target": "intestines",
- "desc": "Push yourself deeper into the crux",
- move: (room, state) => {
- print(["You manage to push yourself down through the valve at the base of the crux's fetid stomach."]);
- },
- hooks: [
- (room, exit, state) => {
- let stamina = state.player.stats.stamina.value;
- let escape;
- if (Math.random() > stamina/100) {
- stamina -= 50;
- print(["Fen's stomach clenches and ripples, smothering your face in wet flesh and keeping you nice and trapped."]);
- escape = false;
- } else {
- stamina -= 25;
- escape = true;
- }
- stamina = Math.max(stamina, 0)
- state.player.stats.stamina.value = stamina;
- return escape;
- }
- ],
- conditions: [
- (room, state) => {
- return !state.player.flags.submission;
- }
- ]
- }
- }
- },
- intestines: {
- id: "intestines",
- name: "Intestines",
- desc: "Labyrinthine guts, winding on and on...",
- move: (room, state) => {
- print(["Your squirming body glides into the crux's tight, snaking guts."]);
- },
- enter: (room, state) => {
- playLoop("loop/fen-intestines.ogg");
- },
- exit: (room, state) => {
- stopLoop("loop/fen-intestines.ogg");
- },
- exits: {
- "up": {
- target: "stomach",
- desc: "Writhe back into Fen's roiling stomach",
- conditions: [
- (room, state) => {
- return !state.player.flags.submission;
- }
- ]
- },
- "down": {
- target: "bowels",
- desc: "Push yourself even deeper into your predator's body",
- conditions: [
- (room, state) => {
- return !state.player.flags.submission;
- }
- ]
- }
- },
- hooks: [
-
- ],
- actions: [
- {
- name: "Rub",
- desc: "Knead on the muscular folds that surround your tasty little body",
- execute: (room, state) => {
- state.player.stats.stamina.value -= 20;
- state.player.stats.stamina.value = Math.max(0, state.player.stats.stamina.value);
- print(["You rub all over your prison's walls. Fen's guts barely move."]);
- }
- },
- {
- name: "Submit",
- desc: "Let Fen digest you",
- execute: (room, state) => {
- state.player.flags.submission = true;
- print(["You slump back in the crux's intestines, letting the winding, worryingly-tight guts take you in..."]);
- },
- show: [
- (room, state) => {
- return !state.player.flags.submission;
- }
- ]
-
- }
- ]
- },
- bowels: {
- id: "bowels",
- name: "Bowels",
- desc: "Cavernous bowels, rippling and squeezing over your bare skin",
- move: (room, state) => {
- print(["You enter the beast's humid bowels, taking shallow, stifled breaths of the musky air."]);
- },
- enter: (room, state) => {
- playLoop("loop/fen-bowels.ogg");
- },
- exit: (room, state) => {
- stopLoop("loop/fen-bowels.ogg");
- },
- exits: {
- "up": {
- target: "intestines",
- desc: "Squirm up higher",
- conditions: [
- (room, state) => {
- return !state.player.flags.submission;
- }
- ]
- }
- },
- hooks: [
-
- ],
- actions: [
- {
- name: "Rub",
- desc: "Knead on the muscular folds that surround your tasty little body",
- execute: (room, state) => {
- state.player.stats.stamina.value -= 50;
- state.player.stats.stamina.value = Math.max(0, state.player.stats.stamina.value);
- print(["You rub all over your prison's walls. Fen's bowels clench in on you as he rurrs with pleasure."]);
- }
- },
- {
- name: "Submit",
- desc: "Let Fen digest you",
- execute: (room, state) => {
- state.player.flags.submission = true;
- print(["You slump back in the crux's bowels, yielding to their immense pressure..."]);
- },
- show: [
- (room, state) => {
- return !state.player.flags.submission;
- }
- ]
-
- }
- ]
- },
- "digested-stomach": {
- id: "digested-stomach",
- name: "Fen's Hips",
- desc: "You look good on him, at least~",
- enter: (room, state) => {
- playLoop("loop/fen-intestines.ogg");
- playSfx("sfx/digested-test.ogg");
- stopClassTimers("alive", state);
- print(["You slump down in the acidic pit, curling up as it begins to churn you down to chyme. Fen's stomach snarls and bubbles for the next few minutes...and then you're gone~",newline,"Nothing's left but a bit of padding on your predator's hips..."]);
- }
- },
- "digested-intestines": {
- id: "digested-intestines",
- name: "Fen's Belly",
- desc: "Just a little addition to the crux's belly - one that won't last for long.",
- enter: (room, state) => {
- playLoop("loop/fen-intestines.ogg");
- playSfx("sfx/digested-test.ogg");
- stopClassTimers("alive", state);
- print(["Fen's intestines clench and squeeze, melting you down into slop and soaking you up like a sponge.",newline,"Nothing's left but a bit of padding on your predator's hips..."]);
- }
- },
- "digested-bowels": {
- id: "digested-bowels",
- name: "Fen's Ass",
- desc: "A little extra heft on the predator's posterior.",
- enter: (room, state) => {
- playLoop("loop/fen-intestines.ogg");
- playSfx("sfx/digested-test.ogg");
- stopClassTimers("alive", state);
- print(["A powerful ripple of muscle pins you in a vice-grip of flesh - and within seconds, you're part of Fen's bowels.",newline,"Nothing's left but a bit of padding on your predator's hips..."]);
- }
- }
- }
- });
|