Looping States using number variable and button trigger.
Hello all so here is what I am trying to do. I have a variable X that is a number value. I have a layer that has a list of names and as the value of variable goes up or down it changes name. When it hits the limit of course it will to the beginning or end. This all works fine. This list also has what I will call group headers. Like ABC, DEF is part of the list and gets highlighted as the numbers go up and down. The issue I have is that you can push another button that jumps to each header when you click up and down. So I have set up triggers to say when you hit the right arrow change variable x to 1o if x is one. And then when it gets to the last header when you press the right arrow button it's supposed to jump back to the top. So let's say the last number is 30. So the trigger is to change x to 1 when the right arrow is pressed if x = 30. Well, what happens when they push the right button when x is 30 it's supposed to go to 1 but goes to 1o instead. I have tried playing with the trigger stack and can't get it to do what I want.
Any thoughts on how to make this work right I have attached my storyline file to see what I have setup