Inform - Resources - Examples

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing Toyshop.inf

Office (lines 719-738)

719  ! >OF  A simple movement rule.
720  ! ----------------------------------------------------------------------------
721   
722  Toyroom Office "Office"
723    with description
724            "A small, grey office, with a broad stone mantelpiece. 
725             In the east wall is a doorway marked ~Exit~, and the Toyshop, 
726             of course, lies north.",
727         cant_go "The Toyshop floor lies north.",
728         n_to West_End,
729         e_to
730         [; if (score~=MAX_SCORE)
731                "A gong sounds. ~You cannot leave the Toyshop until 
732                 you have done six interesting things!~";
733            deadflag=2;
734            "A gong sounds. ~Congratulations!  You may now leave the Toyshop 
735             and begin writing your own Inform game!~";
736         ];
737   
738  ! ----------------------------------------------------------------------------


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.