Custom Library Messages

version 4/120212 by Ron Newcomb

  • Home page
  • Beginning
  • Previous
  • Next



  • Book - Rule and Template Replacements

    Chapter - L__M now calls the activity instead

    Section - L__M (in place of Section SR5/8/2 - Message support - Intervention - Unindexed in Standard Rules by Graham Nelson)

    Include (-
    [ L__M actn n x1 x2 rv;
    @push action;
    lm_act = actn;
    if (n == 0) n = 1;
    lm_n = n;
    lm_o = x1;
    lm_o2 = x2;
    if (lm_act == ##ListMiscellany) {
        lm_act = TABLE_NOVALUE; ! set it to the same value as a blank table entry
        lm_n = lm_n + 100;
    } else if (lm_act == ##Miscellany) {
        lm_act = TABLE_NOVALUE; ! set it to the same value as a blank table entry
    }
    action = lm_act;
    #ifdef DEBUG;
    BeginActivity((+ the printing library message activity +), lm_n);
    if (~~(ForActivity((+ the printing library message activity +), lm_n))) { ;
        print "{ ";
        if (lm_act == TABLE_NOVALUE) print "library message";
        else print (SayActionName) lm_act, " action";
        print " #", lm_n, " }";
        RunTimeProblem(RTP_TABLE_NOROW, (+ default messages table +));
    }
    EndActivity((+ the printing library message activity +), lm_n);
    #ifnot;
    CarryOutActivity((+ the printing library message activity +), lm_n);
    #endif;
    @pull action;
    ]; -) instead of "Printing Mechanism" in "Language.i6t".