Skip to content

Instantly share code, notes, and snippets.

@jbz
Created March 4, 2012 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbz/1975112 to your computer and use it in GitHub Desktop.
Save jbz/1975112 to your computer and use it in GitHub Desktop.
Combine test
"test" by "custo"
Combining it with is an action applying to two carried things.
Understand "combine [something] and [something]" as combining it with.
Understand "combine [something] with [something]" as combining it with.
Understand the command "attach" as something new. Understand "attach [something] to [something]" as combining it with.
The combining it with action has an object called the item built.
Setting action variables for combining something with something:
let X be a list of texts;
add "[the printed name of the noun]" to X;
add "[the printed name of the second noun]" to X;
say "X is presort: [X in brace notation].";
sort X;
repeat through the Table of Outcome Objects:
let Y be the component list entry;
say "Y is presort: [Y in brace notation].";
sort Y;
say "X is: [X in brace notation].";
say "Y is: [Y in brace notation].";
if "[X]" exactly matches the text "[Y]":
say "match![line break]";
now the item built is the result entry.
Check combining it with:
say "The item built lookup is: [the item built].";
if the item built is nothing, say "[The noun] and [the second noun] don't make anything useful." instead;
if the item built is not in limbo, say "That's not available." instead.
Carry out combining it with:
move the item built to the holder of the noun;
remove the noun from play;
remove the second noun from play.
Report combining it with:
say "You now have [an item built]!".
A memory chip is a kind of thing.
A broadcast chip is a kind of thing.
The player is carrying a memory chip and a broadcast chip.
Limbo is a container. Limbo contains a Klein Blaster.
The test chamber is a room. The description is "GlaDOS is watching you."
The player is in the test chamber.
Table of Outcome Objects
component list result
{"memory chip", "broadcast chip"} Klein Blaster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment