Choice Commands

  • Making a choice:
      •    CHARACTER
        What do you think we should make for dinner?
        choice (DINNER_TUESDAY)
        “Meatloaf”{
           CHARACTER
        I love meatloaf!

        gain loves_meatloaf
        }”Salad”{
           CHARACTER
        Salad is good for us!

        gain loves_salad
        }
         
  • Referencing that choice:
      • if (DINNER_TUESDAY = ”Meatloaf”){
           CHARACTER
        Remember when we had meatloaf last Tuesday?
        }

      • if (loves_salad) {
           CHARACTER
        Do I remember you liking salad for dinner?
        } else {
           CHARACTER
        I think I remember you loving meatloaf!

      •    CHARACTER
        I heard you like [DINNER_TUESDAY]!
  • Only show a choice option if player has gained a flag:
    • choice
      “Meatloaf” if (loves_meatloaf){
      CHARACTER
      It’s crazy we both like meatloaf!
      }”Salad”{
      CHARACTER
      I like Salad!
      }