Hello! I’m creating an inform 7 game based off being a phone that can do things like vibrate, notify, and search. Currently I’m experiencing problems getting the values I want from notifying and vibrating about nouns in the room.
vibrating is an action applying to one thing.
Understand “vibrate at [something]” as vibrating.
Understand “vibrate about [something]” as vibrating.
Instead of notifying:
if the noun is gum,
say “Kyle hates gum and vomits. That was drastic. Perhaps you won’t point this out next time.”;
decrease Upgrade Desire by 5;
now notifyFirst is true;
if the noun is magazines,
say “Kyle loves magainzes! How did you know?”;
now Kyle has the magazines;
now notifyFirst is true;
if the noun is chips,
say “Kyle likes chips usually, but doesn’t really want any right now.”;
now notifyFirst is true;
if the noun is pizza,
say “You: There is pizza on the floor! It’s made of cheese, sauce, and some toppings! Would you like to order?[line break] Kyle: Dude, that’s sick! But does REALLY know about the sauce?”;
increment the smooglecount;
if the noun is beer,
say “You: Beer is widely consumed! You seem to like it! Order more?[line break] Charlie: I don’t know if your phone should be supporting drinking like that…”;
increment the smooglecount;
if the noun is trash,
say “You: Trash is unwanted. Kind of like you! Kyle: Wow. Rude.”;
decrease upgrade desire by 2;
increment the smooglecount;
if the noun is cheese,
say “You: Cheese is a food made from the pressed curds of milk. Charlie: LAME”;
decrease upgrade desire by 5;
increment the smooglecount;
if the noun is sauce,
say “You: YOUR GIRL [bold type]KNOWS[roman type] I’VE GOT THE SAUCE[line break]Kyle: THAT’S FUCKING HILARIOUS.”;
increase upgrade desire by 2;
increment the smooglecount;
if the noun is toppings,
say “You: Pepperoni! Mushrooms! Avocado! Asparagus! Anchovies! Olives! Pineapple! Ham! Sausa–[line break]Kyle: ALRIGHT ALRIGHT ALRIGHT PRIXEL STOP”;
decrease upgrade desire by 5;
increment the smooglecount;
if smooglecount is greater than 4,
say “Charlie: Well, that’s all cool, but it’s no iPear. I’m gonna go to the kitchen.[line break]You notice Charlie is walking right into a pile of beers. Give him a buzz![line break]”;
say “Smooglecount is [smooglecount]”;
say “Upgrade Desire is [upgrade desire]”;
now Charliescene is true;
if smooglecount is greater than 7,
say “Charlie walks into the beers and trips, rolling his ankle and falling into a door. Charlie: SON OF A BITCH. Your damn phone got me all distracted dude. You know, for a phone that knows so much about what’s going on around it you’d think it could warn a brotha too.”;
decrease upgrade desire by 5;
now Charliescene is true;
Entering “notify about gum / notify about pizza” into the console yields this output:
notify about gum
Kyle hates gum and vomits. That was drastic. Perhaps you won’t point this out next time.
Charlie: Well, that’s all cool, but it’s no iPear. I’m gonna go to the kitchen.
You notice Charlie is walking right into a pile of beers. Give him a buzz!
Smooglecount is 6Upgrade Desire is 85
Kyle purchases his goods - including you - and delightfully walked out the door. You overheard, however, that after a year he will have the opportunity to upgrade you or get a new phone. However, that won’t matter! He loves you!
End of Prologue.
notify about pizza
You: There is pizza on the floor! It’s made of cheese, sauce, and some toppings! Would you like to order?
Kyle: Dude, that’s sick! But does REALLY know about the sauce?
Charlie: Well, that’s all cool, but it’s no iPear. I’m gonna go to the kitchen.
You notice Charlie is walking right into a pile of beers. Give him a buzz!
Smooglecount is 12
Upgrade Desire is 65
Charlie walks into the beers and trips, rolling his ankle and falling into a door. Charlie: SON OF A BITCH. Your damn phone got me all distracted dude. You know, for a phone that knows so much about what’s going on around it you’d think it could warn a brotha too.
Any thoughts? I’m certain that the values are all being incremented, but why does it go through and check each noun? I thought it was only supposed to check the noun that you are using in an if statement?
Thanks!