Config File

version 2 by Aaron Reed

  • Home page
  • Beginning
  • Previous



  • Section - Automatically generating code
        
    setup-external-variables is a truth state that varies. setup-external-variables is usually true.

    evc-ctr is a number variable. evc-ctr is 0.

    To generate external variable code:
        if evc-ctr is 0:
            say "** Generating config file code. Paste this back into your Inform story project to initialize the config file.[paragraph break]";
            say "setup-external-variables is false.";
        increase evc-ctr by 1;
        say "[theKey] is a ";
        if theType is tNumeric:
            say "number variable. n-[theKey] is a number-object with nkey '[theKey]' and nVal [theVal]. For externally assigning n-[theKey]: now [theKey] is nVal of n-[theKey].";
        else if theType is tBoolean:
            say "truth state variable. n-[theKey] is a truth-object with nkey '[theKey]' and nVal [theVal]. For externally assigning n-[theKey]: now [theKey] is tVal of n-[theKey].";
        else:
            say "text variable. n-[theKey] is a string-object with nkey '[theKey]' and nVal '[theVal]'. For externally assigning n-[theKey]: now [theKey] is sVal of n-[theKey].";

    Config File ends here.