Twine 2.6: SugarCube 2.36: Introduction: Example: Keys and Doors

Поділитися
Вставка
  • Опубліковано 10 сер 2023
  • This video reviews an example of how variables can be used in SugarCube 2.36 to create "keys" and "doors."
    Download (via GitHub): videlais.github.io/twinetutor...
    Twine 2.6 Playlist: • Introduction to Twine ...
    Created by Dan Cox (@Videlais)

КОМЕНТАРІ • 4

  • @artsyice7042
    @artsyice7042 10 місяців тому

    Love your videos! Very helpful and simple. I'm in the process of making a passion project in twine, so this is perfect!

  • @ri6534
    @ri6534 21 день тому

    Adding one key to unlock a passage is easy, but I really can't seem to find how to add two keys. I want to have the player pick up two objects to proceed to the next pasage but all I've made is a loop. I tried using then the text and then the text and but as I said that doesn't seem to work. Is there any way for this to work?

  • @MageSkeleton
    @MageSkeleton 5 місяців тому

    I'm sure the information would be easy to find or deduce, but what would the command be to just "remove" a key? Say instead of there being just a value check to see if you have one or two of "key" you go through a passage that removes a key from having two to one. OR is this explained in your other video "Improving keys and doors?"

    • @DanCox
      @DanCox  5 місяців тому

      One way to approach it would be to change the value of the $key variable at the start of different passages to decrease it.
      Alternatively, although more complicated, $key could be an array of multiple keys and its length decreased based on removing entities.