How to Twine #2 -- Boolean Variables

Поделиться
HTML-код
  • Опубликовано: 15 янв 2025

Комментарии • 25

  • @orbite-beast
    @orbite-beast 3 года назад +1

    I've been trying to find out how to do this, this was really helpful!!!

  • @BinTheWin
    @BinTheWin 2 года назад

    Good and simple. A little too talky but it helped me a lot.

  • @jirik.5921
    @jirik.5921 6 лет назад +1

    How do I enable or disable choices based on variables?

    • @jamesryan8144
      @jamesryan8144  6 лет назад +2

      You can enclose a link inside the brackets of the if statement, like so:
      (if: $var is true)[This text and [[this link]] will show]
      (else:)[This other text and [[this other link]]] will show instead]

    • @jirik.5921
      @jirik.5921 6 лет назад +1

      Thank you :)

    • @jirik.5921
      @jirik.5921 6 лет назад

      And what if want to use suggarcube?

    • @jirik.5921
      @jirik.5921 6 лет назад

      I have one last question. There is a problem with publishing my story, when I load the link it shows only black page.

    • @jirik.5921
      @jirik.5921 6 лет назад

      I use downloaded Twine. I click Publish to File and then save it on desktop, but when I click on it a black page appears. I know I'm a noob but everybody makes mistakes.

  • @evangelionis
    @evangelionis 3 года назад +1

    Thanks.

  • @banggoman7371
    @banggoman7371 2 года назад

    Cant we use =1 instead is true?

    • @jamesryan8144
      @jamesryan8144  2 года назад

      I think that can work? But then I think you have to test to see if the value =1 instead of for if the value is "true."

    • @banggoman7371
      @banggoman7371 2 года назад

      @@jamesryan8144 I just did but unfortunately its not working, idk why tho..

    • @jamesryan8144
      @jamesryan8144  2 года назад

      @@banggoman7371 It's been a long time since I worked with this. I seem to remember a picky syntax issue where sometimes Twine wants "is" and sometimes it wants "=". Not sure the reason you are attempting to use numbers instead of "true/false" but if it's all the same, I'd go with "true/false."

  • @euprofessor
    @euprofessor 2 года назад

    Do you know how i make to go to new path if they pass through the three other...
    if ONE, TWO and THREE is true then OPEN THE GATE
    IF ONLY ONE IS TRUE SHOW OPTION 2 AND 3
    IF ONLY TWO IS TRUE SHOW 1 AND 3
    IF ONLY TREE IS TRUE SHOW 1 AND 2
    I try :
    (if ONE and TWO and THREE is true) [[[show END]]]
    (elseif TWO is true) [[[show THREE]]]
    (else) [[[show TWO]] [[SHOW THREE]]
    But anything happens
    ideia here is someone pass through THREE TEST CHOSED IN ANY ORDER AFTER pass through THREE open the gate..
    Thanks

    • @jamesryan8144
      @jamesryan8144  2 года назад +1

      Try this: (if: $one is true and $two is true and $three is true)[show end]

    • @euprofessor
      @euprofessor 2 года назад

      @@jamesryan8144 THANKS