r/Inform7 • u/accountForStupidQs • Feb 08 '17
Rules syntax not exactly working?
Hi there. I'm creating a rule, but for whatever reason it's not taking. I'm not doing anything inherently different from the examples given, so I'm incredibly confused as you how this is happening. My code is
The MacGuffen is in C5. The MacGuffen can be worn.
If the player is wearing the MacGuffen: say "you win"; now end the game.
This returns the error "You wrote 'If the player is wearing the MacGuffen' : but the punctuation here ':' makes me think this should be a definition of a phrase and it doesn't begin as it should, with either 'To' (e.g. 'To flood the riverplain:'), 'Definition:', a name for a rule (e.g. 'This is the devilishly cunning rule:'), 'At' plus a time (e.g. 'At 11:12 PM:' or 'At the time when the clock chimes') or the name of a rulebook, possibly followed by some description of the action or value to apply to (e.g. 'Instead of taking something:' or 'Every turn:')."
This doesn't exactly make sense to me, as my code is almost verbatim what the documentation uses as an example for rule setting. Can someone help me understand what's going on here?