Hello Gruk! Sorry about the confusion, i suck at explaining things and i noticed i wrote a few things wrong.
I meant save an sprite into a variable, but one that isn’t within the game already, for example:
Player decides to make a mod, he writes a .JSON file containing the sprites name, variables and sound names that should be loaded into the game, he creates a folder with those sprites and sounds. I can create a interpreter to load these variables, however i didn’t find a way for GDevelop 5 to dynamically load the sprite or sound.
What i meant with “run a sound through a string” is:
We have the “Change Animation (by name)” in Gdevelop, which we can give name to our animation within objects and call them through a string.
This way my game is able to collect the animation name from a .JSON file, store it into a scene variable and the game will change a object animation to that string. Which allow me to directly name the animation into the JSON and call it with a single code:
“Set animation of EventImage to VariableString(image)”
However i can’t name each sound i have and i can’t call them into a event by a string, the way i’m doing right now is like this:
"The text of scene variable audio.sound is = “sound1"” > “Play the sound sound1.wav on the channel 0, vol.: 100, loop: yes”
Which is quite inefficient because there’s many sounds and i will be adding more.