Can a variable be used as a layer name in a trigger?
Jun 06, 2021
In a game I'm creating with Storyline 360, there are 16 objects, each on its own layer. When a player selects an object, a trigger on that layer assigns the layer name to a text variable called "layerSelected."
When a player's turn is over, a trigger shows that player's end-of-turn layer, which needs to pause the timeline on the object layer the player selected. Is there a way I can use a single trigger to pause the timeline of the layer named in the layerSelected variable, or do I need a trigger for each of the 16 object layers, e.g., Pause the timeline on Object Layer 1 if layerSelected = Object Layer 1, etc.?