[Solved] Load strings dynamically, structure / dynamic variables

Hi!
I have an external layout and external events called “Instructions” to explain how to play in each scene of my game.
In that external layout, I want to load the text that corresponds to each scene in which it’s running, obviously.
To access that text, I need to concatenate the path of the variable that needs to be called, like so:
“GlobalVariableString(allstrings.Instructions.” + GlobalVariableString(jeu.nom) + “)”
But the text object won’t load the string, it just displays the string path I’ve made [e.g. GlobalVariableString(allstrings.Instructions.Fuuta)].
How should I proceed?

Solved my issue thanks to Bouh and the documentation. I needed brackets!
http://wiki.compilgames.net/doku.php/gdevelop5/all-features/variables

1 Like