Italian

version 3/110105 by Massimo Stella

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 1.4 - Altering messages

    When play begins:
    init library messages;
    add the custom library messages.

    To add the custom library messages:
    repeat through the table of custom library messages begin;
    set the message id entry to the message text entry;
    end repeat.

    To set (id_ - library message id) to (msg_ - text):
    update the row with id of id_ to msg_.

    To update the row with id of (id_ - library message id) to (msg_ - text):
    let n1 be 1;
    let n2 be the number of rows in the table of library messages;
    while n1 <= n2 begin;
    let mid be n1 plus n2;
         change mid to mid divided by 2;
         choose row mid in the table of library messages;
         if the message id entry is id_ begin;
         change the message text entry to msg_;
             change n1 to n2 + 1;
         end if;
         if the message id entry < id_, change n1 to mid plus 1;
    if the message id entry > id_, change n2 to mid minus 1;
    end while.

    libmsg_3ps_changed is a number that varies. libmsg_3ps_changed is 0.

    To set the library message third person text to (name_ - text):
        set the library message third person text to name_ / name_ / name_.

    To set the library message third person text to (upper_ - text) / (lower_ - text):
    set the library message third person text to upper_ / lower_ / lower_.

    To restore the library message third person text:
    set the library message third person text to "Egli" / "egli" / "lui";
    change libmsg_3ps_changed to 0.

    To set the library message third person text to (upper_ - text) / (lower_ - text) / (dobj_ - text):
    change libmsg_3ps_changed to 1;
    repeat through the table of 'you' forms begin;
    if Gramm Person entry is third person and
         Gramm Number entry is singular begin;
             if Case entry is upper-case, change Word entry to upper_;
    otherwise change Word entry to lower_;
         end if;
    end repeat;
    repeat through the table of 'you' dobj forms begin;
    if Gramm Person entry is third person and
         Gramm Number entry is singular then
    change Word entry to dobj_;
    end repeat.