Would it be possible to discover a picture based on a variable? I'm trying to figure out a more efficient solution than a whole bunch of if-thens, but my attempts so far have not been successful, as I'm fairly new to learning javascript.
Viewing post in [CGMZ] Picture Gallery for RPG Maker MZ comments
Hi, you could use the script call
$cgmzTemp.discoverPictureGalleryPicture("id", true);where id would be a string that is the picture id. You can set game variables to strings, if you wanted to set a variable to a string and then use its value to discover a picture you could do:
const varId = 1; // Change this to the variable id $cgmzTemp.discoverPictureGalleryPicture($gameVariables.value(varId), true);