Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Advent.inf

16. And more of the Alike Maze (lines 1770-1831)

1770  DeadendRoom Dead_End_8
1771    with  description "The canyon runs into a mass of boulders -- dead end.",
1772          s_to In_Tall_E_W_Canyon,
1773          out_to In_Tall_E_W_Canyon;
1774   
1775  MazeRoom Alike_Maze_11
1776    with  n_to Alike_Maze_1,
1777          w_to Alike_Maze_11,
1778          s_to Alike_Maze_11,
1779          e_to Dead_End_9,
1780          ne_to Dead_End_10;
1781   
1782  DeadendRoom Dead_End_9
1783    with  w_to Alike_Maze_11,
1784          out_to Alike_Maze_11;
1785   
1786  DeadendRoom Dead_End_10
1787    with  s_to Alike_Maze_3,
1788          out_to Alike_Maze_3;
1789   
1790  MazeRoom Alike_Maze_12
1791    with  s_to At_Brink_Of_Pit,
1792          e_to Alike_Maze_13,
1793          w_to Dead_End_11;
1794   
1795  MazeRoom Alike_Maze_13
1796    with  n_to At_Brink_Of_Pit,
1797          w_to Alike_Maze_12,
1798          nw_to Dead_End_13;
1799   
1800  DeadendRoom Dead_End_11
1801    with  e_to Alike_Maze_12,
1802          out_to Alike_Maze_12;
1803   
1804  DeadendRoom Dead_End_12
1805    with  u_to Alike_Maze_8,
1806          out_to Alike_Maze_8;
1807   
1808  MazeRoom Alike_Maze_14
1809    with  u_to Alike_Maze_4,
1810          d_to Alike_Maze_4;
1811   
1812  DeadendRoom Dead_End_13
1813    class Room
1814    with  name 'pirate^s' 'dead' 'end' 'treasure' 'chest',
1815          se_to Alike_Maze_13,
1816          out_to Alike_Maze_13,
1817          description "This is the pirate's dead end.",
1818          initial [;
1819              StopDaemon(Pirate);
1820              if (treasure_chest in self && treasure_chest hasnt moved)
1821                  "You've found the pirate's treasure chest!";
1822          ],
1823    has   nodwarf;
1824   
1825  Treasure -> treasure_chest "treasure chest"
1826    with  name 'chest' 'box' 'treasure' 'riches' 'pirate' 'pirate^s' 'treasure',
1827          description
1828              "It's the pirate's treasure chest, filled with riches of all kinds!",
1829          initial "The pirate's treasure chest is here!",
1830          depositpoints 12;
1831   


Last updated 23 June 2004. This web site has not been fully supported since April 2008. Information may be out of date. This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.