Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Advent.inf

10. The Y2 Rock Room and environs, slightly below (lines 1015-1167)

1015  Room    At_Y2 "At ~Y2~"
1016    with  name 'y2',
1017          description
1018              "You are in a large room, with a passage to the south,
1019               a passage to the west, and a wall of broken rock to the east.
1020               There is a large ~Y2~ on a rock in the room's center.",
1021          after [;
1022            Look:
1023              if (random(100) <= 25) print "^A hollow voice says, ~Plugh.~^";
1024          ],
1025          before [;
1026            Plugh:
1027              PlayerTo(Inside_Building);
1028              rtrue;
1029            Plover:
1030              if (In_Plover_Room hasnt visited) rfalse;
1031              if (egg_sized_emerald in player) {
1032                  move egg_sized_emerald to In_Plover_Room;
1033                  score = score - 5;
1034              }
1035              PlayerTo(In_Plover_Room);
1036              rtrue;
1037          ],
1038          s_to Low_N_S_Passage,
1039          e_to Jumble_Of_Rock,
1040          w_to At_Window_On_Pit_1;
1041   
1042  Scenic  -> "~Y2~ rock"
1043    with  name 'rock' 'y2',
1044          description "There is a large ~Y2~ painted on the rock.",
1045    has   supporter;
1046   
1047  ! ------------------------------------------------------------------------------
1048   
1049  Room    Jumble_Of_Rock "Jumble of Rock"
1050    with  name 'jumble' 'of' 'rock',
1051          description "You are in a jumble of rock, with cracks everywhere.",
1052          d_to At_Y2,
1053          u_to In_Hall_Of_Mists;
1054   
1055  ! ------------------------------------------------------------------------------
1056   
1057  Room    At_Window_On_Pit_1 "At Window on Pit"
1058    with  name 'window' 'on' 'pit' 'east' 'e//',
1059          description
1060              "You're at a low window overlooking a huge pit, which extends up out of sight.
1061               A floor is indistinctly visible over 50 feet below.
1062               Traces of white mist cover the floor of the pit, becoming thicker to the right.
1063               Marks in the dust around the window would seem to indicate that someone has been here recently.
1064               Directly across the pit from you and 25 feet away
1065               there is a similar window looking into a lighted room.
1066               A shadowy figure can be seen there peering back at you.",
1067          before [;
1068            WaveHands:
1069              "The shadowy figure waves back at you!";
1070          ],
1071          cant_go "The only passage is back east to Y2.",
1072          e_to At_Y2;
1073   
1074  Class   PitScenic
1075    with  found_in At_Window_On_Pit_1 At_Window_On_Pit_2,
1076    has   scenery;
1077   
1078  PitScenic "window"
1079    with  name 'window' 'low',
1080          description "It looks like a regular window.",
1081    has   openable;
1082   
1083  PitScenic "huge pit"
1084    with  name 'pit' 'deep' 'large',
1085          description
1086              "It's so deep you can barely make out the floor below,
1087               and the top isn't visible at all.";
1088   
1089  PitScenic "marks in the dust"
1090    with  name 'marks' 'dust',
1091          description "Evidently you're not alone here.",
1092    has   multitude;
1093   
1094  PitScenic "shadowy figure"
1095    with  name 'figure' 'shadow' 'person' 'individual' 'shadowy' 'mysterious',
1096          description
1097              "The shadowy figure seems to be trying to attract your attention.";
1098   
1099  ! ------------------------------------------------------------------------------
1100   
1101  Room    In_Dirty_Passage "Dirty Passage"
1102    with  name 'dirty' 'passage',
1103          description
1104              "You are in a dirty broken passage.
1105               To the east is a crawl.
1106               To the west is a large passage.
1107               Above you is a hole to another passage.",
1108          e_to On_Brink_Of_Pit,
1109          u_to Low_N_S_Passage,
1110          w_to In_Dusty_Rock_Room;
1111   
1112  ! ------------------------------------------------------------------------------
1113   
1114  Room    On_Brink_Of_Pit "Brink of Pit"
1115    with  name 'brink' 'of' 'pit',
1116          description
1117              "You are on the brink of a small clean climbable pit.
1118               A crawl leads west.",
1119          w_to In_Dirty_Passage,
1120          d_to In_Pit,
1121          in_to In_Pit;
1122   
1123  Scenic  -> "small pit"
1124    with  name 'pit' 'small' 'clean' 'climbable',
1125          description "It looks like you might be able to climb down into it.",
1126          before [;
1127            Climb, Enter:
1128              MovePlayer(d_obj);
1129              rtrue;
1130          ];
1131   
1132  ! ------------------------------------------------------------------------------
1133   
1134  Room    In_Pit "In Pit"
1135    with  name 'in' 'pit',
1136          description
1137              "You are in the bottom of a small pit with a little stream,
1138               which enters and exits through tiny slits.",
1139          u_to On_Brink_Of_Pit,
1140          d_to "You don't fit through the tiny slits!",
1141    has   nodwarf;
1142   
1143  Scenic  -> "tiny slits"
1144    with  name 'slit' 'slits' 'tiny',
1145          description "The slits form a complex pattern in the rock.",
1146    has   multitude;
1147   
1148  ! ------------------------------------------------------------------------------
1149   
1150  Room    In_Dusty_Rock_Room "In Dusty Rock Room"
1151    with  name 'dusty' 'rock' 'room',
1152          description
1153              "You are in a large room full of dusty rocks.
1154               There is a big hole in the floor.
1155               There are cracks everywhere, and a passage leading east.",
1156          e_to In_Dirty_Passage,
1157          d_to At_Complex_Junction;
1158   
1159  Scenic  -> "dusty rocks"
1160    with  name 'rocks' 'boulders' 'stones' 'rock' 'boulder' 'stone' 'dusty' 'dirty',
1161          description "They're just rocks. (Dusty ones, that is.)",
1162          before [;
1163            LookUnder, Push, Pull:
1164              "You'd have to blast your way through.";
1165          ],
1166    has   multitude;
1167   


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.