Guest User

Inform 7 "Bentley"

a guest
May 5th, 2026
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | Source Code | 0 0
  1. "Bentley" by Greenosaur
  2.  
  3. The street is a room.
  4.  
  5. The cage is a enterable container in the street.
  6.  
  7. The Bentley is a vehicle in the street.
  8. Understand "car" or "vehicle" as the Bentley.
  9.  
  10. A vehicle can be moving or stopped. A vehicle is usually stopped.
  11.  
  12. Definition: A container is occupied rather than unoccupied if it encloses the player.
  13. Definition: A thing is unenterable if it is not enterable.
  14.  
  15. Driving is an action applying to one thing.
  16. Understand "drive [something]" as driving.
  17.  
  18. Does the player mean driving a vehicle: it is likely.
  19. Does the player mean driving an occupied thing: it is very likely.
  20. Does the player mean driving an unenterable thing: it is very unlikely.
  21.  
  22. Check an actor driving:
  23. unless the noun is a vehicle, say "[The actor] [can't] drive that." instead.
  24.  
  25. Check an actor driving:
  26. if the noun encloses the actor, continue the action;
  27. if the noun is enterable, try the actor entering the noun;
  28. unless the noun encloses the actor, say "[The actor] [can't] drive [the noun]." instead;
  29.  
  30. Carry out an actor driving:
  31. now the noun is moving.
  32.  
  33. To speed is a verb.
  34. Report an actor driving:
  35. say "[The actor] [speed] off in [the noun]."
  36.  
  37.  
  38. Check an actor exiting from a moving vehicle:
  39. say "[The actor] [can't] get out while [the container exited from] is moving!" instead.
  40.  
  41.  
  42. Disembarking from is an action applying to one thing.
  43.  
  44. Understand "get out of [something]" or "exit [something]" or "leave [something]" as disembarking from.
  45.  
  46. Check an actor disembarking from something:
  47. unless the actor is enclosed by the noun, say "[The actor] [aren't] in [the noun]." instead.
  48.  
  49. Last check an actor disembarking from something:
  50. silently try the actor exiting;
  51. if rule failed, stop the action;
  52.  
  53. Report an actor disembarking from something:
  54. say "[The actor] [get] out of [the noun].";
  55.  
  56. Report an actor disembarking from a vehicle:
  57. say "[The actor] [open] the door and get out of [the noun]." instead.
  58.  
  59.  
Advertisement
Add Comment
Please, Sign In to add comment