[Unlike my Twine Tuesday posts, I usually make and upload these videos within hours of starting the code for them. This means, like what happened last week, that if I don’t have time to write the code, I won’t even make it to the video part. However, I’m going to try to schedule these some in advance, so that might not be as as much as a problem going forward.]
In this video, I build on the museum setting from the last video and add some new rules. I also introduce using Basic Screen Effects to add more color to Inform 7 projects. For the next video, I will be expanding on the scenes I began in this and continue to use this setting as a basis for later stories.
"Lesson 3" by Dan Cox Include Basic Screen Effects by Emily Short. The Start of the Adventure is a scene. The Start of the Adventure begins when play begins. The Start of the Adventure ends when taking the Token. When play begins: say "You were excited to come on this field-trip until you heard [italic type]Emily[roman type] was coming too. She'd been making fun of you since you tripped in the classroom last Tuesday and you've been trying to avoid her. Yet, here you are, in her group no less, taking notes on the displays you find in this boring museum."; now the time of day is 9:16 am. Table of Time Status left central right " " "" " " " " "[blue letters]~~~ [time of day] on 7 March [Year] ~~~[default letters]" " " " " "" " " Rule for constructing the status line: fill status bar with Table of Time Status; rule succeeds. Examination Count is a number that varies. Examination Count is 0. PastTense is a truth state that varies. PastTense is false. UsedToken is a truth state that varies. UsedToken is false. Year is a number that varies. Year is 2013. After examining: increase Examination Count by 1; if Examination Count is greater than 2 and UsedToken is false: say "Something catches your eye on the floor." ; now the Token is in the Lobby. The Lobby is a room. "Various computerized displays are positioned in equal space from a centered exhibit." Emily is a woman in the Lobby. The description of Emily is "Blond hair and perfect blue eyes. You hate her.". Susan is a woman in the Lobby. The description of Susan is "Your best friend since second grade.". Mr Smith is a man in the Lobby. The description of Mr Smith is "Your boring teacher. He's been teaching History at your high school for [italic type]years[roman type].". The George Washington display is in the Lobby. The description of the George Washington display is "Facts about the 1st President of the United States:[line break]1) Established an inaugural address.[line break]2) By refusing to run for a third term, helped set the standard of a two-term maximum.". The John Adams display is in the Lobby. The description of the John Adams display is "Facts about the 2nd President of the United States:[line break]1) Was the first president to occupy the White House.[line break]2) Despite much opposition to it, refused to declare war on France in 1800.". The description of the Token is "It looks old and new at the same time. You feel drawn to pick it up.". After taking the Token: if PastTense is true: say "You feel your body start to vibrant and time seems to speed up.[line break]"; now the player is in the Lobby; now the time of day is 9:17 am; now the Year is 2013; remove the Token from play; now UsedToken is true; if PastTense is false: say "You feel your body start to vibrant and time seems to rewind. [line break]"; now the player is in the Old Lobby; now the time of day is 12:01 am; now the Token is in the Old Lobby; now the Year is 1984; now PastTense is true. The East Wing is a room. "Paintings from 1750 to 1830 decorate the walls." The East Wing is east of the Lobby. Past Present is a scene. Past Present begins when The Start of the Adventure ends. When Past Present begins: say "[italic type]What just happened?[roman type][paragraph break]Everyone is gone. Susan. Mr. Smith. Even... Emily. And everything looks weird.[line break]". The Old Lobby is a room. The description of the Old Lobby is "Metal placards and paper posters are arranged at various points along the walls."