I'm having trouble with VisuStella's MainMenuCore and actor portraits. (Large images for menus)
My game has a character creation module, with which you can obtain a large number of possible combinations (over 100). VisuStella lets you assign a portrait via notetags (not very useful in my case) or via a plugin command. I was hoping to be able to retrieve the filename of the portrait using a variable, but this doesn't seem possible (see picture). Unless I'm missing something, it seems I can only set the name of the file, and nothing else. I tried typing "$gameVariables.value(X)" instead of a filename, but the plugin reads $gameVariables.value(X), literally, and obviously tries to a find a picture with the same name.
Of course, it would be possible to make an event and conditional branches to specify a portrait for each variable, but this would take an enormous amount of time. Is there another way of doing this... ?
edit: I know it is possible to change face/character and battler images with scripts ($gameActors.actor(actorId).setCharacterImage("name", index); for example)
. Perhaps it can be done this way... ? Although I don't know if such a command exists for portraits. Portraits are apparently called "ActorMenuImage" when called by plugins.
edit2: found a solution by editing the plugin itself. While the code is mostly obfuscated, I could however change the argument for this specific part of the script. Instead of looking for a string, I made it look for an eval, and it can now read variables fine. (tl;dr: replace str by eval on the line * @arg Step2:str)