Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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);
(+1)

This works perfectly, thank you so much! Your plugins have been super helpful :)

Nice, I am glad you got it working 😁

Hello, me again! Is it possible to hide /unhide a picture with a variable as well? 

Hi, you can use the script call to show:

const varId = 1;
$cgmz.getPictureGalleryPic($gameVariables.value(varId)).show();

or hide:

const varId = 1;
$cgmz.getPictureGalleryPic($gameVariables.value(varId)).hide();

Amazing! Thanks again!