From: Jason Self Date: Sun, 2 Jun 2019 16:37:50 +0000 (-0700) Subject: Add Other useful directives X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=cc7b3641d6c35a66e3d9a6b0b7c0cd43e8ef7517;p=inform-resources.git Add Other useful directives --- diff --git a/informqr/informqr.md b/informqr/informqr.md index 490805c..fa5f2f2 100644 --- a/informqr/informqr.md +++ b/informqr/informqr.md @@ -577,4 +577,56 @@ optional, depending on the action): To explicitly trigger a defined action, then return `true` from the current routine: - <>; \ No newline at end of file + <>; + +Other useful directives +----------------------- + +To include a directive within a routine definition \[...\], insert a +hash "\#" as its first character. + +To conditionally compile: + + Ifdef name; ! use any one of these + Ifndef name; ! + Iftrue expr; ! + Iffalse expr; ! + ... + Ifnot; + ... + Endif; + +To display a compile-time message: + + Message "string"; + +To include the contents of a file, searching the Library path: + + Include "source_file"; + +To include the contents of a file in the same location as the current +file: + + Include ">source_file"; + +To specify that a library routine is to be replaced: + + Replace routine; + +To set the game's release number (default is 1), serial number +(default is today's *yymmdd*) and status line format (default is +`score`): + + Release expr; + Serial "yymmdd"; + Statusline score; + Statusline time; + +To declare a new attribute common to all objects: + + Attribute attribute ; + +To declare a new property common to all objects: + + Property property; + Property property expr; \ No newline at end of file