So, I am making a game, where, at one point, you can find a card, which will later be used to open a locked door.
First part is when I set the variable "card" to 1
<<set $card to 1>>
And here is the code to display an option to use the card to open the door.
<<if $card is 1>> use card on the card reader -> room 2
I have coppied the code from the Twine wiki and altered it, but the option to use the card on the door displays everytime, even when the player has not found the card.
Can you tell me, what is wrong with the code?