Alchemy Poison & Item Crafting Engine

version 1 by Philip Black

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Drinking a Potion
    Instead of drinking a potion:
        move the noun to Hyperspace Chest;
        Say "[if craftmessage is true]You quaff [the noun], but nothing seems to happen....[end if]";
        now craftmessage is true;
        if there is a Potion Flask in Hyperspace Chest:
            now the second noun is a random Potion Flask in Hyperspace Chest;
            move the second noun to the player;
            now the Poison Level of the second noun is the Poison Level of the noun divided by 2;
            now the Alcohol Percent of the second noun is the Alcohol Percent of the noun divided by 5;
            now the second noun is toxic NOT tested;
        otherwise:
            let the new thing be a new object cloned from a random Potion Flask;
            move the new thing to the player;
            now the Poison Level of the new thing is the Poison Level of the noun divided by 2;
            now the Alcohol Percent of the new thing is the Alcohol Percent of the noun divided by 5;
            now the new thing is toxic NOT tested;
        Say "[line break]You gain an empty Potion Flask.";
        now the Poison Level of the noun is 0;
        now the Alcohol Percent of the noun is 0;