Lines of Communication

version 1 by Aaron Reed

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Background file channels

    A background file channel is a kind of file channel.

    The saved player's command is an indexed text variable. The saved player's command is "".

    For reading a command when a background file channel is switched on and the saved player's command is not empty (this is the restore the player's saved command rule):
        change the text of the player's command to "[the saved player's command]";
        now the saved player's command is "".

    After reading a command when a background file channel is switched on (this is the process background file channels rule):
        let incoming commands be indexed text;
        now incoming commands is the merged inputs from the list of switched on background file channels;
        unless incoming commands is empty:
            now processing external commands is true;
            now the saved player's command is "[the player's command]";
            change the text of the player's command to "[incoming commands]";
            in the console say "[if the number of switched on background file channels is 1]background file channel [random switched on background file channel][otherwise]one or more background file channels[end if] caused command: *[the player's command]*".