Every turn rule

I’m trying to update my old game using the new version of Inform 7, before this worked but now it’s not compiling–any suggestions how to word this? Also, is there a help reference anywhere showing which old commands don’t work anymore and how to re-word them? Thanks for any help!

Every turn:
if a random chance of 1 in 3 succeeds when the player is in the ROOM and NPC is visible:
say “NPC does/says [one of] 1 [or] 2 [or] 3 [or] [or] 5 [at random].”.

What’s the error message? I suspect you need to change the “when” to “and”.

Or move the “when” to your rule preamble.