Advertisement
Guest User

abandoned wendigo text adventure - Inform 7 project

a guest
Feb 5th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.75 KB | None | 0 0
  1. "Wendigo" by wisprabbit
  2.  
  3. VOLUME - DEBUG - Not for release
  4.  
  5. Book - Run property checks at start of play
  6.  
  7. [Adapted from Inform Documentation example 2, "Bic"]
  8.  
  9. When play begins (this is the run property checks at the start of play rule):
  10. repeat with item running through rooms:
  11. if description of the item is "":
  12. say "[item] has no description.";
  13. repeat with item running through things:
  14. if description of the item is "":
  15. say "[item] has no description."
  16.  
  17. Book - Report monster state
  18.  
  19. Every turn (this is the report monster state rule):
  20. say "(Monster location: [location of the monster]; [nearmonstertruth]state: [behaviour of the monster].)[paragraph break]".
  21. To say nearmonstertruth:
  22. if near monster, say "monster considered nearby; ".
  23.  
  24. The report monster state rule is listed after the monster AI rule in the every turn rules.
  25.  
  26. Book - God mode
  27.  
  28. Every turn (this is the god mode rule):
  29. now the health of the player is 999.
  30.  
  31. VOLUME - GAME SETTINGS
  32.  
  33. Book - Extensions
  34.  
  35. Book - Status line
  36.  
  37. [Adapted from Inform documentation example 350, "Ways Out"]
  38.  
  39. When play begins:
  40. now left hand status line is "Exits: [exit list]";
  41. now right hand status line is "[location]".
  42.  
  43. To say exit list:
  44. let place be location;
  45. repeat with way running through directions:
  46. let place be the room way from the location;
  47. if place is a room, say " [way]".
  48.  
  49. Rule for printing the name of a direction (called the way) while constructing the status line:
  50. choose row with a heading of the way in the Table of Abbreviation;
  51. say "[shortcut entry]".
  52.  
  53. Table of Abbreviation
  54. heading shortcut
  55. north "N"
  56. northeast "NE"
  57. northwest "NW"
  58. east "E"
  59. southeast "SE"
  60. south "S"
  61. southwest "SW"
  62. west "W"
  63. [up "U"
  64. down "D"
  65. inside "IN"
  66. outside "OUT"]
  67.  
  68. Book - Game-wide variables
  69.  
  70. Part - Health
  71.  
  72. A person has a number called health.
  73. The health is usually 3.
  74.  
  75. Book - New kinds
  76.  
  77. Part - Weapons
  78.  
  79. A weapon is a kind of thing.
  80.  
  81. Part - Cut of meat
  82.  
  83. [See Campsite room description]
  84.  
  85.  
  86. Book - New actions
  87.  
  88. Part - Attacking x with y - redefining the attack command
  89.  
  90. [Adapted from Inform Documentation example 293, "Lanista 2"]
  91.  
  92. Understand the commands "attack" and "punch" and "destroy" and "kill" and "murder" and "hit" and "thump" and "break" and "smash" and "torture" and "wreck" and "cut" and "slice" and "prune" and "chop" as something new.
  93.  
  94. Attacking it with is an action applying to one visible thing and one carried thing. Understand "attack [someone] with [something preferably held]" as attacking it with.
  95.  
  96. Understand the commands "punch" and "destroy" and "kill" and "murder" and "hit" and "thump" and "break" and "smash" and "torture" and "wreck" and "cut" and "slice" and "prune" and "chop" as "attack".
  97.  
  98. Check an actor attacking something with something (this is the can't attack with something that isn't a weapon rule):
  99. if the second noun is not a weapon:
  100. if the actor is the player, say "[The second noun] won't work as a weapon.";
  101. stop the action.
  102.  
  103. Check an actor attacking something with something (this is the can't attack a non-person rule):
  104. if the noun is not a person:
  105. if the actor is the player, say "[The noun] is not your enemy right now.";
  106. stop the action.
  107.  
  108. Check an actor attacking something with something (this is the can't attack yourself rule):
  109. if the noun is the player:
  110. if the actor is the player, say "You haven't given up yet.";
  111. stop the action.
  112.  
  113. Report attacking someone with something (this is the normal attacking report rule):
  114. say "You attack [the noun] with [the second noun]!" instead.
  115. [This shouldn't appear in the finished game, as there won't be many weapons and I intend to write specialised descriptions for the likely attacking scenarios]
  116.  
  117. Part - Kissing x
  118.  
  119. [Don't need to do this, but might be funny]
  120.  
  121.  
  122. VOLUME - GAME WORLD
  123.  
  124. BOOK - ENTITIES
  125.  
  126. Part - Player
  127.  
  128. The player is in Campsite.
  129.  
  130. Instead of examining the player:
  131. try taking inventory.
  132.  
  133. Chapter - Tomahawk
  134.  
  135. The player carries a tomahawk.
  136. The tomahawk is a weapon.
  137.  
  138. Description of the tomahawk is "A small hatchet."
  139. Understand "axe" or "hatchet" as the tomahawk.
  140.  
  141. Instead of throwing the tomahawk at the monster:
  142. try attacking the monster with the tomahawk.
  143.  
  144. Part - Monster
  145.  
  146. The monster is an animal.
  147. The monster is in Lair.
  148. The monster is neuter.
  149.  
  150. Understand "wendigo" or "wendifaux" or "yeti" or "snowman" or "bigfoot" or "sasquatch" or "beast" or "creature" or "thing" as the monster.
  151.  
  152. Description of the monster is "Like you, but colder. [if the monster is feasting]It is focused on its meal, and paying you no mind for now[otherwise]It is pursuing you[end if]."
  153.  
  154. Chapter - Monster behaviour states + variables
  155.  
  156. Behaviour is a kind of value. The behaviours are chasing, feasting, and aggressive.
  157.  
  158. The monster has a behaviour. The monster is chasing.
  159.  
  160. The feast time is a number that varies.
  161.  
  162. Near monster is a truth state that varies.
  163. To decide if near monster:
  164. if the location of the monster is the location of the player, decide on true.
  165.  
  166. [Let nearmonster be whether or not the location of the monster is the location of the player.]
  167.  
  168. Chapter - Monster AI
  169.  
  170. Every turn (this is the monster AI rule):
  171. if the monster is feasting: [monster eating meat overrides other behaviour]
  172. decrease the feast time by 1;
  173. if the feast time is 0:
  174. now the monster is chasing;
  175. if near monster, say "The monster finishes devouring the meat.";
  176. otherwise:
  177. if near monster, say "The monster [one of]tears another chunk off the meat[or]continues to feast[purely at random].";
  178. otherwise if the monster can touch a cut of meat (called the feast) which is not carried by a person: [monster distracted by meat]
  179. move the feast to the monster;
  180. try the monster eating the feast;
  181. now the feast time is 3;
  182. now the monster is feasting;
  183. otherwise if near monster: [monster attacking player]
  184. now the monster is aggressive;
  185. if a random chance of 2 in 3 succeeds:
  186. decrease the health of the player by 1;
  187. if the health of the player is less than 1:
  188. say "The monster strikes once more, and this time you do not have the energy left to dodge. Its claw splits you open.";
  189. end the story saying "You have been killed";
  190. otherwise:
  191. say "The monster attacks! Its [one of]claws[or]teeth[at random] [one of]scratch[or]tear[or]rip at[at random] your [one of]arm[or]flesh[at random] as you scramble to get away[if the health of the player is 1]. You can't take much more of this[end if].";
  192. otherwise:
  193. say "The monster [one of]brays[or]snarls[or]grunts[or]snorts[at random].";
  194. otherwise: [monster searching for player]
  195. now the monster is chasing;
  196. let the way be the best route from the location of the monster to the location of the player;
  197. try the monster going the way.
  198.  
  199. Report the monster eating something:
  200. say "The monster [one of]smells[or]spies[purely at random] [a noun], snatches it, and starts to [one of]eat it[or]devour it[or]tear it apart[at random]." instead.
  201.  
  202.  
  203. BOOK - REGIONS
  204.  
  205. Part - Forest
  206.  
  207. ForestRegion is a region.
  208.  
  209. ForestCliff, CliffBottom, ForestC1, Campsite and ForestC3 are in ForestRegion.
  210.  
  211. Chapter - Trees backdrop
  212.  
  213. The trees are a backdrop in ForestRegion.
  214.  
  215. Understand "tree" or "forest" or "woods" or "maple" as the trees.
  216.  
  217. Description of the trees is "A beautiful vibrant red in the summer, the trees now stand skeletal and dormant,."
  218.  
  219. Instead of climbing the trees:
  220. say "Too dangerous to climb. It is almost as tall as any of these trees, and could easily pluck you from the branches like fruit."
  221.  
  222. Part - Lake
  223.  
  224. LakeRegion is a region.
  225.  
  226. LakesideD1, LakesideD2, LakeCentre, LakesideE2, LakesideE3 and Outcrop are in LakeRegion.
  227.  
  228. Part - Clearing
  229.  
  230. ClearingRegion is a region.
  231.  
  232. ClearingCliff, ClearingC4, ClearingC5, ClearingD3, ClearingD4 and ClearingD5 are in ClearingRegion.
  233.  
  234. Part - Mountains
  235.  
  236. MountainRegion is a region.
  237.  
  238. MountainFootA2, CliffEdge, MountainFootA4, ScreeSlope and CaveEntrance are in MountainRegion.
  239.  
  240.  
  241. BOOK - ROOMS
  242.  
  243. Part A1 - Backstage area - inaccessible
  244.  
  245. [This room should not be accessible to players]
  246. [Was originally used to store cuts of meat offstage - still here in case I need it at a later point]
  247.  
  248. Backstage is a room. Printed name of Backstage is "Meat Dimension".
  249.  
  250. Description of Meat Dimension is "You're not supposed to be able to get here. Either you or I did a really bad job!"
  251.  
  252. Part A2 - Mountain Foot
  253.  
  254. MountainFootA2 is a room. Printed name of MountainFootA2 is "Foot of the Mountains".
  255.  
  256. Description of MountainFootA2 is "Craggy mountains cut into the sky. The ground is covered by loose and treacherous rocks, which run down to a scree slope to your southwest.[paragraph break]You are otherwise hemmed in by forest and mountain, with routes to the south and east available.".
  257.  
  258. Chapter - Scree
  259.  
  260. [See ScreeSlope]
  261.  
  262. Part A3 - Cliff Edge
  263.  
  264. CliffEdge is a room. Printed name of CliffEdge is "Top of the Cliff".
  265. CliffEdge is east of MountainFootA2.
  266.  
  267. Description of CliffEdge is "".
  268.  
  269. Part A4 - Mountain Foot
  270.  
  271. MountainFootA4 is a room. Printed name of MountainFootA4 is "Foot of the Mountains".
  272. MountainFootA4 is east of CliffEdge.
  273.  
  274. Description of MountainFootA4 is "".
  275.  
  276. Part A5 - Lair
  277.  
  278. Lair is a room. Printed name of Lair is "Lair".
  279.  
  280. Description of Lair is "".
  281.  
  282. Part B1 - Scree Slope
  283.  
  284. ScreeSlope is a room. Printed name of ScreeSlope is "Scree Slope".
  285. ScreeSlope is southwest of MountainFootA2. Northeast of ScreeSlope is nowhere.
  286. ScreeSlope is down from MountainFootA2. Up from ScreeSlope is nowhere.
  287.  
  288. Description of ScreeSlope is "".
  289.  
  290. Part B2 - Forest near Cliff
  291.  
  292. ForestCliff is a room. Printed name of ForestCliff is "Forest".
  293. ForestCliff is south of MountainFootA2.
  294.  
  295. Description of ForestCliff is "".
  296.  
  297. Part B3 - Cliff Bottom
  298.  
  299. CliffBottom is a room. Printed name of CliffBottom is "Cliff".
  300. CliffBottom is east of ForestCliff.
  301. CliffBottom is south of CliffEdge.
  302. CliffBottom is down from CliffEdge.
  303.  
  304. Description of CliffBottom is "".
  305.  
  306. Part B4 - Clearing near Cliff
  307.  
  308. ClearingCliff is a room. Printed name of ClearingCliff is "Clearing".
  309. ClearingCliff is east of CliffBottom.
  310. ClearingCliff is south of MountainFootA4.
  311.  
  312. Description of ClearingCliff is "".
  313.  
  314. Part B5 - CaveEntrance
  315.  
  316. CaveEntrance is a room. Printed name of CaveEntrance is "Cave Entrance".
  317. CaveEntrance is east of ClearingCliff.
  318. CaveEntrance is south of Lair.
  319. CaveEntrance is outside from Lair.
  320.  
  321. Description of CaveEntrance is "".
  322.  
  323. Part C1 - Forest
  324.  
  325. ForestC1 is a room. Printed name of ForestC1 is "Forest".
  326. ForestC1 is south of ScreeSlope. North of ForestC1 is nowhere.
  327. ForestC1 is down from ScreeSlope. Up from ForestC1 is nowhere.
  328.  
  329. Description of ForestC1 is "".
  330.  
  331. Part C2 - Campsite
  332.  
  333. Campsite is a room. Printed name of Campsite is "Campsite".
  334. Campsite is east of ForestC1.
  335.  
  336. Description of Campsite is "A small tent and a chest of supplies."
  337.  
  338. Chapter - Chest
  339.  
  340. The chest is scenery in Campsite.
  341. The chest is a closed openable container.
  342.  
  343. Description of the chest is "In case of times like this."
  344. Understand "supplies" or "supply" as the chest.
  345.  
  346. Section - Meat, Steaks
  347.  
  348. A cut of meat is a kind of thing.
  349. The plural of cut of meat is cuts of meat.
  350. Understand "cut" or "meat" or "steak" as a cut of meat.
  351. A cut of meat is usually edible.
  352.  
  353. Description of a cut of meat is usually "A large slab of tough meat and offal.[paragraph break]You can drop cuts of meat in the open to distract it. It'll be kept busy for a little while, but never for long."
  354.  
  355. There are 5 cuts of meat in the chest.
  356.  
  357. Instead of eating a cut of meat:
  358. say "Not for human consumption."
  359.  
  360. Chapter - Tent
  361.  
  362. The tent is scenery in Campsite.
  363.  
  364. Description of the tent is "A ramshackle, empty thing. You weren't planning to stay long."
  365.  
  366. Instead of going inside in the Campsite:
  367. try entering the tent.
  368.  
  369. Instead of entering the tent:
  370. say "A dangerous idea. If it catches up with you, you'll have nowhere to run."
  371.  
  372.  
  373. Part C3 - Forest
  374.  
  375. ForestC3 is a room. Printed name of ForestC3 is "Syrup Tapping".
  376. ForestC3 is east of Campsite.
  377. ForestC3 is south of CliffBottom.
  378.  
  379. Description of ForestC3 is "These are the trees you were tapping until recently. Some of the equipment is still attached."
  380.  
  381. Chapter - Tapping Equipment
  382.  
  383. The tapping equipment is scenery in ForestC3.
  384.  
  385. Description of the tapping equipment is "Taps drilled into the trees, weeping sugar sap into buckets."
  386.  
  387. Instead of switching on the tapping equipment: try turning it.
  388. Instead of switching off the tapping equipment: try turning it.
  389.  
  390. Instead of turning the tapping equipment:
  391. say "You try a few taps experimentally, but they seem to have stiffened."
  392.  
  393. Section - Bucket
  394.  
  395. The metal bucket is in ForestC3.
  396.  
  397. Initial appearance of the metal bucket is "A few buckets weighed down with sap are here, though one empty bucket stands apart."
  398.  
  399. Understand "buckets" as the bucket.
  400.  
  401. Part C4 - Clearing
  402.  
  403. ClearingC4 is a room. Printed name of ClearingC4 is "Clearing".
  404. ClearingC4 is east of ForestC3.
  405. ClearingC4 is south of ClearingCliff.
  406.  
  407. Description of ClearingC4 is "".
  408.  
  409. Part C5 - Clearing
  410.  
  411. ClearingC5 is a room. Printed name of ClearingC5 is "Clearing".
  412. ClearingC5 is south of CaveEntrance.
  413.  
  414. Description of ClearingC5 is "".
  415.  
  416. Part D1 - Lakeside
  417.  
  418. LakesideD1 is a room. Printed name of LakesideD1 is "Lake Shore".
  419. LakesideD1 is south of ForestC1.
  420.  
  421. Description of LakesideD1 is "".
  422.  
  423. Part D2 - Lakeside
  424.  
  425. LakesideD2 is a room. Printed name of LakesideD2 is "Lake Shore".
  426. LakesideD2 is east of LakesideD1.
  427. LakesideD2 is south of Campsite.
  428.  
  429. Description of LakesideD2 is "".
  430.  
  431. Part D3 - Clearing
  432.  
  433. ClearingD3 is a room. Printed name of ClearingD3 is "Clearing".
  434. ClearingD3 is east of LakesideD2.
  435.  
  436. Description of ClearingD3 is "".
  437.  
  438. Part D4 - Clearing
  439.  
  440. ClearingD4 is a room. Printed name of ClearingD4 is "Clearing".
  441. ClearingD4 is east of ClearingD3.
  442. ClearingD4 is south of ClearingC4.
  443.  
  444. Description of ClearingD4 is "".
  445.  
  446. Part D5 - Clearing
  447.  
  448. ClearingD5 is a room. Printed name of ClearingD5 is "Clearing".
  449. ClearingD5 is east of ClearingD4.
  450. ClearingD5 is south of ClearingC5.
  451.  
  452. Description of ClearingD5 is "".
  453.  
  454. Part E1 - LakeCentre
  455.  
  456. LakeCentre is a room. Printed name of LakeCentre is "Out on the Lake".
  457. LakeCentre is south of LakesideD1.
  458. LakeCentre is southwest of LakesideD2.
  459.  
  460. Description of LakeCentre is "".
  461.  
  462. Part E2 - LakesideE2
  463.  
  464. LakesideE2 is a room. Printed name of LakesideE2 is "Lake Shore".
  465. LakesideE2 is east of LakeCentre.
  466.  
  467. Description of LakesideE2 is "".
  468.  
  469. Part E3 - LakesideE3
  470.  
  471. LakesideE3 is a room. Printed name of LakesideE3 is "Lake Shore".
  472. LakesideE3 is east of LakesideE2.
  473. LakesideE3 is south of ClearingD3.
  474.  
  475. Description of LakesideE3 is "".
  476.  
  477. Part E4 - Rocky Outcrop
  478.  
  479. Outcrop is a room. Printed name of Outcrop is "Rocky Outcrop".
  480. Outcrop is east of LakesideE3.
  481. Outcrop is south of ClearingD4.
  482.  
  483. Description of Outcrop is "".
  484.  
  485. Part E5 - blank
  486.  
  487. [no room here]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement