Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Advent.inf

26. The Different Maze (lines 2831-3040)

2831  Class   DiffmazeRoom
2832    with  short_name "Maze";
2833   
2834  DiffmazeRoom Different_Maze_1
2835    with  description "You are in a maze of twisty little passages, all different.",
2836          s_to Different_Maze_3,
2837          sw_to Different_Maze_4,
2838          ne_to Different_Maze_5,
2839          se_to Different_Maze_6,
2840          u_to Different_Maze_7,
2841          nw_to Different_Maze_8,
2842          e_to Different_Maze_9,
2843          w_to Different_Maze_10,
2844          n_to Different_Maze_11,
2845          d_to At_West_End_Of_Long_Hall;
2846   
2847  DiffmazeRoom Different_Maze_2
2848    with  description "You are in a little maze of twisting passages, all different.",
2849          sw_to Different_Maze_3,
2850          n_to Different_Maze_4,
2851          e_to Different_Maze_5,
2852          nw_to Different_Maze_6,
2853          se_to Different_Maze_7,
2854          ne_to Different_Maze_8,
2855          w_to Different_Maze_9,
2856          d_to Different_Maze_10,
2857          u_to Different_Maze_11,
2858          s_to Dead_End_14;
2859   
2860  DiffmazeRoom Different_Maze_3
2861    with  description "You are in a maze of twisting little passages, all different.",
2862          w_to Different_Maze_1,
2863          se_to Different_Maze_4,
2864          nw_to Different_Maze_5,
2865          sw_to Different_Maze_6,
2866          ne_to Different_Maze_7,
2867          u_to Different_Maze_8,
2868          d_to Different_Maze_9,
2869          n_to Different_Maze_10,
2870          s_to Different_Maze_11,
2871          e_to Different_Maze_2;
2872   
2873  DiffmazeRoom Different_Maze_4
2874    with  description "You are in a little maze of twisty passages, all different.",
2875          nw_to Different_Maze_1,
2876          u_to Different_Maze_3,
2877          n_to Different_Maze_5,
2878          s_to Different_Maze_6,
2879          w_to Different_Maze_7,
2880          sw_to Different_Maze_8,
2881          ne_to Different_Maze_9,
2882          e_to Different_Maze_10,
2883          d_to Different_Maze_11,
2884          se_to Different_Maze_2;
2885   
2886  DiffmazeRoom Different_Maze_5
2887    with  description "You are in a twisting maze of little passages, all different.",
2888          u_to Different_Maze_1,
2889          d_to Different_Maze_3,
2890          w_to Different_Maze_4,
2891          ne_to Different_Maze_6,
2892          sw_to Different_Maze_7,
2893          e_to Different_Maze_8,
2894          n_to Different_Maze_9,
2895          nw_to Different_Maze_10,
2896          se_to Different_Maze_11,
2897          s_to Different_Maze_2;
2898   
2899  DiffmazeRoom Different_Maze_6
2900    with  description "You are in a twisting little maze of passages, all different.",
2901          ne_to Different_Maze_1,
2902          n_to Different_Maze_3,
2903          nw_to Different_Maze_4,
2904          se_to Different_Maze_5,
2905          e_to Different_Maze_7,
2906          d_to Different_Maze_8,
2907          s_to Different_Maze_9,
2908          u_to Different_Maze_10,
2909          w_to Different_Maze_11,
2910          sw_to Different_Maze_2;
2911   
2912  DiffmazeRoom Different_Maze_7
2913    with  description "You are in a twisty little maze of passages, all different.",
2914          n_to Different_Maze_1,
2915          se_to Different_Maze_3,
2916          d_to Different_Maze_4,
2917          s_to Different_Maze_5,
2918          e_to Different_Maze_6,
2919          w_to Different_Maze_8,
2920          sw_to Different_Maze_9,
2921          ne_to Different_Maze_10,
2922          nw_to Different_Maze_11,
2923          u_to Different_Maze_2;
2924   
2925  DiffmazeRoom Different_Maze_8
2926    with  description "You are in a twisty maze of little passages, all different.",
2927          e_to Different_Maze_1,
2928          w_to Different_Maze_3,
2929          u_to Different_Maze_4,
2930          sw_to Different_Maze_5,
2931          d_to Different_Maze_6,
2932          s_to Different_Maze_7,
2933          nw_to Different_Maze_9,
2934          se_to Different_Maze_10,
2935          ne_to Different_Maze_11,
2936          n_to Different_Maze_2;
2937   
2938  DiffmazeRoom Different_Maze_9
2939    with  description "You are in a little twisty maze of passages, all different.",
2940          se_to Different_Maze_1,
2941          ne_to Different_Maze_3,
2942          s_to Different_Maze_4,
2943          d_to Different_Maze_5,
2944          u_to Different_Maze_6,
2945          nw_to Different_Maze_7,
2946          n_to Different_Maze_8,
2947          sw_to Different_Maze_10,
2948          e_to Different_Maze_11,
2949          w_to Different_Maze_2;
2950   
2951  DiffmazeRoom Different_Maze_10
2952    with  description "You are in a maze of little twisting passages, all different.",
2953          d_to Different_Maze_1,
2954          e_to Different_Maze_3,
2955          ne_to Different_Maze_4,
2956          u_to Different_Maze_5,
2957          w_to Different_Maze_6,
2958          n_to Different_Maze_7,
2959          s_to Different_Maze_8,
2960          se_to Different_Maze_9,
2961          sw_to Different_Maze_11,
2962          nw_to Different_Maze_2;
2963   
2964  DiffmazeRoom Different_Maze_11
2965    with  description "You are in a maze of little twisty passages, all different.",
2966          sw_to Different_Maze_1,
2967          nw_to Different_Maze_3,
2968          e_to Different_Maze_4,
2969          w_to Different_Maze_5,
2970          n_to Different_Maze_6,
2971          d_to Different_Maze_7,
2972          se_to Different_Maze_8,
2973          u_to Different_Maze_9,
2974          s_to Different_Maze_10,
2975          ne_to Different_Maze_2;
2976   
2977  ! ------------------------------------------------------------------------------
2978   
2979  DeadendRoom Dead_End_14
2980    class Room
2981    with  name 'dead' 'end' 'near' 'vending' 'machine',
2982          short_name "Dead End, near Vending Machine",
2983          description
2984              "You have reached a dead end. There is a massive vending machine here.
2985               ^^
2986               Hmmm... There is a message here scrawled in the dust in a flowery script.",
2987          n_to Different_Maze_2,
2988          out_to Different_Maze_2,
2989    has   nodwarf;
2990   
2991  Scenic  -> "message in the dust"
2992    with  name 'message' 'scrawl' 'writing' 'script' 'scrawled' 'flowery',
2993          description
2994              "The message reads, ~This is not the maze where the pirate leaves
2995               his treasure chest.~";
2996   
2997  Scenic  -> VendingMachine "vending machine"
2998    with  name 'machine' 'slot' 'vending' 'massive' 'battery' 'coin',
2999          description
3000              "The instructions on the vending machine read,
3001               ~Insert coins to receive fresh batteries.~",
3002          before [;
3003            Receive:
3004              if (noun == rare_coins) {
3005                  move fresh_batteries to location;
3006                  remove rare_coins;
3007                  "Soon after you insert the coins in the coin slot,
3008                   the vending machine makes a grinding sound, and a set of fresh batteries falls at your feet.";
3009              }
3010              "The machine seems to be designed to take coins.";
3011            Attack:
3012              "The machine is quite sturdy and survives your attack without getting so much as a scratch.";
3013            LookUnder:
3014              "You don't find anything under the machine.";
3015            Search:
3016              "You can't get inside the machine.";
3017            Take:
3018              "The vending machine is far too heavy to move.";
3019          ];
3020   
3021  Object  fresh_batteries "fresh batteries" VendingMachine
3022    with  name 'batteries' 'battery' 'fresh',
3023          description
3024              "They look like ordinary batteries. (A sepulchral voice says, ~Still going!~)",
3025          initial "There are fresh batteries here.",
3026          before [;
3027            Count:
3028              "A pair.";
3029          ],
3030          have_been_used false;
3031   
3032  Object  old_batteries "worn-out batteries"
3033    with  name 'batteries' 'battery' 'worn' 'out' 'worn-out',
3034          description "They look like ordinary batteries.",
3035          initial "Some worn-out batteries have been discarded nearby.",
3036          before [;
3037            Count:
3038              "A pair.";
3039          ];
3040   


Last updated 23 June 2004. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.