How can I check if a before activity rulebook is being run?

You can use the ‘going on’ adjective to test whether an activity is currently being run. This returns true if any of the three activity rulebooks is currently being run. Is it possible to determine whether the before rulebook in particular is being run?

Don’t see any way built in. You’d have to set flags.

After doing that by running the three rulebooks of the activities separately and storing which object I’m running them for, I realised it would be simpler to just give the objects (g-windows) a flag. I don’t actually need to detect the before activity, I just need to prevent the activity being run more than once at a time for each window.