Simple code to display a picture not working

I have this simple code running in a parallel event. I want it to display a picture when a variable is at a certain value. However, even when variable 15 is "ZL" (I checked it with the debugger), the picture doesn't display. What am I missing?


var playedTune = $gameVariables.value(15)


if(playedTune == "ZL")


{$gameScreen.showPicture(118, "Checkmark", 1, 400, 120, 100, 100, 255, 0);}
You need to increase max of pictures

Original thread: https://forums.rpgmakerweb.com/threads/simple-code-to-display-a-picture-not-working.64988/