Permadeath

version 1 by Victor Gijsbers

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Killing the player

    [When the PC dies, you always ought to "permanently kill the player".]

    To permanently kill the player:
        if File of Adventurers exists:
            read File Of Adventurers into Table of Adventurers;
            repeat through the Table of Adventurers:
                if the ID-1 entry is First ID and the ID-2 entry is Second ID and the ID-3 entry is Third ID:
                    now Save-ID entry is 0;
            write File Of Adventurers from the Table of Adventurers.