MZ Hud Maker Ultra Pro - Code for a variable picture name

I am trying to load a picture based on the variable results. Variable 1 = "img/picture/MyPicture.png"

What is the code so the HUD maker sees the right file to load?


1630522772882.png
Drifty uses this a lot so I asked him about this, here's what he said:


"It needs to look more like this:

return "img/pictures/" + $gameVariables.value(1);

But you need to store the exact name of the file in variable 1 instead of the whole path.
Keep in mind it will only remember 16 digits/characters in a game variable most of the time."
Thanks!!!!!

It works!

Original thread: https://forums.rpgmakerweb.com/threads/hud-maker-ultra-pro-code-for-a-variable-picture-name.140075/