X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=appendices%2Ff.rst;h=0dc8e6449ad13efb9fd199a12cd4f0843316d8ff;hb=95b5702817b987123d71d432f81eeb0c7101b59c;hp=372dc569817c212c3c7ad14edc8172c8a88fc1dd;hpb=d102cdffefa7d68901d9f6e7d564656270bd0280;p=ibg.git diff --git a/appendices/f.rst b/appendices/f.rst index 372dc56..0dc8e64 100644 --- a/appendices/f.rst +++ b/appendices/f.rst @@ -13,11 +13,7 @@ .. image:: /images/picL.png :align: left -.. raw:: latex - - \dropcap{l} - -ibrary files define Inform's model world, turning a conventional +|L|\ibrary files define Inform's model world, turning a conventional programming language into a text adventure development system. Here are the library constants, variables and routines, the standard object properties and attributes, the verb grammars and actions. @@ -33,25 +29,18 @@ Library objects If defined (between Includes of `Parser` and `VerbLib`), changes standard library messages: - .. only:: html - - | `Object LibraryMessages` - | `with before [;` - | `{action}: "{string}";` - | `{action}: "{string}";` - | `{action}: switch (lm_n) {` - | `{value}: "{string}";` - | `{value}: "{string}",` - | `(a) lm_o,".";` - | `...` - | `}` - | `...` - | `];` - - .. todo:: - - Get this to work properly in LaTeX. Currently get a 'too deeply - nested' error. + | `Object LibraryMessages` + | `with before [;` + | `{action}: "{string}";` + | `{action}: "{string}";` + | `{action}: switch (lm_n) {` + | `{value}: "{string}";` + | `{value}: "{string}",` + | `(a) lm_o,".";` + | `...` + | `}` + | `...` + | `];` `selfobj` The default player object. Avoid: use instead the `player` variable, @@ -155,7 +144,8 @@ Library variables Used by `invent` and `list_together` properties. `keep_silent` - Normally `false`; `true` makes most group 2 actions silent. + Normally `false`; `true` makes most :ref:`group 2 actions + ` silent. `location` The player's current room; unless that's dark, when it contains @@ -207,7 +197,8 @@ Library routines A scored task has been achieved. `AfterRoutines()` - In a group 2 action, controls output of "after" messages. + In a :ref:`group 2 action `, controls output of "after" + messages. `AllowPushDir()` An object can be pushed from one location to another. @@ -229,17 +220,17 @@ Library routines `DrawStatusLine()` Refreshes the status line; happens anyway at end of each turn. -`GetGNAOfObject(obj_id)` +`GetGNAOfObject({obj_id})` Returns gender-number-animation 0..11 of the `{obj_id}`. -`HasLightSource(obj_id)` +`HasLightSource({obj_id})` Returns `true` if the `{obj_id}` has light. `IndirectlyContains({parnt_obj_id,obj_id})` Returns `true` if `{obj_id}` is currently a child or grand-child or great-grand-child... of the `{parent_object}`. -`IsSeeThrough(obj_id)` +`IsSeeThrough({obj_id})` Returns `true` if light can pass through the `{obj_id}`. `Locale({obj_id,"string1","string2"})` @@ -906,6 +897,8 @@ Group 2 actions Group 2 actions usually work, given the right circumstances. +.. tabularcolumns:: |l|p{5in}| + ============= ============================================================= `Close` "`CLOSE [UP]`", "`COVER [UP]`", "`SHUT [UP]`" `Disrobe` "`DISROBE`", "`DOFF`", "`REMOVE`", "`SHED`", "`TAKE OFF`" @@ -971,6 +964,8 @@ Group 3 actions Group 3 actions are by default stubs which output a message and stop at the "before" stage (so there is no "after" stage). +.. tabularcolumns:: |l|p{5in}| + ============= ============================================================= `Answer` "`ANSWER TO`", "`SAY TO`", "`SHOUT TO`", "`SPEAK TO`" @@ -1041,6 +1036,8 @@ Fake actions Fake actions handle some special cases, or represent "real" actions from the viewpoint of the second object. +.. tabularcolumns:: |l|p{5in}| + ================ ======================================================== `LetGo` Generated by `Remove`. `ListMiscellany` Outputs a range of inventory messages.