Just wanted to hop by and say hello. I’ve been spending most of my free time reading on how to use IF, and I must say, I’m positively surprised by it’s capabilities. I’ve been having loads of fun just messing around trying to create various objects and rooms.
I have, however come across a slight difficulty, and even after 2 hours of haggling I’ve been unable to solve this one.
My code is as follows:
The lighter is a portable device. The description of the lighter is “A silver lighter which can ignite things. Its light is currently [brightness of the lighter].” The lighter has a brightness. The lighter is radiant. The lighter is in the upper drawer.
Instead of burning paper:
if the player has a lighter,
now the leaflet is nowhere;
say “The paper quickly turns to ashes.”;
else say “You have nothing to set the paper on fire. Dumbass.”
I’ve tried moving it all around, but it keeps telling me ‘but this is a phrase which I don’t recognise’, referring to the last phrase. I’ve tried adding colons in front of ‘if’ and ‘else’, or just ‘else’, but that doesn’t seem to really help either…
Any help would be greatly appreciated. I’m sorry if this is on the wrong subforums, I haven’t been able to find the ‘help’ section just yet as I am in quite a hurry.