Alchemy Poison & Item Crafting Engine

version 1 by Philip Black

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Alchemy & Poison
    A potion is a kind of thing.
    A thing can be Alchemy Vessel or NotAlchemyVessel. A thing is usually NotAlchemyVessel.
    A thing can be Needs a Vessel or NoVessel. A thing is usually NoVessel.
    A Thing can be identified or NOT identified. A thing is usually NOT identified.
    A thing can be toxic tested or toxic NOT tested. A thing is usually toxic NOT tested.
    Every thing has a number called Poison Level. The Poison Level of a thing is usually 0.
    Every thing has a number called Alcohol Percent. The Alcohol Percent of a thing is usually 0.

    Poison Visible is a truth state that varies. Poison Visible is false.
    DEADLY Poisonous Rating is a number that varies. The DEADLY Poisonous Rating is 100.
    VERY Poisonous Rating is a number that varies. The VERY Poisonous Rating is 75.
    Poisonous Rating is a number that varies. The Poisonous Rating is 50.
    Fairly Toxic Rating is a number that varies. The Fairly Toxic Rating is 25.
    Tainted Rating is a number that varies. The Tainted Rating is 10.
    Slightly Alcoholic Rating is a number that varies. The Slightly Alcoholic Rating is 10.
    Alcoholic Rating is a number that varies. The Alcoholic Rating is 25.
    Very Alcoholic Rating is a number that varies. The Very Alcoholic Rating is 50.
    Definition: An thing is Good Clean if its Poison Level is less than Tainted Rating.
    Definition: An thing is IdealVessel if it is Good Clean and it is Alchemy Vessel.
    Definition: A thing is ToxicVessel if it is an Alchemy Vessel and its Poison Level is greater than Tainted Rating.
    Definition: An thing is Poison Tainted if its Poison Level is at least Tainted Rating and its Poison Level is less than Fairly Toxic Rating.
    Definition: A thing is Poisonous if its Poison Level is at least Fairly Toxic Rating and its Poison Level is less than Poisonous Rating.
    Definition: A thing is VERY poisonous if its Poison Level is at least Poisonous Rating and its Poison Level is less than VERY Poisonous Rating.
    Definition: An thing is DEADLY poisonous if its Poison Level is at least VERY Poisonous Rating.
    Definition: An thing is slightly alcoholic if its Alcohol Percent is at least Slightly Alcoholic Rating and its Alcohol Percent is less than Alcoholic Rating.
    Definition: An thing is alcoholic if its Alcohol Percent is at least Alcoholic Rating and its Alcohol Percent is less than Very Alcoholic Rating.
    Definition: An thing is Very Alcoholic if its Alcohol Percent is at least Very Alcoholic Rating.
    Toxic Repeater is a truth state that varies. Toxic Repeater is true.
        
    After printing the name of a thing (called the toxin):
        If the toxin is toxic tested or Poison Visible is true:
            If Toxic Repeater is true:
                say " ([if the Poison Level of the toxin is greater than the DEADLY Poisonous Rating]DEADLY POISON[otherwise if the Poison Level of the toxin is greater than the VERY Poisonous Rating]VERY POISONOUS[otherwise if the Poison Level of the toxin is greater than the Poisonous Rating]POISON[otherwise if the Poison Level of the toxin is greater than the Fairly Toxic Rating]Fairly Toxic[otherwise if the Poison Level of the toxin is greater than the Tainted Rating]Poison Tainted[otherwise]Not Toxic[end if] - [Alcohol Percent of the toxin]% Alcohol)";
            
    After printing the plural name of a thing (called the toxin):
        If the toxin is toxic tested or Poison Visible is true:
            If Toxic Repeater is true:
                say " ([if the Poison Level of the toxin is greater than the DEADLY Poisonous Rating]DEADLY POISON[otherwise if the Poison Level of the toxin is greater than the VERY Poisonous Rating]VERY POISONOUS[otherwise if the Poison Level of the toxin is greater than the Poisonous Rating]POISON[otherwise if the Poison Level of the toxin is greater than the Fairly Toxic Rating]Fairly Toxic[otherwise if the Poison Level of the toxin is greater than the Tainted Rating]Poison Tainted[otherwise]Not Toxic[end if] - [Alcohol Percent of the toxin]% Alcohol)";