Twine 2.6: Harlowe 3.3: Macros: Working with Hooks

Поділитися
Вставка
  • Опубліковано 13 лип 2023
  • This video reviews the concept of 'hooks' in Harlowe 3.3.
    Download (via GitHub): videlais.github.io/twinetutor...
    Harlowe 3.3 Playlist: • Twine Handbook: Vol 1:...
    Twine 2.6 Playlist: • Introduction to Twine ...
    Created by Dan Cox (‪@DanCox‬)

КОМЕНТАРІ • 4

  • @AndyRoidEU
    @AndyRoidEU 9 місяців тому +1

    I helped myself with ChatGpt to better understand what "a hook" means, as with the knowledge of a beginner programmer, it was a weird term.
    Me: So, to summarize, a "hook" is just a fancy way in Twine / Harlow to say that we do a command that influences a story.
    Chat GPT (3.5):
    Yes, your summary is correct. In Twine and Harlowe, a "hook" is a term used to describe a command or a piece of code that influences the story's content or behavior. It's essentially a way to execute functions or statements within the context of interactive storytelling. In other programming languages, these would typically be referred to as functions, statements, or commands that perform various tasks, such as data manipulation, conditional actions, and more, beyond just displaying text or characters. The term "hook" is specific to the context of interactive fiction and serves a similar purpose to functions or statements in other programming languages."

    • @DanCox
      @DanCox  9 місяців тому +4

      To clarify, "hook" is an exclusive term to Harlowe. Other story formats do not use it. The summary is not quite correct. A hook defines what the functionality *affects*. You can think of it as "what it hooks into" as part of the text of the passage. We use macros to affect things and pair them with hooks to specify what it should change or otherwise affect in different ways.

  • @greystorm9974
    @greystorm9974 4 місяці тому

    I don't remember seeing link-repeat before in your tutorials

    • @DanCox
      @DanCox  4 місяці тому +2

      The link macro only runs once; link-repeat allows for running the same hook, and its contents, multiple times.