APL setpage variable

I am working on an interactive adventure game. The user can move on a map. I would like to use the pager to show the current position of the player with showing the corresponding page. I setup the pager just with two test pages and it work in the simulator.
{
“type”: “SetPage”,
“componentId”: “pagerComponentId”,
“position”: “absolute”,
“value”: 1
}

I have two questions:
Question 1:
My skill is configured like a loop. I placed the pager block somewhere at the start of the loop. So the display block is always new initiated. It looks like this is not working. The pager is not working like in the simulation even with a fixed number link in the setpage command.
Where and how to place the display block that it will work?

Question 2:
Of course it will not work with a fixed number in the setpage command to show the corresponding map page. This needs to be controlled with the variable for the current location like {CL} for current location.
I tried liek this:
{
“type”: “SetPage”,
“componentId”: “pagerComponentId”,
“position”: “absolute”,
“value”: {CL}
}

This seems to be not correct. How is the correct syntax to use a variable for the setpage command?

Thank you in advance for your help