Howdy, Stranger!

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

Error messages from Twine 2.0 when test or play

The (if:) command should be assigned to a variable or attached to a hook.►
Macros like this should usually be touching the left side of a hook: (if:$company is "micro")[Some text]

I need some code to be left and right of "*"►
I tried to use an operation on some data, but the data's type was incorrect.

Thanks for suggested solutions.

Comments

  • You need to state which Story Format (name and version) you are using when you ask a question, as answers can be different for each one. Based on the syntax of your code example I am guessing you are using Harlowe.

    Without an example of the actual passage content that is causing the errors it is very difficult to know exactly what is the issue, we would have to guess what your code actually looks like. My guess is you have one or more white-space characters between an (if:) macro and its associated hook []
    Bad usage, note the space between the macro and its associated hook.
    
    (if: $var is "value") [..do something..]
    
    (if: $var is "value")
    [..do something..]
    
    
    Good usage, no space.
    
    (if: $var is "value)[..do something..]
    

    Please use the C button in the comment field's toolbar to wrap your example in code tags, it will make it easier to find and read.
Sign In or Register to comment.