Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

what does this mean

Twine 2 macros use a different syntax to Twine 1 macros.►

Comments

  • edited February 2016
    While using the story format Harlowe, you, apparently, tried to use the macro syntax used by the Twine 1 vanilla story formats—though, SugarCube also uses that style. Harlowe uses a different, incompatible, macro syntax.

    Twine 1 vanilla story format & SugarCube macros look like:
    <<print $foo>>
    
    <<if $ducky is "rubber">>Rubber Ducky!<</if>>
    

    Harlowe macros look like:
    (print: $foo)
    
    (if: $ducky is "rubber")[Rubber Ducky!]
    
  • Each Story Format defines it's own macro language, and a language can be broken down into two parts:

    1. The syntax/format of the language:
    Harlowe's syntax:
    (macro-name:)
    (macro-name:)[...the macro's associated hook ...]
    
    SugarCube:
    <<macro-name>>
    <<macro-name>>... the macro's contents ...<</macro-name>>
    
    Sugarcane / Jonah / Responsive's syntax:
    <<macro-name>>
    <<macro-name>>... the macro's contents ...<<endmacro-name>>
    
    note: SugarCube also supports the same endmacro-name syntax as Sugarcane / Jonah / Responsive.

    2. The accepted words in the language:
    The list of macro-names and operators that the language supports.
Sign In or Register to comment.