Alabaster — 36 of 123

John Cater, Rob Dubbin, Eric Eve, Elizabeth Heller, Jayzee, Kazuki Mishima, Sarah Morayati, Mark Musante, Emily Short, Adam Thornton, and Ziv Wities

Release 1

Section 5 - Moods and the Status Window

Include Simple Graphical Window by Emily Short.

Include Collage Tools by Emily Short.

The graphics window proportion is 25. The graphics window position is g-left.

Figure of neutral expression is the file "ambiguous.png".

Figure of sympathetic expression is the file "sympa.png".

Figure of very sympathetic expression is the file "slicedambiguous.png".

Figure of pathetic expression is the file "pathetic.png".

Figure of very pathetic expression is the file "slicedpathetic.png".

Figure of angry expression is the file "angry.png".

Figure of very angry expression is the file "slicedangry.png".

Figure of close post-exorcism is the file "exorcisedclose.png".

Figure of post-exorcism is the file "exorcised3.png".

Figure of lilith eyes is the file "lilith eyes.png".

Figure of single eye is the file "right eye.png".

Figure of frame is the file "frame.png".

Figure of overlay is the file "overlay.png".

Figure of downward scribble is the file "backg1 (lefth).png".

Figure of upward scribble is the file "backg2 (righth).png".

Figure of vertical scribble is the file "backg3 (vert).png".

Figure of horizontal scribble is the file "backg4 (horiz).png".

Figure of simple tree is the file "backg6 (tree2).png".

Figure of large simple tree is the file "bigtree.png".

Figure of small simple tree is the file "tinytree.png".

Figure of rich tree is the file "backg5 (tree).png".

Figure of large rich tree is the file "bigscribbly.png".

Figure of cropped rich tree is the file "croppedscribbly.png".

Figure of tight rich tree is the file "tightscribbly.png".

Before starting the virtual machine:

change graphics background color to g-black;

now the current graphics drawing rule is the bland graphics drawing rule.

When play begins:

change graphics background color to g-white;

change the currently shown picture to the figure of neutral expression;

To decide what figure-name is the interlocutor expression:

if the current interlocutor is:

-- corpse:

if the player does not know will-burn-box:

if the player knows hart-pact:

decide on figure of tight rich tree;

decide on figure of rich tree;

if the player knows hart-omniscience-revealed:

decide on figure of cropped rich tree;

if the player knows happy-name-known:

decide on figure of large rich tree;

decide on figure of rich tree;

-- new-Snow-White:

decide on figure of post-exorcism;

-- Snow White:

if the player knows Snow-white-possessed:

decide on the figure of lilith eyes;

if the mood of Snow White is:

-- menacing:

decide on figure of angry expression;

-- aggressive:

decide on figure of angry expression;

-- furious:

decide on figure of very angry expression;

-- needy:

decide on figure of pathetic expression;

-- whiny:

decide on figure of very pathetic expression;

-- harmless:

decide on figure of neutral expression;

-- warm:

decide on figure of very sympathetic expression;

-- weird:

decide on figure of sympathetic expression;

A last background drawing rule when the player recollects whether you could be such a man:

if anger is greater than 3:

center the figure of horizontal scribble vertically;

if anger is greater than 2:

center the figure of upward scribble vertically;

if anger is greater than 1:

center the figure of vertical scribble vertically;

if anger is greater than 0:

center the figure of downward scribble vertically;

rule succeeds.

A last background drawing rule:

if the current interlocutor is Snow White:

if the player does not know snow-white-possessed:

follow the knowledge background rules for Snow White;

otherwise if the player does not recollect what Lilith wants again:

follow the knowledge background rules for Lilith;

if the current interlocutor is corpse:

follow the knowledge background rules for corpse;

if the current interlocutor is new-snow-white:

follow the knowledge background rules for new-snow-White;

The knowledge background rules are an object-based rulebook.

A knowledge background rule for Snow White when the player knows first-vampire-accusation:

center the figure of vertical scribble vertically.

A knowledge background rule for Snow White when the player knows second-vampire-accusation:

center the figure of horizontal scribble vertically.

A knowledge background rule for Snow White when the player knows possible-blood-drinking:

center the figure of downward scribble vertically.

A knowledge background rule for Snow White when the player knows blood-sundering:

center the figure of upward scribble vertically.

A knowledge background rule for Snow White when the player knows pact-exists and player does not know haven-location:

plant forest.

To plant forest:

if the player does not know servant-dwarrows:

truncate collage list to 0 entries;

repeat with N running from 1 to 3:

add figure of simple tree to collage list;

draw collage list at frame edge, top;

truncate collage list to 0 entries;

repeat with N running from 1 to 2:

add figure of rich tree to collage list;

draw collage list at frame edge, top.

Definition: a quip is player-recollected:

if it is NPC-directed:

no;

if the player recollects it:

yes;

no.

To plant narrow-forest:

truncate collage list to 0 entries;

let total be the number of unrestrictive player-recollected quips which quip-supply the corpse;

if total is 0:

make no decision;

collage total trees;

[let total be total - 1;

collage total trees.]

To collage (total - a number) trees:

repeat with N running from 1 to total:

if total is greater than 10:

add figure of small simple tree to collage list;

otherwise if total is 1:

add figure of large simple tree to collage list;

otherwise:

add figure of simple tree to collage list;

stutter collage list in graphics window 3 times, horizontally.

A knowledge background rule for Snow White when the player knows apples-for-men:

center the figure of large simple tree vertically.

A knowledge background rule for new-snow-white when the player does not know haven-location:

plant forest.

A knowledge background rule for corpse when the player knows you-were-king:

repeat with N running from 1 to 20:

add figure of small simple tree to collage list;

inconsistently randomize collage list in graphics window;

rule succeeds.

A knowledge background rule for corpse when the player knows truth-about-souls:

center the figure of upward scribble vertically.

[A knowledge background rule for corpse when the player knows hart-omniscience-revealed:

center the figure of horizontal scribble vertically.]

A knowledge background rule for corpse when the player knows vampirism-revealed:

center the figure of downward scribble vertically.

[A knowledge background rule for corpse when the player knows blood-sundering:

center the figure of upward scribble vertically.]

A knowledge background rule for corpse when the player knows happy-name-known:

if the player knows hart-pact-proposed and the player does not know will-burn-box:

make no decision;

plant narrow-forest.

A knowledge background rule for Lilith when the player knows murderous-lilith:

center the figure of large simple tree vertically.

A knowledge background rule for Lilith when the player knows misses-adam:

center the figure of rich tree vertically.

[A knowledge background rule when the current quip mentions the roots:

center the figure of simple tree vertically.]

A main drawing rule when the current interlocutor is corpse:

if the player knows will-burn-box:

do nothing;

otherwise:

center the interlocutor expression vertically;

rule succeeds.

A main drawing rule when the current interlocutor is new-Snow-White and insanity count > 0 (this is the madness drawing rule):

truncate collage list to 0 entries;

repeat with N running from 1 to insanity count:

add interlocutor expression to collage list;

draw collage list at frame edge, bottom;

rule succeeds.

A main drawing rule when the player does not know snow-white-possessed:

if the player knows demon-possession or the player knows queen-invoked-lilith:

justify figure of very angry expression.

A main drawing rule when the current interlocutor is Snow White:

if Snow White is warm or Snow White is weird or Snow White is furious:

justify the interlocutor expression;

rule succeeds.

A main drawing rule (this is the moody drawing rule):

let depth be 40 - (scariness * 5);

if depth > 65:

let depth be 65;

if depth < 45:

let depth be 45;

inset interlocutor expression in graphics window at depth percent vertical by 0 percent horizontal.

A border drawing rule (this is the framing rule):

if the player knows hart-pact-proposed and the player does not know will-burn-box:

make no decision;

if the player knows snow-white-possessed and the player recollects what Lilith wants again and the current interlocutor is snow white:

make no decision;

if the current interlocutor is not snow white or the mood of Snow White is not harmless or the player recollects you-promised-me:

center the figure of frame vertically with g-white padding.

[A last border drawing rule when the player knows hart-pact-proposed and the player does not know will-burn-box:

center the figure of overlay vertically. ]

A last border drawing rule when the current quip mentions mirror or the current quip mentions Lilith:

if the current interlocutor is Snow White and the player does not know snow-white-possessed:

center the figure of overlay vertically.

A last border drawing rule when the current quip mentions demons or the current quip mentions Lilith:

if the player recollects what powers the Queen dabbles and the player does not know snow-white-possessed:

center the figure of single eye at top of frame.

To center (image - a figure-name) at top of frame:

let image width be the centered width of the image;

let image height be the centered height of the image;

let w be (width of the graphics window - centered width of the image) / 2;

let h be height of the graphics window - (centered height of the image / 3);

let h be (h - centered height of the figure of frame) / 2;

draw image in graphics window at w from the left by h from the top with width image width by height image height;

To draw (L - a list of figure-names) at frame edge, top or bottom:

if top:

let H be the horizontal scaling factor of L;

let index width be 0;

repeat with image running through L:

let new width be the width of the image * H;

let new width be new width / 100;

let new height be the height of the image * H;

let new height be new height / 100;

let height offset be the (height of the graphics window - centered height of the figure of frame) / 2;

draw image in graphics window at index width from the left by height offset from top with width new width by height new height;

increase index width by new width;

otherwise:

let H be the horizontal scaling factor of L;

let index width be 0;

repeat with image running through L:

let new width be the width of the image * H;

let new width be new width / 100;

let new height be the height of the image * H;

let new height be new height / 100;

let height offset be the (height of the graphics window + centered height of the figure of frame) / 2;

let height offset be the height offset - the new height;

draw image in graphics window at index width from the left by height offset from top with width new width by height new height;

increase index width by new width.

This is the sundering-ended collage rule:

follow the bland graphics drawing rule;

center the figure of close post-exorcism vertically;

center the figure of frame vertically with g-white padding.

[A border drawing rule when the player knows possible-blood-drinking (this is the shading for sin rule):

if the current interlocutor is not Snow White:

make no decision;

if the player knows snow-white-possessed:

make no decision;

center the figure of overlay vertically. ]

[A main drawing rule when the current interlocutor is Snow White and the current quip mentions the mirror (this is the mirrored drawing rule):

let vertical midpoint be the height of the graphics window divided by 2;

let image be mirrored interlocutor expression;

let image width be the width of the image;

let image height be the height of the image;

let w be 0;

let h be the vertical midpoint;

let total width be (w + image width);

if total width > the width of the graphics window:

let former image width be image width;

let image width be the width of the graphics window - w;

let image height be image width * image height;

let image height be image height / former image width;

let total height be (h + image height);

if total height > the height of the graphics window:

let former image height be image height;

let image height be the height of the graphics window - h;

let image width be image height * image width;

let image width be image width / former image height;

draw image in graphics window at w from the left by h from the top with width image width by height image height;

fog window;

let the image be interlocutor expression;

let h be the vertical midpoint - image height;

draw image in graphics window at w from the left by h from the top with width image width by height image height;

rule succeeds.]

[A main drawing rule when the current interlocutor is Snow White and moodiness counter is greater than 1 (this is the creepy drawing rule):

if a random chance of 1 in 3 succeeds:

add interlocutor expression to collage list;

otherwise:

add intense expression to collage list;

randomize collage list in graphics window;

let fallback be the remainder after dividing the turn count by 5;

if fallback is 0:

decrease moodiness counter by 1;

rule succeeds.

A main drawing rule when the current interlocutor is Snow White and anger is greater than 2 (this is the furious drawing rule):

blank graphics window to g-black;

inset figure of angry slice in graphics window at 0 from the left by 0 from the top;

rule succeeds.

To fog window:

let temporary picture be the currently shown picture;

change the currently shown picture to the figure of white gradient;

follow the fully scaled drawing rule;

change the currently shown picture to the temporary picture.

This is the ripped left rule:

loop figure of ripped left side in graphics window, at left.

This is the ripped right rule:

loop figure of ripped right side in graphics window, at right.

A first border drawing rule when the current interlocutor is Snow White:

follow the spatter rules.

The spatter rules are a rulebook.

A spatter rule when the player knows possible-blood-drinking:

inset figure of ink splatter in graphics window at 60 percent vertical by 0 percent horizontal;

A spatter rule when the player knows blood-sundering:

inset figure of ink blot in graphics window at 20 percent vertical by 20 percent horizontal; ]

[A border drawing rule when the player knows snow-white-possessed and the current interlocutor is Snow White:

follow the ripped left rule.

A new-conversation rule: [clear out the collage when we talk to someone new]

change the last mood stare to the intense expression;

change the last mood image to the interlocutor expression;]