Adusting a dynamic page counter
I'm having a real headache getting a page counter to work in a module. It is a long course - 120 slides - and it features a dynamic menu and a sidebar menu that allows navigation to different sections from anywhere. It also has a glossary, available from anywhere in the course, which has a Back button that goes to the last slide visited.
I need to change the cpinfocurrentslide variable by -2, to account for two screens before the menu (one of which is the glossary). I've created a variable, display_currentslide, which is in a text caption timed for the rest of the project. I have an Enter action on the menu which has an expression display_currentslide = cpinfocurrentslide. The result is that it shows Slide 1 of 120 on every slide. I can see that the issue is that this action does not happen on every single screen - only on the menu. So one solution would be to add this as an action to every screen, on top of whatever other actions are already there. This is feasible but would take ages. I've also seen a method of adding one or subtracting one for the cpinfocurrentslide using the forward and back buttons, which would work fine for me, except that there is a glossary which you can jump to from any screen in the course. Is there any method of making it work that doesn't involve adding a new action to every single one of 120 screens?
Many thanks in advance for any advice or tips! I'm using Captivate 8.1, fully updated.