tying a scene end to player action

dog is a thing. fascinating dog is a scene. fascinating dog begins when examining dog. fascinating dog ends when doing something other than examining dog.
what’s the best way to make this work?

I’ve been kludging away at it but I can’t figure out any solution which isn’t just a situation specific one-off workaround and I want something which I can generalize and use in other situations.

thanks in advance

You probably want to use a stored action here:

[code]The last action is a stored action that varies.

Before doing something: now the last action is the current action.

Fascinating dog begins when the last action is examining the dog. Fascinating dog ends when the last action is not examining the dog.[/code]

Thanks a lot!

What about tying it to more than one verb?

Fascinating dog ends when the last action is not examining the dog or petting the dog.

That’s nearly right.

Fascinating dog ends when the last action is not examining the dog and the last action is not petting the dog.