Script call for picture name + variable's value

I'm using HUD Maker of SRDude

I want to make a window that display a set of Character's portrait. For example

Actor_1_1
Actor_1_2
Actor_1_3

1, 2, 3 is the value of a variable.

So I think I can have something like 'Actor_1_$gameVariables.value(3)' where 3 is the variable's ID. However, it doesn't work.

$gameVariables.value(3) works perfectly fine, though.


Can someone help me?
"Actor_1_$gameVariables.value(3)" by itself is just a string of text, so the plugin is looking for a picture which is named exactly "Actor_1_$gameVariables.value(3)". Of course, you don't have any picture of that name.

Try instead, something like:
Code:
"Actor_1_" + $gameVariables.value(3)

You can find some more details on String Operators here as well.
"Actor_1_$gameVariables.value(3)" by itself is just a string of text, so the plugin is looking for a picture which is named exactly "Actor_1_$gameVariables.value(3)". Of course, you don't have any picture of that name.

Try instead, something like:
Code:
"Actor_1_" + $gameVariables.value(3)

You can find some more details on String Operators here as well.
It works perfectly. Thank you :3

Original thread: https://forums.rpgmakerweb.com/threads/script-call-for-picture-name-variables-value.88483/