Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Adventureland.inf

New verbs, mainly magic words (lines 783-857)

783  [ BunyonSub;
784    if (axe notin player) "Nothing happens.";
785    if (ox in player or location)
786    {   move ox to Hidden_Grove;
787        move axe to Hidden_Grove;
788        "Something you're holding vibrated and...";
789    }
790    if (player notin Quicksand)
791    {   move axe to Hidden_Grove;
792        print "Something you're holding vibrated and...";
793        <<Inv>>;
794    }
795    "Nothing happens.";
796  ];
797   
798  [ TsurrisSub;
799    if (location ~= Memory_RAM) "Nothing happens.";
800    "A voice booms out...^
801     May all your teeth but one fall out, and may that one give you toothache.^
802     (You can't help feeling you have stumbled on a private quarrel which is 
803      nothing to do with your game.)";
804  ];
805   
806  [ BurnSub;
807    if (flint_and_steel notin player)
808        "You have nothing to strike a light with.";
809    if (noun==gas) "Gas needs to be contained before it will burn.";
810    if (noun==distended_bladder)
811    {   if (noun in player)
812        {   remove noun; deadflag=1; "Gas bladder blew up in your hands!";
813        }
814        remove noun;
815        print "Gas bladder blew up!^";
816        if (dragon in location)
817        {   remove dragon; move gore to location;
818            "The dragon has been blown to bits!";
819        }
820        if (bricked_window in location)
821        {   remove bricked_window;
822            move holed_window to location; move firebricks to location;
823            Royal_Chamber.e_to = holed_window;
824            "The bricked window has been blown to bits!";
825        }
826        rtrue;
827    }
828    "That won't ignite.";
829  ];
830   
831  [ HelpSub;
832     print "A voice booms out...^";
833     print "Try:  LOOK,JUMP,SWIM,CLIMB,THROW,FIND,GO,TAKE,INVENTORY,SCORE.^";
834     if (chigger_bites in player || infected_bites in player)
835         "Medicine is good for bites.";
836     if (location == Quicksand) "You may need magic words here.";
837     if (location == Sunny_Meadow)
838         "Only 3 things will wake the dragon. One of them is dangerous!";
839     if (location == Hive)
840         "Read the sign in the meadow!";
841     if (location == Maze1 or Maze2 or Maze3
842         || location == Maze4 or Maze5 or Maze6)
843         "You may need magic words here.";
844     if (location == Royal_Chamber) "Blow it up. Try the swamp.";
845  ];
846   
847  [ AwaySub;
848    if (rug notin player || location~=Maze3) "Nothing happens.";
849    print "Something you're holding vibrates, and...^";
850    PlayerTo(Sunny_Meadow);
851  ];
852   
853  [ FindSub;
854    "A voice booms out...^Find it yourself.";
855  ];
856   
857  ! ----------------------------------------------------------------------------


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.