0 votes
by (410 points)
edited by

Basically, I have this error where I set up a variable to true then later in the story I have this code in:

(set: $seenKnife to true) 

You see {(if: $seenKnife)[another] (else:)[a]} knife from the left room. 

(set: $seenKnife to false) 

You see {(if: $seenKnife)[another] (else:)[a]} knife from the left room.

(set: $seenKnife to true) 

You also see a doll hanging from the roof of the attic, it's eyes sink into your soul as if it were haunted. What do you do?

[[Pick Up the Knife|Knife]]

basically, it's tracking to see if you have seen a knife before, but whenever I play it, it says:

(if:)'s 1st value is the number 0, but should be a boolean.

There's nothing before this to do (else:) with.

 

1 Answer

0 votes
by (2.4k points)
Here this code works, so send us the code which provokes the error you mention !
by (410 points)
Ok, but it might be checked for like an hour before you guys see it.
by (2.4k points)
That's strange, try editing your first post then !
by (410 points)
You see {(if: $seenKnife)[another] (else:)[a]} knife on the floor of the attic.

You also see a doll hanging from the roof of the attic, it's eyes sink into your soul as if it were haunted. What do you do?

[[Pick Up Knife|Knife]]

 

by (2.4k points)
This should work if you went from the last passage to this one.
Send your entire code. Including the one that leads to the attic. Right now, there's nothing we can do to help...
by (410 points)
how did you create the variable?
by (2.4k points)
by (159k points)

I have added a comment and an answer to your previous question, hopefully both make the situation a little clearer.

...