| Back to List Inventory Complete Backward Forward Plain Coloured Gaudy This code in plain text |
Browsing infix.h
InfixWelcomeSub (lines 685-716)
0685 [ InfixWelcomeSub;
0686 print "; Welcome to the ~Infix~ debugger (1/990428), which makes the
0687 following verbs available:^^
0688 ~; ~: evaluates this Inform expression: e.g.
0689 ~; location~ will print the value of the variable ~location~,
0690 ~; 3*5+1~ will print 16, ~; children(old cloth bag)~ will tell you
0691 how many items are in it. (You can name objects either by their
0692 names inside the source code, such as ~n_obj~, or by typing the
0693 names by which the game's parser would normally know them, such
0694 as ~north wall~: the effect is the same.)^
0695 Any expression is allowed except that you can't use double-quoted
0696 strings of text: but you can send messages, call routines or
0697 assign values to variables, properties and array entries.
0698 ^ ~; score++~ is one way to get on in the world.
0699 ^ ~; deadflag = true~ is one way to get out of it.
0700 ^ ~; StopDaemon(nasty little dwarf)~ will keep you from being pestered.^
0701 Conditions like ~; score>20~ are also allowed and print
0702 either 1 (if true) or 0 (if false).^^";
0703 print "~;examine ~ or ~;x ~ gives full details
0704 of whatever it is. For instance, ~;x ##Take~ describes the Take
0705 action; ~;x Class~ the class Class; ~;x 'drop'~ the dictionary
0706 word ~drop~ and so on for numbers, routines, arrays and of course
0707 objects. ~;xo~ examines something as an object, so for instance
0708 ~;x location~ tells you about the variable ~location~, but ~;xo
0709 location~ tells you what object it refers to.^^";
0710 print "~;give~, ~;remove~ and ~;move~ work like the corresponding
0711 Inform statements.^^";
0712 print "~;<~ causes an action: for instance, ~;< Eat cheese~.^^";
0713 print "~;watch~ or ~;w~ can set a watch on various activities:
0714 type just ~;w~ for details.^^";
0715 print "~;inventory~ or ~;i~ describes the contents of this story file.^";
0716 ];
|