inform-class

[DORMANT] the products of a summer text adventures course
git clone git://git.figbert.com/inform-class.git
Log | Files | Refs | README | LICENSE

story.ni (2385B)


      1 "Challenge Three" by FIGBERT
      2 
      3 A person can be sad or happy, the default is sad.
      4 
      5 Example Location is a room. "A white cube, expaning on to the north, south, east, and west."
      6 
      7 A man called Jonny is here. Jonny can be attached or free.
      8 
      9 East of Example Location is a room called Example Location – East. The description of Example Location East is "More blank cube."
     10 
     11 A button is in Example Location – East. "A pristine blue button is attached to the floor here." The description of the button is "A dark blue button with the text 'END SIMULATION' printed on it in thick, white letters."
     12 
     13 Instead of pushing the button in Example Location – East:
     14 	say "[bold type]Beginning shutdown process...[roman type][line break]Defragging...[line break]Clearing out temporary directories...[line break]Cleaning user cache...[line break]Spinning down...";
     15 	end the story.
     16 
     17 [Holding hands section adapted from Byron]
     18 Holding hands is an action applying to one visible thing. Understand "hold [someone]'s hand" and "hold hands with [someone]" and "hold hands" as holding hands.
     19 
     20 Check holding hands:
     21 	if the noun is not a person, say "The [noun] does not have hands to hold!"
     22 
     23 Carry out holding hands:
     24 	say "You take their hand in yours.";
     25 	now the noun is attached.
     26 
     27 Letting go is an action applying to one visible thing. Understand "let [someone]'s hand go" and "let go of [someone]" and "let go" and "stop holding hands with [someone]" as letting go.
     28 
     29 Check letting go:
     30 	if the noun is not a person, try dropping the noun;
     31 	if the noun is free:
     32 		say "You're not holding their hand!";
     33 		stop the action.
     34 
     35 Carry out letting go:
     36 	say "You loosen your grip, and slide your hand out from theirs.";
     37 	now the noun is free.
     38 
     39 Every turn:
     40 	if Jonny is attached:
     41 		if the location of Jonny is not the location of the player:
     42 			let the way be the best route from the location of Jonny to the location of the player, using doors;
     43 			try Jonny going the way;
     44 		now Jonny is happy;
     45 	otherwise:
     46 		now Jonny is sad;
     47 	[Happiness section]
     48 	If Jonny is happy:
     49 		say "Jonny has a nice smile on his face, and he's bopping his head up and down to music that you can't hear.";
     50 	otherwise:
     51 		If the location of Jonny is the location of the player:
     52 			say "Jonny's has a confusing look on his face, almost as if he's trying not to cry.";
     53 		Otherwise:
     54 			say "You can hear Jonny humming a morose tune the room over."